From 01be4c6017f98532eea2456ea422e2c285e219c8 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 22 Mar 2018 11:40:29 -0700 Subject: [PATCH] Fix GPUSurfaceGL includes on Linux (#4849) --- shell/gpu/gpu_surface_gl.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shell/gpu/gpu_surface_gl.cc b/shell/gpu/gpu_surface_gl.cc index e434f541d..331fd188a 100644 --- a/shell/gpu/gpu_surface_gl.cc +++ b/shell/gpu/gpu_surface_gl.cc @@ -9,6 +9,8 @@ #include #elif OS_MACOSX #include +#elif OS_LINUX +#include #else #include #include @@ -87,7 +89,7 @@ static SkColorType FirstSupportedColorType(GrContext* context, GLenum* format) { *format = (y); \ return (x); \ } -#if OS_MACOSX && !OS_IOS +#if (OS_MACOSX && !OS_IOS) || OS_LINUX RETURN_IF_RENDERABLE(kRGBA_8888_SkColorType, GL_RGBA8); #else RETURN_IF_RENDERABLE(kRGBA_8888_SkColorType, GL_RGBA8_OES); -- GitLab