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

Unified Diff: include/gpu/GrTexture.h

Issue 2007973002: Manually generated sRGB mipmaps. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Build mips with draw calls Created 4 years, 7 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
Index: include/gpu/GrTexture.h
diff --git a/include/gpu/GrTexture.h b/include/gpu/GrTexture.h
index 1aa2cbd8e122e8b9da071b62fc6abf512f35aa44..2eccd575ef47f4040ab57f403c31a86df4b2118f 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);
+ void dirtyMipMaps(bool mipMapsDirty, bool sRGBCorrect);
Brian Osman 2016/05/27 20:37:11 I think Brian had previously mentioned making this
enum MipMapsStatus {
kNotAllocated_MipMapsStatus,
@@ -64,6 +64,7 @@ private:
GrSLType fSamplerType;
MipMapsStatus fMipMapsStatus;
int fMaxMipMapLevel;
+ bool fMipMapsAreSRGBCorrect;
friend class GrTexturePriv;
« no previous file with comments | « gm/gamma.cpp ('k') | src/gpu/GrTexture.cpp » ('j') | src/gpu/gl/GrGLCreateNullInterface.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698