Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: include/utils/SkPictureUtils.h

Issue 1112523006: Sketch splitting SkPicture into an interface and SkBigPicture. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: note Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkPictureRecorder.h ('k') | src/core/SkBigPicture.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « include/core/SkPictureRecorder.h ('k') | src/core/SkBigPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698