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

Unified Diff: src/core/SkTileGrid.h

Issue 490253003: Implement SkPicture::bytesUsed() for SkRecord backend (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Move to SkPictureUtils, start unit test Created 6 years, 4 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
Index: src/core/SkTileGrid.h
diff --git a/src/core/SkTileGrid.h b/src/core/SkTileGrid.h
index 41463310b696fa654c68929cc194c7c90f5a65e7..9abbbd04a64c83c1bbff52147c0f4d07191d6a21 100644
--- a/src/core/SkTileGrid.h
+++ b/src/core/SkTileGrid.h
@@ -49,6 +49,8 @@ public:
// For testing.
int tileCount(int x, int y) { return fTiles[y * fXTiles + x].count(); }
+ virtual size_t bytesUsed() const SK_OVERRIDE;
+
private:
struct Entry {
size_t order; // Insertion order. Used to preserve order when merging multiple tiles.

Powered by Google App Engine
This is Rietveld 408576698