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

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: Fix comment style 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..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
« 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