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

Side by Side Diff: src/core/SkBBoxHierarchy.h

Issue 490253003: Implement SkPicture::bytesUsed() for SkRecord backend (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef SkBBoxHierarchy_DEFINED 9 #ifndef SkBBoxHierarchy_DEFINED
10 #define SkBBoxHierarchy_DEFINED 10 #define SkBBoxHierarchy_DEFINED
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 /** 81 /**
82 * Rewinds all the most recently inserted data elements until an element 82 * Rewinds all the most recently inserted data elements until an element
83 * is encountered for which client->shouldRewind(data) returns false. May 83 * is encountered for which client->shouldRewind(data) returns false. May
84 * not rewind elements that were inserted prior to the last call to 84 * not rewind elements that were inserted prior to the last call to
85 * flushDeferredInserts. 85 * flushDeferredInserts.
86 */ 86 */
87 virtual void rewindInserts() = 0; 87 virtual void rewindInserts() = 0;
88 88
89 void setClient(SkBBoxHierarchyClient* client) { fClient = client; } 89 void setClient(SkBBoxHierarchyClient* client) { fClient = client; }
90 90
91 virtual size_t bytesUsed() const = 0;
92
91 protected: 93 protected:
92 SkBBoxHierarchyClient* fClient; 94 SkBBoxHierarchyClient* fClient;
93 95
94 private: 96 private:
95 typedef SkRefCnt INHERITED; 97 typedef SkRefCnt INHERITED;
96 }; 98 };
97 99
98 #endif 100 #endif
OLDNEW
« include/core/SkPicture.h ('K') | « include/core/SkPicture.h ('k') | src/core/SkPicture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698