aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/image_pict.cpp
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-06-06 13:10:58 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-06 13:10:58 -0700
commit982eb7f377a0c771345276558072deb2fcea0d3e (patch)
tree02ae878610160d6b6c91629424aaf895e5f17497 /gm/image_pict.cpp
parentdc27a648d2ff23b2e96232c00c15976c46e1d48d (diff)
Add new SkSourceGammaTreatment enum, used in situations like mipmap construction, where we need to know if we should respect (vs. ignore) the gamma encoding of sRGB tagged images. Plumb that extensively.
Diffstat (limited to 'gm/image_pict.cpp')
-rw-r--r--gm/image_pict.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gm/image_pict.cpp b/gm/image_pict.cpp
index 9d1dc513a8..fb3e5c6319 100644
--- a/gm/image_pict.cpp
+++ b/gm/image_pict.cpp
@@ -316,6 +316,7 @@ protected:
#if SK_SUPPORT_GPU
SkAutoTUnref<GrTexture> texture(cache->lockAsTexture(canvas->getGrContext(),
GrTextureParams::ClampBilerp(),
+ SkSourceGammaTreatment::kRespect,
nullptr));
if (!texture) {
// show placeholder if we have no texture