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

Unified Diff: src/core/SkPictureData.h

Issue 470333002: approximateOpCount (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkPicture.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPictureData.h
diff --git a/src/core/SkPictureData.h b/src/core/SkPictureData.h
index 3e3ab59a444f48312b6797d2326c857a91c0a650..df898cf9f2ef578da8dcdc86f33dd9808cd9eebb 100644
--- a/src/core/SkPictureData.h
+++ b/src/core/SkPictureData.h
@@ -89,6 +89,8 @@ public:
bool containsBitmaps() const;
+ int opCount() const { return fContentInfo.numOperations(); }
+
const SkData* opData() const { return fOpData; }
protected:
@@ -128,7 +130,7 @@ public:
return &(*fPaints)[index - 1];
}
- void initIterator(SkPictureStateTree::Iterator* iter,
+ void initIterator(SkPictureStateTree::Iterator* iter,
const SkTDArray<void*>& draws,
SkCanvas* canvas) const {
if (NULL != fStateTree) {
« no previous file with comments | « src/core/SkPicture.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698