commit | fad98562d8f9db63839a8d902a301b174320f27f | [log] [tgz] |
---|---|---|
author | brianosman <brianosman@google.com> | Wed May 04 11:06:28 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed May 04 11:06:28 2016 -0700 |
tree | b7a94c15a06a7c046308264bef4a9b28e6b69e3d | |
parent | d9cca4a11a30f1391b56dd53ca2c6615298e2b14 [diff] [blame] |
Prototype code that turns any/every flattenable into JSON This makes inspecting things in SkDebugger far more useful - any filter or other complex object on the paint is ultimately visible. You still have to do some guess work to figure out what the fields actually mean, but you can at least cross-reference with the code in flatten(). Screenshots: Before: https://screenshot.googleplex.com/a6JM5HBBe6G.png After : https://screenshot.googleplex.com/XQfr4YJ6mnH.png Changes to public API are just removals and changes to make some functions virtual. TBR=reed@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1920423002 Review-Url: https://codereview.chromium.org/1920423002
diff --git a/tests/ColorFilterTest.cpp b/tests/ColorFilterTest.cpp index cf542db..9dfadbb 100644 --- a/tests/ColorFilterTest.cpp +++ b/tests/ColorFilterTest.cpp
@@ -16,7 +16,7 @@ #include "Test.h" static sk_sp<SkColorFilter> reincarnate_colorfilter(SkFlattenable* obj) { - SkWriteBuffer wb; + SkBinaryWriteBuffer wb; wb.writeFlattenable(obj); size_t size = wb.bytesWritten();