| Index: include/core/SkSurface.h
|
| diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h
|
| index f126465b3b0ff65cec92cbf1b7b64d48e3c554b6..cfaf00c88bd6a308c941027670497f4b8d982196 100644
|
| --- a/include/core/SkSurface.h
|
| +++ b/include/core/SkSurface.h
|
| @@ -16,6 +16,8 @@ class SkPaint;
|
| class GrContext;
|
| class GrRenderTarget;
|
|
|
| +//#define SK_SUPPORT_LEGACY_NEWRENDERTARGETDIRECT
|
| +
|
| /**
|
| * SkSurface represents the backend/results of drawing to a canvas. For raster
|
| * drawing, the surface will be pixels, but (for example) when drawing into
|
| @@ -64,11 +66,19 @@ public:
|
| * "replayed" into that canvas.
|
| */
|
| static SkSurface* NewPicture(int width, int height);
|
| -
|
| +
|
| + /**
|
| + * Return a new surface using the specified render target.
|
| + */
|
| + static SkSurface* NewRenderTargetDirect(GrRenderTarget*);
|
| +
|
| +#ifdef SK_SUPPORT_LEGACY_NEWRENDERTARGETDIRECT
|
| /**
|
| + * DEPRECATED -- call the single argument version (just rendertarget)
|
| * Return a new surface using the specified render target.
|
| */
|
| static SkSurface* NewRenderTargetDirect(GrContext*, GrRenderTarget*);
|
| +#endif
|
|
|
| /**
|
| * Return a new surface whose contents will be drawn to an offscreen
|
|
|