| Index: include/core/SkSurface.h
|
| diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h
|
| index 4d38d300c90ce888401dfdbcbd84a57b1b236d2d..f3aeee09fa1ec4dae96f1eb5a0842547b12ec02a 100644
|
| --- a/include/core/SkSurface.h
|
| +++ b/include/core/SkSurface.h
|
| @@ -339,6 +339,13 @@ public:
|
| void draw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*);
|
|
|
| /**
|
| + * Copies contents of image to this surface, while applying a gamma curve. Fails if the image
|
| + * and surface are not ideniticaly sized. Fails if the surface is not gpu backed. This ignores
|
| + * all SkCanvas state including the SkCanvas layer stack.
|
| + */
|
| + bool blitWithGamma(SkImage* image, SkScalar gamma);
|
| +
|
| + /**
|
| * If the surface has direct access to its pixels (i.e. they are in local
|
| * RAM) return true, and if not null, set the pixmap parameter to point to the information
|
| * about the surface's pixels. The pixel address in the pixmap is only valid while
|
|
|