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

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: Unit tests 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
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index cb407aa5bfa16db1d2c3e7800e0c2c237e7b2804..62ad39db7aaf5ac32169f6f9dbf1a624ca12998f 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -298,8 +298,16 @@ public:
uint32_t pixelOpsFlags = 0);
/**
+ * Copies contents of src to dst, while applying a gamma curve. Fails if the two surfaces
+ * are not identically sized.
+ * @param dst the surface to copy to.
+ * @param src the texture to copy from.
+ * @param gamma the desired gamma value of the encoded data.
+ */
+ 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.
* @param src the surface to copy from.
* @param srcRect the rectangle of the src that should be copied.
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrSurface.h » ('j') | tests/ApplyGammaTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698