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

Commit ba0e3f0

Browse files
committed
Clean up
1 parent 919a9fb commit ba0e3f0

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

shell/platform/darwin/ios/ios_external_texture_gl.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "flutter/shell/platform/darwin/ios/framework/Source/vsync_waiter_ios.h"
1212
#include "third_party/skia/include/core/SkSurface.h"
1313
#include "third_party/skia/include/gpu/GrBackendSurface.h"
14+
#include "third_party/skia/include/gpu/GrDirectContext.h"
1415

1516
namespace flutter {
1617

shell/platform/embedder/embedder_external_texture_gl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void EmbedderExternalTextureGL::Paint(SkCanvas& canvas,
2525
SkFilterQuality filter_quality) {
2626
if (auto image = external_texture_callback_(
2727
Id(), //
28-
canvas.getGrContext(), //
28+
context, //
2929
SkISize::Make(bounds.width(), bounds.height()) //
3030
)) {
3131
last_image_ = image;

testing/test_gl_surface.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,7 @@ sk_sp<GrDirectContext> TestGLSurface::GetGrContext() {
253253
return context_;
254254
}
255255

256-
context_ = CreateGrContext();
257-
258-
return context_;
256+
return CreateGrContext();
259257
}
260258

261259
sk_sp<GrDirectContext> TestGLSurface::CreateGrContext() {

0 commit comments

Comments
 (0)