fix sRGB typo (#3942)
diff --git a/shell/gpu/gpu_surface_gl.cc b/shell/gpu/gpu_surface_gl.cc index 35d40b3..2a4800d 100644 --- a/shell/gpu/gpu_surface_gl.cc +++ b/shell/gpu/gpu_surface_gl.cc
@@ -24,7 +24,7 @@ GPUSurfaceGL::GPUSurfaceGL(GPUSurfaceGLDelegate* delegate) : delegate_(delegate), - onscreen_surface_supports_sgrb_(delegate_->SurfaceSupportsSRGB()), + onscreen_surface_supports_srgb_(delegate_->SurfaceSupportsSRGB()), weak_factory_(this) { if (!delegate_->GLContextMakeCurrent()) { FTL_LOG(ERROR) @@ -156,13 +156,13 @@ onscreen_surface = WrapOnscreenSurface(context_.get(), size, delegate_->GLContextFBO(), - onscreen_surface_supports_sgrb_); + onscreen_surface_supports_srgb_); if (onscreen_surface == nullptr) { FTL_LOG(ERROR) << "Could not wrap onscreen surface."; return false; } - if (!onscreen_surface_supports_sgrb_) { + if (!onscreen_surface_supports_srgb_) { offscreen_surface = CreateOffscreenSurface(context_.get(), size); if (offscreen_surface == nullptr) { FTL_LOG(ERROR) << "Could not create offscreen surface."; @@ -208,7 +208,7 @@ return false; } - if (!onscreen_surface_supports_sgrb_) { + if (!onscreen_surface_supports_srgb_) { // Because the surface did not support sRGB, we rendered to an offscreen // surface. Now we must ensure that the texture is copied onscreen. TRACE_EVENT0("flutter", "CopyTextureOnscreen"); @@ -241,7 +241,7 @@ return nullptr; } - return onscreen_surface_supports_sgrb_ ? onscreen_surface_ + return onscreen_surface_supports_srgb_ ? onscreen_surface_ : offscreen_surface_; }
diff --git a/shell/gpu/gpu_surface_gl.h b/shell/gpu/gpu_surface_gl.h index f16b4bc..b0016bc 100644 --- a/shell/gpu/gpu_surface_gl.h +++ b/shell/gpu/gpu_surface_gl.h
@@ -40,7 +40,7 @@ private: GPUSurfaceGLDelegate* delegate_; - bool onscreen_surface_supports_sgrb_; + bool onscreen_surface_supports_srgb_; sk_sp<GrContext> context_; sk_sp<SkSurface> onscreen_surface_; sk_sp<SkSurface> offscreen_surface_;