| Index: include/gpu/GrDrawContext.h
|
| diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h
|
| index 01f4ac963b47f31c96e09b6a9115e8b21e1f4091..d5bde08288181e6777db0a5271e2954c2db4e81c 100644
|
| --- a/include/gpu/GrDrawContext.h
|
| +++ b/include/gpu/GrDrawContext.h
|
| @@ -274,7 +274,7 @@ public:
|
| int height() const { return fRenderTarget->height(); }
|
| GrPixelConfig config() const { return fRenderTarget->config(); }
|
| int numColorSamples() const { return fRenderTarget->numColorSamples(); }
|
| - bool isGammaCorrect() const { return fSurfaceProps.isGammaCorrect(); }
|
| + bool isGammaCorrect() const { return SkToBool(fColorSpace.get()); }
|
| SkSourceGammaTreatment sourceGammaTreatment() const {
|
| return this->isGammaCorrect() ? SkSourceGammaTreatment::kRespect
|
| : SkSourceGammaTreatment::kIgnore;
|
|
|