aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-07-20 10:59:44 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-20 20:28:57 +0000
commite2d37c2a07f5473e5fc6fb65e9e23e14127580e9 (patch)
treee8f06cc14b5c993504c043757164d09ed243d151 /include/core
parentdba7e7ccfbab1c99b8a3f81156cecdb630d7d03a (diff)
Remove GrBackendRenderTargetDesc in favor of GrBackendRenderTarget.
Also removes a reference to GrBackendTextureDesc in a comment and updates markdown docs. Docs-Preview: https://skia.org/?cl=24861 Bug: skia: Change-Id: Ic6490d5ef46953450e6dee69271397bb2b94d0d6 Reviewed-on: https://skia-review.googlesource.com/24861 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkSurface.h28
1 files changed, 3 insertions, 25 deletions
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h
index c2a98bd315..ec91cc64b1 100644
--- a/include/core/SkSurface.h
+++ b/include/core/SkSurface.h
@@ -90,16 +90,6 @@ public:
GrSurfaceOrigin origin, int sampleCnt,
sk_sp<SkColorSpace>, const SkSurfaceProps*);
- /**
- * Used to wrap a pre-existing 3D API rendering target as a SkSurface. Skia will not assume
- * ownership of the render target and the client must ensure the render target is valid for the
- * lifetime of the SkSurface.
- */
- static sk_sp<SkSurface> MakeFromBackendRenderTarget(GrContext*,
- const GrBackendRenderTargetDesc&,
- sk_sp<SkColorSpace>,
- const SkSurfaceProps*);
-
static sk_sp<SkSurface> MakeFromBackendRenderTarget(GrContext*,
const GrBackendRenderTarget&,
GrSurfaceOrigin origin,
@@ -109,10 +99,9 @@ public:
/**
* Used to wrap a pre-existing 3D API texture as a SkSurface. Skia will treat the texture as
* a rendering target only, but unlike NewFromBackendRenderTarget, Skia will manage and own
- * the associated render target objects (but not the provided texture). The kRenderTarget flag
- * 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.
+ * the associated render target objects (but not the provided texture). Skia will not assume
+ * ownership of the texture and the client must ensure the texture is valid for the lifetime
+ * of the SkSurface.
*/
static sk_sp<SkSurface> MakeFromBackendTextureAsRenderTarget(GrContext*,
const GrBackendTexture&,
@@ -122,17 +111,6 @@ public:
const SkSurfaceProps*);
/**
- * Legacy version of the above factory, without color space support. This creates a "legacy"
- * surface that operate without gamma correction or color management.
- */
- static sk_sp<SkSurface> MakeFromBackendRenderTarget(GrContext* ctx,
- const GrBackendRenderTargetDesc& desc,
- const SkSurfaceProps* props) {
- return MakeFromBackendRenderTarget(ctx, desc, nullptr, props);
- }
-
-
- /**
* Return a new surface whose contents will be drawn to an offscreen
* render target, allocated by the surface.
*/