aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPictureData.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-12-13 11:38:57 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-13 17:02:10 +0000
commit45ab630045ec72dcc0c4546cc1e96ac518897896 (patch)
tree28f1de8bb01374e1adbb5af96969d130172d57de /src/core/SkPictureData.cpp
parentdde37e5f6613bec240b8ea9336e56f58ba63e418 (diff)
Revert "Revert "impl SkSerial picture procs""
This reverts commit 2a3009931d7bb0f5ca31490c4cf19eef205e4e7a. Implement SkSerialProcs for pictures Bug: skia: Change-Id: Icde2d912941a19999e204ac5213f519ed5387e12 Reviewed-on: https://skia-review.googlesource.com/84480 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkPictureData.cpp')
-rw-r--r--src/core/SkPictureData.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkPictureData.cpp b/src/core/SkPictureData.cpp
index a86aee2fa0..3018b879d2 100644
--- a/src/core/SkPictureData.cpp
+++ b/src/core/SkPictureData.cpp
@@ -305,8 +305,9 @@ void SkPictureData::serialize(SkWStream* stream, const SkSerialProcs& procs,
bool write(const void*, size_t size) override { fBytesWritten += size; return true; }
size_t bytesWritten() const override { return fBytesWritten; }
} devnull;
+ SkSerialProcs nullProcs;
for (int i = 0; i < fPictureCount; i++) {
- fPictureRefs[i]->serialize(&devnull, procs, typefaceSet);
+ fPictureRefs[i]->serialize(&devnull, nullProcs, typefaceSet);
}
// We need to write factories before we write the buffer.