diff options
author | Mike Reed <reed@google.com> | 2017-12-13 15:16:43 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-13 15:16:53 +0000 |
commit | 2a3009931d7bb0f5ca31490c4cf19eef205e4e7a (patch) | |
tree | 0e560343dccf1aef830d0eb24ac35e3790f54f9f /tools/debugger/SkJsonWriteBuffer.cpp | |
parent | 76d917cef19aabfdc1247336f58237800bd71875 (diff) |
Revert "impl SkSerial picture procs"
This reverts commit c8226728541fdd6434a7f1b97678246202b0edc5.
Reason for revert: broke old skps
Original change's description:
> impl SkSerial picture procs
>
> The picture serialization code is a bit of a mess, with duplicated functions for streams and buffers.
> Could not see how to fix that and land this at the same time, but I will try to circle back and
> simplify if possible afterwards.
>
> Bug: skia:
> Change-Id: I9053fdc476c60f483df013d021e248258181c199
> Reviewed-on: https://skia-review.googlesource.com/83943
> Reviewed-by: Florin Malita <fmalita@chromium.org>
> Commit-Queue: Mike Reed <reed@google.com>
TBR=mtklein@google.com,fmalita@chromium.org,reed@google.com
Change-Id: I68ae019a286691b65cc373cb29c941d6620fd34a
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/84460
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'tools/debugger/SkJsonWriteBuffer.cpp')
-rw-r--r-- | tools/debugger/SkJsonWriteBuffer.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/debugger/SkJsonWriteBuffer.cpp b/tools/debugger/SkJsonWriteBuffer.cpp index 9a9a032d6b..bdabc8aea5 100644 --- a/tools/debugger/SkJsonWriteBuffer.cpp +++ b/tools/debugger/SkJsonWriteBuffer.cpp @@ -15,16 +15,6 @@ void SkJsonWriteBuffer::append(const char* type, const Json::Value& value) { fJson[fullName.c_str()] = value; } -void SkJsonWriteBuffer::writePad32(const void* data, size_t size) { - Json::Value jsonArray(Json::arrayValue); - const uint8_t* bytes = reinterpret_cast<const uint8_t*>(data); - for (size_t i = 0; i < size; ++i) { - SkString hexByte = SkStringPrintf("%02x", bytes[i]); - jsonArray.append(hexByte.c_str()); - } - this->append("rawBytes", jsonArray); -} - void SkJsonWriteBuffer::writeByteArray(const void* data, size_t size) { Json::Value jsonArray(Json::arrayValue); const uint8_t* bytes = reinterpret_cast<const uint8_t*>(data); |