diff options
author | Mike Reed <reed@google.com> | 2018-01-26 13:26:38 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-27 04:02:55 +0000 |
commit | 8005bff7e631a269f0dfaae93ff9963dc0e5ff39 (patch) | |
tree | 7bb38b497f219b8890e2a574e208777861e919be /include | |
parent | 5bcef359b2d223a7c67e286850ecfd5c19d8b6c7 (diff) |
hide picture virtuals (no public callers)
This prepares the way for a clean impl of a "placeholder" picture that never unrolls
Bug: skia:
Change-Id: I3b5785c5c94432b54e9a7dc280b2a6e716592473
Reviewed-on: https://skia-review.googlesource.com/100260
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPicture.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h index 4887db928f..d505a0a364 100644 --- a/include/core/SkPicture.h +++ b/include/core/SkPicture.h @@ -90,18 +90,7 @@ public: sk_sp<SkData> serialize(const SkSerialProcs* = nullptr) const; void serialize(SkWStream*, const SkSerialProcs* = nullptr) const; - /** - * Serialize to a buffer. - */ - void flatten(SkWriteBuffer&) const; - - /** Return the approximate number of operations in this picture. This - * number may be greater or less than the number of SkCanvas calls - * recorded: some calls may be recorded as more than one operation, or some - * calls may be optimized away. - */ - virtual int approximateOpCount() const = 0; - +protected: /** Returns the approximate byte size of this picture, not including large ref'd objects. */ virtual size_t approximateBytesUsed() const = 0; @@ -113,6 +102,8 @@ private: SkPicture(); friend class SkBigPicture; friend class SkEmptyPicture; + friend class SkPicturePriv; + friend class SkPictureRecorder; template <typename> friend class SkMiniPicture; void serialize(SkWStream*, const SkSerialProcs*, SkRefCntSet* typefaces) const; @@ -172,6 +163,7 @@ private: SkPictInfo createHeader() const; SkPictureData* backport() const; + void flatten(SkWriteBuffer&) const; mutable uint32_t fUniqueID; }; |