aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPicture.h
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-12-20 14:09:20 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-20 19:32:36 +0000
commite7a58321bbbe094ca0f9b03e25843f7666d5c198 (patch)
treeb94ae7763971fc8243369323c68d34864c265123 /include/core/SkPicture.h
parent2a7f0aa9ebfd66c902dcf1a0ca86ced9fde60d5a (diff)
make InternalOnly_ functions actually private
Bug: skia: Change-Id: Id06ad4283a0cd9835b3349c783b705b30435855a Reviewed-on: https://skia-review.googlesource.com/87980 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include/core/SkPicture.h')
-rw-r--r--include/core/SkPicture.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 17539045f2..2b004d307b 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -131,17 +131,6 @@ public:
/** Returns the approximate byte size of this picture, not including large ref'd objects. */
virtual size_t approximateBytesUsed() const = 0;
- /** Return true if the SkStream/Buffer represents a serialized picture, and
- fills out SkPictInfo. After this function returns, the data source is not
- rewound so it will have to be manually reset before passing to
- CreateFromStream or CreateFromBuffer. Note, CreateFromStream and
- CreateFromBuffer perform this check internally so these entry points are
- intended for stand alone tools.
- If false is returned, SkPictInfo is unmodified.
- */
- static bool InternalOnly_StreamIsSKP(SkStream*, SkPictInfo*);
- static bool InternalOnly_BufferIsSKP(SkReadBuffer*, SkPictInfo*);
-
#ifdef SK_SUPPORT_LEGACY_PICTURE_GPUVETO
/** Return true if the picture is suitable for rendering on the GPU. */
bool suitableForGpuRasterization(GrContext*, const char** whyNot = nullptr) const;
@@ -163,6 +152,18 @@ private:
static sk_sp<SkPicture> MakeFromStream(SkStream*, const SkDeserialProcs&, SkTypefacePlayback*);
friend class SkPictureData;
+ /** Return true if the SkStream/Buffer represents a serialized picture, and
+ fills out SkPictInfo. After this function returns, the data source is not
+ rewound so it will have to be manually reset before passing to
+ CreateFromStream or CreateFromBuffer. Note, CreateFromStream and
+ CreateFromBuffer perform this check internally so these entry points are
+ intended for stand alone tools.
+ If false is returned, SkPictInfo is unmodified.
+ */
+ static bool StreamIsSKP(SkStream*, SkPictInfo*);
+ static bool BufferIsSKP(SkReadBuffer*, SkPictInfo*);
+ friend bool SkPicture_StreamIsSKP(SkStream*, SkPictInfo*);
+
virtual int numSlowPaths() const = 0;
friend class SkPictureGpuAnalyzer;
friend struct SkPathCounter;