Skip to content

Commit e48ee91

Browse files
Adlai-Hollergspencergoog
authored andcommitted
Update more class names from GrContext to GrDirectContext (flutter#21864)
This name change has to do with SkDeferredDisplayList, which Flutter does not use. As far as Flutter is concerned, this is a no-op.
1 parent 74e0a57 commit e48ee91

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

shell/platform/darwin/ios/ios_external_texture_gl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ class IOSExternalTextureGL final : public Texture {
6060

6161
void CreateRGBATextureFromPixelBuffer();
6262

63-
sk_sp<SkImage> CreateImageFromYUVTextures(GrContext* context, const SkRect& bounds);
63+
sk_sp<SkImage> CreateImageFromYUVTextures(GrDirectContext* context, const SkRect& bounds);
6464

65-
sk_sp<SkImage> CreateImageFromRGBATexture(GrContext* context, const SkRect& bounds);
65+
sk_sp<SkImage> CreateImageFromRGBATexture(GrDirectContext* context, const SkRect& bounds);
6666

6767
FML_DISALLOW_COPY_AND_ASSIGN(IOSExternalTextureGL);
6868
};

shell/platform/darwin/ios/ios_external_texture_gl.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
}
9696
}
9797

98-
sk_sp<SkImage> IOSExternalTextureGL::CreateImageFromRGBATexture(GrContext* context,
98+
sk_sp<SkImage> IOSExternalTextureGL::CreateImageFromRGBATexture(GrDirectContext* context,
9999
const SkRect& bounds) {
100100
GrGLTextureInfo textureInfo = {CVOpenGLESTextureGetTarget(texture_ref_),
101101
CVOpenGLESTextureGetName(texture_ref_), GL_RGBA8_OES};
@@ -106,7 +106,7 @@
106106
return image;
107107
}
108108

109-
sk_sp<SkImage> IOSExternalTextureGL::CreateImageFromYUVTextures(GrContext* context,
109+
sk_sp<SkImage> IOSExternalTextureGL::CreateImageFromYUVTextures(GrDirectContext* context,
110110
const SkRect& bounds) {
111111
GrGLTextureInfo yTextureInfo = {CVOpenGLESTextureGetTarget(y_texture_ref_),
112112
CVOpenGLESTextureGetName(y_texture_ref_), GR_GL_LUMINANCE8};

shell/platform/fuchsia/flutter/compositor_context.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace flutter_runner {
1414
class ScopedFrame final : public flutter::CompositorContext::ScopedFrame {
1515
public:
1616
ScopedFrame(CompositorContext& context,
17-
GrContext* gr_context,
17+
GrDirectContext* gr_context,
1818
SkCanvas* canvas,
1919
flutter::ExternalViewEmbedder* view_embedder,
2020
const SkMatrix& root_surface_transformation,

shell/platform/fuchsia/flutter/vulkan_surface_producer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void VulkanSurfaceProducer::OnSurfacesPresented(
160160

161161
// Do a single flush for all canvases derived from the context.
162162
{
163-
TRACE_EVENT0("flutter", "GrContext::flushAndSignalSemaphores");
163+
TRACE_EVENT0("flutter", "GrDirectContext::flushAndSignalSemaphores");
164164
context_->flushAndSubmit();
165165
}
166166

0 commit comments

Comments
 (0)