aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-03-16 08:32:56 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-16 13:36:06 +0000
commitb64bcbdc3a5aa7b9e3ff216e4617ddc1db9260b5 (patch)
treefe99f9fe4f379226b3593989aa6c46cb2969650d /include/core
parent755a2c6b4229c86d22cd7dbd399abc97fefab4cb (diff)
Remove budgeted parameter from SkSurface::makeImageSnapshot
This unused feature complicates MDB. Chrome compiles locally for me with this CL. Change-Id: I611e464885fb984030eace43ead42cf39d0e7f72 Reviewed-on: https://skia-review.googlesource.com/9734 Reviewed-by: Brian Salomon <bsalomon@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,