| Index: include/utils/SkPictureUtils.h
|
| diff --git a/include/utils/SkPictureUtils.h b/include/utils/SkPictureUtils.h
|
| index c35e1c74090996c8daf1f71f96b4966ef15f7616..9b060898fd7c835f390bf5684c2a465dbe50b44b 100644
|
| --- a/include/utils/SkPictureUtils.h
|
| +++ b/include/utils/SkPictureUtils.h
|
| @@ -78,6 +78,14 @@ public:
|
| * and rect information.
|
| */
|
| static void GatherPixelRefsAndRects(SkPicture* pict, SkPixelRefContainer* prCont);
|
| +
|
| + /**
|
| + * How many bytes are allocated to hold the SkPicture.
|
| + * Includes operations, parameters, bounding data, deletion listeners;
|
| + * does not include large objects that SkRecord holds a reference to
|
| + * (e.g. paths, pixels backing bitmaps).
|
| + */
|
| + static size_t ApproximateBytesUsed(const SkPicture* pict);
|
| };
|
|
|
| #endif
|
|
|