aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-07-26 11:36:05 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-26 11:36:05 -0700
commit3a0dbde1cfa84b08c7dd5b597142e9f6179f2d07 (patch)
tree8415ee29b45878e0c304955b4553fda4431c1d5f /src/gpu
parentdc2257bfab9fc232f96c6db0595b9d12b2f0cf36 (diff)
Remove SkSurfaceProps gamma-correctness flag entirely.
This is no longer required - gamma-correctness is now just based on the presence or absence of a color space. Public API change is just removal of (unused) flag. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2188463002 TBR=bsalomon@google.com Review-Url: https://codereview.chromium.org/2188463002
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/GrContext.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 5a5173c530..457e33b99a 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -539,10 +539,8 @@ bool GrContext::applyGamma(GrRenderTarget* dst, GrTexture* src, SkScalar gamma){
return false;
}
- SkSurfaceProps props(SkSurfaceProps::kGammaCorrect_Flag,
- SkSurfaceProps::kLegacyFontHost_InitType);
// TODO: Supply color space?
- sk_sp<GrDrawContext> drawContext(this->drawContext(sk_ref_sp(dst), nullptr, &props));
+ sk_sp<GrDrawContext> drawContext(this->drawContext(sk_ref_sp(dst), nullptr));
if (!drawContext) {
return false;
}