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

Unified Diff: gm/showmiplevels.cpp

Issue 2029373004: respect srgb gamma when building mips (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix warning 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 | « gm/mipmap.cpp ('k') | include/private/SkTemplates.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/showmiplevels.cpp
diff --git a/gm/showmiplevels.cpp b/gm/showmiplevels.cpp
index 717d629adecd4b83234fef355acec195d3dc3d34..9f074344cfc0826a7dfc0551fc146e4c96d9766b 100644
--- a/gm/showmiplevels.cpp
+++ b/gm/showmiplevels.cpp
@@ -144,7 +144,8 @@ protected:
baseBM.lockPixels();
baseBM.peekPixels(&prevPM);
- SkAutoTUnref<SkMipMap> mm(SkMipMap::Build(baseBM, nullptr));
+ SkSourceGammaTreatment treatment = SkSourceGammaTreatment::kIgnore;
+ SkAutoTUnref<SkMipMap> mm(SkMipMap::Build(baseBM, treatment, nullptr));
int index = 0;
SkMipMap::Level level;
@@ -252,7 +253,8 @@ protected:
SkScalar x = 4;
SkScalar y = 4;
- SkAutoTUnref<SkMipMap> mm(SkMipMap::Build(baseBM, nullptr));
+ SkSourceGammaTreatment treatment = SkSourceGammaTreatment::kIgnore;
+ SkAutoTUnref<SkMipMap> mm(SkMipMap::Build(baseBM, treatment, nullptr));
int index = 0;
SkMipMap::Level level;
« no previous file with comments | « gm/mipmap.cpp ('k') | include/private/SkTemplates.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698