This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 88#include " third_party/skia/include/gpu/GrBackendSurface.h"
99#include " third_party/skia/include/gpu/GrDirectContext.h"
1010#include " third_party/skia/include/gpu/ganesh/gl/GrGLBackendSurface.h"
11+ #include " third_party/skia/include/gpu/ganesh/gl/GrGLDirectContext.h"
1112
1213using namespace Skwasm ;
1314
@@ -91,7 +92,7 @@ void Surface::_init() {
9192 makeCurrent (_glContext);
9293 emscripten_webgl_enable_extension (_glContext, " WEBGL_debug_renderer_info" );
9394
94- _grContext = GrDirectContext ::MakeGL (GrGLMakeNativeInterface ());
95+ _grContext = GrDirectContexts ::MakeGL (GrGLMakeNativeInterface ());
9596
9697 // WebGL should already be clearing the color and stencil buffers, but do it
9798 // again here to ensure Skia receives them in the expected state.
Original file line number Diff line number Diff line change 88
99#include " flutter/fml/message_loop.h"
1010#include " flutter/shell/common/context_options.h"
11+ #include " third_party/skia/include/gpu/ganesh/gl/GrGLDirectContext.h"
1112#include " third_party/skia/include/gpu/gl/GrGLInterface.h"
1213
1314namespace flutter {
@@ -22,7 +23,7 @@ sk_sp<GrDirectContext> ShellIOManager::CreateCompatibleResourceLoadingContext(
2223
2324 const auto options = MakeDefaultContextOptions (ContextType::kResource );
2425
25- if (auto context = GrDirectContext ::MakeGL (gl_interface, options)) {
26+ if (auto context = GrDirectContexts ::MakeGL (gl_interface, options)) {
2627 // Do not cache textures created by the image decoder. These textures
2728 // should be deleted when they are no longer referenced by an SkImage.
2829 context->setResourceCacheLimit (0 );
Original file line number Diff line number Diff line change 2020#include " third_party/skia/include/gpu/GrContextOptions.h"
2121#include " third_party/skia/include/gpu/ganesh/SkSurfaceGanesh.h"
2222#include " third_party/skia/include/gpu/ganesh/gl/GrGLBackendSurface.h"
23+ #include " third_party/skia/include/gpu/ganesh/gl/GrGLDirectContext.h"
2324#include " third_party/skia/include/gpu/gl/GrGLTypes.h"
2425
2526// These are common defines present on all OpenGL headers. However, we don't
@@ -51,7 +52,7 @@ sk_sp<GrDirectContext> GPUSurfaceGLSkia::MakeGLContext(
5152 const auto options =
5253 MakeDefaultContextOptions (ContextType::kRender , GrBackendApi::kOpenGL );
5354
54- auto context = GrDirectContext ::MakeGL (delegate->GetGLInterface (), options);
55+ auto context = GrDirectContexts ::MakeGL (delegate->GetGLInterface (), options);
5556
5657 if (!context) {
5758 FML_LOG (ERROR) << " Failed to set up Skia Gr context." ;
Original file line number Diff line number Diff line change 2020#include " third_party/skia/include/gpu/GrBackendSurface.h"
2121#include " third_party/skia/include/gpu/ganesh/SkSurfaceGanesh.h"
2222#include " third_party/skia/include/gpu/ganesh/gl/GrGLBackendSurface.h"
23+ #include " third_party/skia/include/gpu/ganesh/gl/GrGLDirectContext.h"
2324#include " third_party/skia/include/gpu/gl/GrGLAssembleInterface.h"
2425#include " third_party/skia/include/gpu/gl/GrGLTypes.h"
2526
@@ -336,7 +337,7 @@ sk_sp<GrDirectContext> TestGLSurface::CreateGrContext() {
336337 return nullptr ;
337338 }
338339
339- context_ = GrDirectContext ::MakeGL (interface);
340+ context_ = GrDirectContexts ::MakeGL (interface);
340341 return context_;
341342}
342343
You can’t perform that action at this time.
0 commit comments