From ee03d13d72f5d15823bbf81a45c437e7c902a98c Mon Sep 17 00:00:00 2001 From: egdaniel Date: Thu, 14 Apr 2022 16:08:11 -0400 Subject: [PATCH] Don't use Skia internal src file GrGLDefines. (flutter/engine#32491) Skia's src files are not stable and may change constantly, flutter should not ever including them. --- engine/src/flutter/testing/test_gl_surface.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/testing/test_gl_surface.cc b/engine/src/flutter/testing/test_gl_surface.cc index 885b852a90..8c240b3596 100644 --- a/engine/src/flutter/testing/test_gl_surface.cc +++ b/engine/src/flutter/testing/test_gl_surface.cc @@ -16,7 +16,6 @@ #include "third_party/skia/include/core/SkColorType.h" #include "third_party/skia/include/core/SkSurface.h" #include "third_party/skia/include/gpu/gl/GrGLAssembleInterface.h" -#include "third_party/skia/src/gpu/gl/GrGLDefines.h" namespace flutter { namespace testing { @@ -301,9 +300,9 @@ sk_sp TestGLSurface::GetOnscreenSurface() { const uint32_t height = surface_size_.height(); framebuffer_info.fFBOID = GetFramebuffer(width, height); #if FML_OS_MACOSX - framebuffer_info.fFormat = GR_GL_RGBA8; + framebuffer_info.fFormat = 0x8058; // GL_RGBA8 #else - framebuffer_info.fFormat = GR_GL_BGRA8; + framebuffer_info.fFormat = 0x93A1; // GL_BGRA8; #endif GrBackendRenderTarget backend_render_target(