| 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.
|
|
|