Chromium Code Reviews| Index: include/core/SkSurface.h |
| diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h |
| index a87eccefdc9ee88796212ffa36072205538fe1e9..cc0dda4db5da0a9cfefb8e9f73ac661c2c802b31 100644 |
| --- a/include/core/SkSurface.h |
| +++ b/include/core/SkSurface.h |
| @@ -93,6 +93,11 @@ 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 |
|
reed1
2015/04/08 15:09:41
nit: comment style...
/**
*
*/
bsalomon
2015/04/08 15:14:17
Done.
|
| + 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 |