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

Unified Diff: include/gpu/GrTexture.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 | « no previous file | src/gpu/GrTexture.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrTexture.h
diff --git a/include/gpu/GrTexture.h b/include/gpu/GrTexture.h
index 2eccd575ef47f4040ab57f403c31a86df4b2118f..211f1937da72b32740e769014a7735ee89b3fadd 100644
--- a/include/gpu/GrTexture.h
+++ b/include/gpu/GrTexture.h
@@ -53,7 +53,7 @@ protected:
private:
void computeScratchKey(GrScratchKey*) const override;
size_t onGpuMemorySize() const override;
- void dirtyMipMaps(bool mipMapsDirty, bool sRGBCorrect);
+ void dirtyMipMaps(bool mipMapsDirty);
enum MipMapsStatus {
kNotAllocated_MipMapsStatus,
@@ -61,10 +61,10 @@ private:
kValid_MipMapsStatus
};
- GrSLType fSamplerType;
- MipMapsStatus fMipMapsStatus;
- int fMaxMipMapLevel;
- bool fMipMapsAreSRGBCorrect;
+ GrSLType fSamplerType;
+ MipMapsStatus fMipMapsStatus;
+ int fMaxMipMapLevel;
+ SkSourceGammaTreatment fGammaTreatment;
friend class GrTexturePriv;
« no previous file with comments | « no previous file | src/gpu/GrTexture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698