diff options
author | Cary Clark <caryclark@skia.org> | 2018-06-11 16:25:43 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-12 13:56:33 +0000 |
commit | efd99cc92817710117db9924772943b8b78c2fe5 (patch) | |
tree | 255256584f7d3d326736c3cc345b9d6c2850bdb2 /src/shaders | |
parent | e73d7d84d7702d4b3d4a938f8b18d12924889d7b (diff) |
clean up SkPicture include
Get SkPicture.h ready for documenting.
- remove private methods
- move private forward declarations
- name parameters
R=reed@google.com, bsalomon@google.com
Bug: skia:6898
Change-Id: I28829111203d8ae2a4661cf02c99023403aa0df0
Reviewed-on: https://skia-review.googlesource.com/134120
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Cary Clark <caryclark@skia.org>
Commit-Queue: Cary Clark <caryclark@google.com>
Diffstat (limited to 'src/shaders')
-rw-r--r-- | src/shaders/SkPictureShader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shaders/SkPictureShader.cpp b/src/shaders/SkPictureShader.cpp index 576598bfe6..6ff4a0eb12 100644 --- a/src/shaders/SkPictureShader.cpp +++ b/src/shaders/SkPictureShader.cpp @@ -15,7 +15,7 @@ #include "SkImage.h" #include "SkImageShader.h" #include "SkMatrixUtils.h" -#include "SkPicture.h" +#include "SkPicturePriv.h" #include "SkPictureImageGenerator.h" #include "SkReadBuffer.h" #include "SkResourceCache.h" @@ -157,7 +157,7 @@ sk_sp<SkFlattenable> SkPictureShader::CreateProc(SkReadBuffer& buffer) { bool didSerialize = buffer.readBool(); if (didSerialize) { - picture = SkPicture::MakeFromBuffer(buffer); + picture = SkPicturePriv::MakeFromBuffer(buffer); } return SkPictureShader::Make(picture, mx, my, &lm, &tile); } @@ -169,7 +169,7 @@ void SkPictureShader::flatten(SkWriteBuffer& buffer) const { buffer.writeRect(fTile); buffer.writeBool(true); - fPicture->flatten(buffer); + SkPicturePriv::Flatten(fPicture, buffer); } // Returns a cached image shader, which wraps a single picture tile at the given |