| Index: include/core/SkSurface.h
|
| diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h
|
| index a87eccefdc9ee88796212ffa36072205538fe1e9..2df98657a5a7568f0f35c398aeb450c0ee533a6e 100644
|
| --- a/include/core/SkSurface.h
|
| +++ b/include/core/SkSurface.h
|
| @@ -93,6 +93,13 @@ public:
|
| static SkSurface* NewRenderTargetDirect(GrRenderTarget* target) {
|
| return NewRenderTargetDirect(target, NULL);
|
| }
|
| +
|
| + /**
|
| + * Used to wrap a pre-existing backend 3D API texture in a SkSurface. The kRenderTarget flag
|
| + * must be set on GrBackendTextureDesc for this to succeed.
|
| + */
|
| + static SkSurface* NewWrappedRenderTarget(GrContext*, GrBackendTextureDesc,
|
| + const SkSurfaceProps*);
|
|
|
| /**
|
| * Return a new surface whose contents will be drawn to an offscreen
|
|
|