aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-04-12 13:24:58 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-12 19:41:10 +0000
commitc828109ebd1519134b1c3fa168519ac07a31fe05 (patch)
tree4723fabd487c88b28300c9f17bc45e2396ad3fd4 /docs
parent632de605a37588db8a0b2eab901540c1b6300b0a (diff)
Delete getRenderTargetHandle call on SkSurface.
All clients and internal code should be switched (once changes land soon) to the new getBackendRenderTarget call instead. Bug: skia: Change-Id: I6f490b6d26a72f37f97216be04e541483206510d Reviewed-on: https://skia-review.googlesource.com/121103 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/SkSurface_Reference.bmh55
1 files changed, 2 insertions, 53 deletions
diff --git a/docs/SkSurface_Reference.bmh b/docs/SkSurface_Reference.bmh
index e9c520106b..d3fb13529f 100644
--- a/docs/SkSurface_Reference.bmh
+++ b/docs/SkSurface_Reference.bmh
@@ -989,7 +989,7 @@ Caller must overwrite the entire back-end object.
canvas->drawString(str, 20, y += 20, paint);
##
-#SeeAlso getTextureHandle getRenderTargetHandle
+#SeeAlso getTextureHandle
#Enum ##
@@ -1032,58 +1032,7 @@ or when Surface is deleted.
}
##
-#SeeAlso getRenderTargetHandle GrBackendObject BackendHandleAccess
-
-#Method ##
-
-# ------------------------------------------------------------------------------
-
-#Method bool getRenderTargetHandle(GrBackendObject* backendObject,
- BackendHandleAccess backendHandleAccess)
-#In Property
-#Line # returns the GPU reference to render target ##
-
-Returns true and stores the GPU back-end reference of the render target used
-by Surface in backendObject.
-
-Return false if Surface is not backed by a GPU render target, and leaves
-backendObject unchanged.
-
-The returned render target handle is only valid until the next draw into Surface,
-or when Surface is deleted.
-
-In OpenGL this returns the frame buffer object ID.
-
-#Param backendObject GPU intermediate memory buffer ##
-#Param backendHandleAccess one of: kFlushRead_BackendHandleAccess,
- kFlushWrite_BackendHandleAccess, kDiscardWrite_BackendHandleAccess
-##
-
-#Return true if Surface is backed by GPU texture ##
-
-#Example
-#Platform gpu
-#Height 64
- SkPaint paint;
- paint.setTextSize(32);
- GrContext* context = canvas->getGrContext();
- if (!context) {
- canvas->drawString("GPU only!", 20, 40, paint);
- return;
- }
- sk_sp<SkSurface> gpuSurface = SkSurface::MakeRenderTarget(
- context, SkBudgeted::kYes, SkImageInfo::MakeN32Premul(10, 10));
- GrBackendObject backendObject;
- if (gpuSurface->getRenderTargetHandle(&backendObject,
- SkSurface::kFlushRead_BackendHandleAccess)) {
- SkString str;
- str.printf("backendObject=%ld", backendObject);
- paint.setTextSize(16);
- canvas->drawString(str, 20, 40, paint);
- }
-##
-
-#SeeAlso getTextureHandle GrBackendObject BackendHandleAccess
+#SeeAlso GrBackendObject BackendHandleAccess
#Method ##