Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: include/core/SkSurface.h

Issue 1071603002: Add helper for creating a SkSurface from a client created texture. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: whitespace Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/image/SkSurface.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | src/image/SkSurface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698