aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkSurface.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-01-23 08:08:04 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-23 08:08:04 -0800
commiteaaaf0b16c4e55ff8a48c5ac1ed623a6ba469053 (patch)
treed9855888421b63de9b8669633ae67cfae5cf2f4e /include/core/SkSurface.h
parent528eadceab2c03de2a8297aac87203d01dfcf893 (diff)
Take budgeted param when snapping new image.
Diffstat (limited to 'include/core/SkSurface.h')
-rw-r--r--include/core/SkSurface.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h
index 1fd345a2fa..ce27783af5 100644
--- a/include/core/SkSurface.h
+++ b/include/core/SkSurface.h
@@ -183,12 +183,14 @@ 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.
+ * 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).
*/
- SkImage* newImageSnapshot();
+ SkImage* newImageSnapshot(Budgeted = kYes_Budgeted);
/**
- * Thought the caller could get a snapshot image explicitly, and draw that,
+ * Though the caller could get a snapshot image explicitly, and draw that,
* it seems that directly drawing a surface into another canvas might be
* a common pattern, and that we could possibly be more efficient, since
* we'd know that the "snapshot" need only live until we've handed it off