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 /src/core/SkPicturePriv.h | |
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 'src/core/SkPicturePriv.h')
-rw-r--r-- | src/core/SkPicturePriv.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/core/SkPicturePriv.h b/src/core/SkPicturePriv.h new file mode 100644 index 0000000000..5da3feaaa1 --- /dev/null +++ b/src/core/SkPicturePriv.h @@ -0,0 +1,28 @@ +/* + * Copyright 2018 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef SkPicturePriv_DEFINED +#define SkPicturePriv_DEFINED + +#include "SkPicture.h" + +class SkWriteBuffer; + +class SkPicturePriv { +public: + static size_t ApproxBytesUsed(const SkPicture* pic) { + return pic->approximateBytesUsed(); + } + static const SkBigPicture* AsBigPicture(const SkPicture* pic) { + return pic->asSkBigPicture(); + } + static void Flatten(SkWriteBuffer& buffer, const SkPicture* pic) { + pic->flatten(buffer); + } +}; + +#endif |