aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-03-20 08:38:50 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-20 13:50:35 +0000
commitac6b1fa2c8507bfd5f790bccaebab8e4018cb2cd (patch)
tree3e6e2707f3526193e81169ab084592bbf812404c /include/core
parent6405e71279e99731f89db69325c6763ec62a98e1 (diff)
Remove budgeted parameter from SkSurface::makeImageSnapshot (take 2)
This unused feature complicates MDB. Chrome compiles locally for me with this CL. frameworks/base/libs/hwui compiles locally for me with this CL. Change-Id: Id3ad64dac72eace52855896df0d7ce3679f15884 Reviewed-on: https://skia-review.googlesource.com/9882 Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Matt Sarett <msarett@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkSurface.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h
index be657b1c62..52c0e5841a 100644
--- a/include/core/SkSurface.h
+++ b/include/core/SkSurface.h
@@ -250,11 +250,10 @@ public:
/**
* Returns an image of the current state of the surface pixels up to this
* point. Subsequent changes to the surface (by drawing into its canvas)
- * will not be reflected in this image. If a copy must be made the Budgeted
- * parameter controls whether it counts against the resource budget
- * (currently for the gpu backend only).
+ * will not be reflected in this image. For the GPU-backend, the budgeting
+ * decision for the snapped image will match that of the surface.
*/
- sk_sp<SkImage> makeImageSnapshot(SkBudgeted = SkBudgeted::kYes);
+ sk_sp<SkImage> makeImageSnapshot();
/**
* Though the caller could get a snapshot image explicitly, and draw that,