Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 5ea29d5

Browse files
authored
Don't use Skia internal src file GrGLDefines. (#32491)
Skia's src files are not stable and may change constantly, flutter should not ever including them.
1 parent 27ee1ef commit 5ea29d5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

testing/test_gl_surface.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include "third_party/skia/include/core/SkColorType.h"
1717
#include "third_party/skia/include/core/SkSurface.h"
1818
#include "third_party/skia/include/gpu/gl/GrGLAssembleInterface.h"
19-
#include "third_party/skia/src/gpu/gl/GrGLDefines.h"
2019

2120
namespace flutter {
2221
namespace testing {
@@ -301,9 +300,9 @@ sk_sp<SkSurface> TestGLSurface::GetOnscreenSurface() {
301300
const uint32_t height = surface_size_.height();
302301
framebuffer_info.fFBOID = GetFramebuffer(width, height);
303302
#if FML_OS_MACOSX
304-
framebuffer_info.fFormat = GR_GL_RGBA8;
303+
framebuffer_info.fFormat = 0x8058; // GL_RGBA8
305304
#else
306-
framebuffer_info.fFormat = GR_GL_BGRA8;
305+
framebuffer_info.fFormat = 0x93A1; // GL_BGRA8;
307306
#endif
308307

309308
GrBackendRenderTarget backend_render_target(

0 commit comments

Comments
 (0)