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

Unified Diff: include/gpu/GrContext.h

Issue 1919993002: Added --deepColor option to SampleApp, triggers creation of a ten-bit/channel buffer on Windows. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More cleanup Created 4 years, 8 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 | « gyp/gpu.gypi ('k') | include/gpu/GrSurface.h » ('j') | src/gpu/GrContext.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index cb407aa5bfa16db1d2c3e7800e0c2c237e7b2804..9d0e4b7c81a4e61a0a8ca3dab8ee960aab11f86a 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -298,6 +298,11 @@ public:
uint32_t pixelOpsFlags = 0);
/**
+ * Writes the texture to the render target, while applying a gamma curve.
+ */
bsalomon 2016/04/29 18:27:20 Question about this API: Can dst and src be diffe
Brian Osman 2016/05/02 21:02:45 I started trying to support different sizes, but t
bsalomon 2016/05/02 21:17:40 sgtm
+ bool applyGamma(GrRenderTarget* dst, GrTexture* src, SkScalar gamma);
+
+ /**
* Copies a rectangle of texels from src to dst.
* bounds.
* @param dst the surface to copy to.
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrSurface.h » ('j') | src/gpu/GrContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698