Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: src/gpu/GrTexturePriv.h

Issue 2058143002: Better (?) interface for controlling sRGB-ness of mipmaps on GrTexture (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Set gamma treatment flag appropriately, after uploading CPU mips Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrTexture.cpp ('k') | src/gpu/SkGr.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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*);
« no previous file with comments | « src/gpu/GrTexture.cpp ('k') | src/gpu/SkGr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698