diff options
author | 2014-07-08 08:38:18 -0700 | |
---|---|---|
committer | 2014-07-08 08:38:18 -0700 | |
commit | 6daadc7481b11655c77569eb0720fe037027cb30 (patch) | |
tree | fb78f901bcfd7e8c8ccfb15ef527dbba1d771976 /include/core/SkPicture.h | |
parent | 1ad00e4b245d464c16ba78bdaa377281f29972cd (diff) |
Harden SkPicture interface a bit
With the removal of SkTimedPicture we can now make more of SkPicture private.
R=reed@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/377833007
Diffstat (limited to 'include/core/SkPicture.h')
-rw-r--r-- | include/core/SkPicture.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h index 6c486c9789..8e54b1d6eb 100644 --- a/include/core/SkPicture.h +++ b/include/core/SkPicture.h @@ -200,7 +200,7 @@ public: bool suitableForGpuRasterization(GrContext*, const char ** = NULL) const; #endif -protected: +private: // V2 : adds SkPixelRef's generation ID. // V3 : PictInfo tag at beginning, and EOF tag at the end // V4 : move SkPictInfo to be the header @@ -241,8 +241,7 @@ protected: mutable uint32_t fUniqueID; - // TODO: make fData and fWidth/fHeight private - SkAutoTDelete<SkPictureData> fData; + SkAutoTDelete<const SkPictureData> fData; int fWidth, fHeight; mutable SkAutoTUnref<const AccelData> fAccelData; @@ -254,7 +253,6 @@ protected: SkPicture(int width, int height, const SkPictureRecord& record, bool deepCopyOps); -private: static void WriteTagSize(SkWriteBuffer& buffer, uint32_t tag, size_t size); static void WriteTagSize(SkWStream* stream, uint32_t tag, size_t size); |