Index: include/utils/SkPictureUtils.h |
diff --git a/include/utils/SkPictureUtils.h b/include/utils/SkPictureUtils.h |
index 10607da9c67b048e78801b879fb13744fa7305e0..b65a64d57924fa39f7e4b5472e86883fdcb77036 100644 |
--- a/include/utils/SkPictureUtils.h |
+++ b/include/utils/SkPictureUtils.h |
@@ -10,6 +10,8 @@ |
#include "SkPicture.h" |
+// TODO: remove this file? |
+ |
class SK_API SkPictureUtils { |
public: |
/** |
@@ -18,7 +20,9 @@ public: |
* includes nested SkPictures, but does not include large objects that |
* SkRecord holds a reference to (e.g. paths, or pixels backing bitmaps). |
*/ |
- static size_t ApproximateBytesUsed(const SkPicture* pict); |
+ static size_t ApproximateBytesUsed(const SkPicture* pict) { |
+ return pict->approximateBytesUsed(); |
+ } |
}; |
#endif |