aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-03-30 13:57:00 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-30 19:12:26 +0000
commit6b6fcc78620270ec2dcd57bd520ec500f60f4505 (patch)
tree4a08bccfd3485a582aa4e10c1e73047ef705fdac /docs
parent26339bf9a86b5f06747afe8e8bd92e3e6d8b703f (diff)
Add SkSurface factory that takes an SkSurfaceCharacterization
TBR=bsalomon@google.com Change-Id: Ie38123dc7c35005bfe8500bf4a16e0d16bbf36bd Reviewed-on: https://skia-review.googlesource.com/117236 Reviewed-by: Robert Phillips <robertphillips@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/SkSurface_Reference.bmh25
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/SkSurface_Reference.bmh b/docs/SkSurface_Reference.bmh
index a7053f69d3..e37ac57250 100644
--- a/docs/SkSurface_Reference.bmh
+++ b/docs/SkSurface_Reference.bmh
@@ -711,6 +711,31 @@ Surface bottom-left corner is pinned to the origin.
# ------------------------------------------------------------------------------
+#Method static sk_sp<SkSurface> MakeRenderTarget(GrContext* context,
+ const SkSurfaceCharacterization& characterization,
+ SkBudgeted budgeted)
+
+Returns SkSurface on GPU indicated by context that is compatible with the provided
+characterization. budgeted selects whether allocation for pixels is tracked by context.
+
+ @param context GPU context
+ @param characterization description of the desired SkSurface
+ @param budgeted one of: SkBudgeted::kNo, SkBudgeted::kYes
+ @return SkSurface if all parameters are valid; otherwise, nullptr
+
+#Param context GPU_Context ##
+#Param characterization description of the desired SkSurface ##
+#Param budgeted one of: SkBudgeted::kNo, SkBudgeted::kYes
+##
+
+#Return Surface if all parameters are valid; otherwise, nullptr ##
+
+#SeeAlso MakeFromBackendRenderTarget MakeFromBackendTextureAsRenderTarget
+
+#Method ##
+
+# ------------------------------------------------------------------------------
+
#Method static sk_sp<SkSurface> MakeNull(int width, int height)
#In Constructor