diff options
author | 2016-05-02 23:16:42 -0700 | |
---|---|---|
committer | 2016-05-02 23:16:42 -0700 | |
commit | 1cb00e42bff455e23f6883bf09680438fa631224 (patch) | |
tree | ebd565a2c30d88418d9fc9fa909c2d0b02fd8f5c /include/core/SkSurface.h | |
parent | cf975447a8576740e682bfc4b8b91c2d8f95f64c (diff) |
Make stencils be attachable to render targets created via SkSurface::MakeFromBackendTextureAsRenderTarget
This is a regression from "Refactor to separate backend object lifecycle
and GpuResource budget decision".
GrGLRenderTarget::CreateWrapped creates only render targets that wrap
the FBO.
GrGLRenderTargetTexture::CreateWrapped creates render targets that
wrap the texture.
Use the latter as the implementation for
SkSurface::MakeFromBackendTextureAsRenderTarget.
BUG=608238
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1924183003
Committed: https://skia.googlesource.com/skia/+/fe635fd76bbc375d527d1884af23cc617ca364ee
Review-Url: https://codereview.chromium.org/1924183003
Diffstat (limited to 'include/core/SkSurface.h')
-rw-r--r-- | include/core/SkSurface.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h index a092a81ca5..b73ccf2d9e 100644 --- a/include/core/SkSurface.h +++ b/include/core/SkSurface.h @@ -85,6 +85,8 @@ public: * must be set on GrBackendTextureDesc for this to succeed. Skia will not assume ownership * of the texture and the client must ensure the texture is valid for the lifetime of the * SkSurface. + * + * If the requested sample count is greater than 0, the contents of the surface are undefined. */ static sk_sp<SkSurface> MakeFromBackendTexture(GrContext*, const GrBackendTextureDesc&, const SkSurfaceProps*); @@ -105,6 +107,8 @@ public: * must be set on GrBackendTextureDesc for this to succeed. Skia will not assume ownership * of the texture and the client must ensure the texture is valid for the lifetime of the * SkSurface. + * + * If the requested sample count is greater than 0, the contents of the surface are undefined. */ static sk_sp<SkSurface> MakeFromBackendTextureAsRenderTarget( GrContext*, const GrBackendTextureDesc&, const SkSurfaceProps*); |