Index: include/gpu/GrContext.h |
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h |
index 6f5ca981e5c787f0d26511ee5bfb1358be3443b9..b6fa30bc350db9faeeab2b8268f0f3f08673fe0c 100644 |
--- a/include/gpu/GrContext.h |
+++ b/include/gpu/GrContext.h |
@@ -293,8 +293,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 gamma value to apply. |
+ */ |
+ 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. |