Index: src/gpu/GrTexturePriv.h |
diff --git a/src/gpu/GrTexturePriv.h b/src/gpu/GrTexturePriv.h |
index 762890fcc003adff2fdd9a12c3a4760066d010c2..c4e6538d1664052ee2470a91f230cf718c78630e 100644 |
--- a/src/gpu/GrTexturePriv.h |
+++ b/src/gpu/GrTexturePriv.h |
@@ -29,8 +29,8 @@ public: |
return 0 != (fTexture->fDesc.fFlags & flags); |
} |
- void dirtyMipMaps(bool mipMapsDirty, bool sRGBCorrect = false) { |
- fTexture->dirtyMipMaps(mipMapsDirty, sRGBCorrect); |
+ void dirtyMipMaps(bool mipMapsDirty) { |
+ fTexture->dirtyMipMaps(mipMapsDirty); |
} |
bool mipMapsAreDirty() const { |
@@ -49,9 +49,10 @@ public: |
return fTexture->fMaxMipMapLevel; |
} |
- bool mipMapsAreSRGBCorrect() const { |
- return fTexture->fMipMapsAreSRGBCorrect; |
+ void setGammaTreatment(SkSourceGammaTreatment gammaTreatment) const { |
+ fTexture->fGammaTreatment = gammaTreatment; |
} |
+ SkSourceGammaTreatment gammaTreatment() const { return fTexture->fGammaTreatment; } |
static void ComputeScratchKey(const GrSurfaceDesc&, GrScratchKey*); |