diff options
Diffstat (limited to 'include/core/SkSurface.h')
-rw-r--r-- | include/core/SkSurface.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h index 52c0e5841a..be657b1c62 100644 --- a/include/core/SkSurface.h +++ b/include/core/SkSurface.h @@ -250,10 +250,11 @@ 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. For the GPU-backend, the budgeting - * decision for the snapped image will match that of the surface. + * 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). */ - sk_sp<SkImage> makeImageSnapshot(); + sk_sp<SkImage> makeImageSnapshot(SkBudgeted = SkBudgeted::kYes); /** * Though the caller could get a snapshot image explicitly, and draw that, |