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.
This commit is contained in:
egdaniel
2022-04-14 16:08:11 -04:00
committed by GitHub
parent 3716ca5423
commit ee03d13d72

View File

@@ -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<SkSurface> 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(