commit | f67531f713467c49e7d8d2e3180357e8cf868bdc | [log] [tgz] |
---|---|---|
author | ethannicholas <ethannicholas@google.com> | Mon Mar 21 10:19:39 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon Mar 21 10:19:39 2016 -0700 |
tree | e987386e6145cea1133228ddd4ddddcde49cd23d | |
parent | bae235eb07cdfeb6dd92efa2b2143fa9e91d9d04 [diff] [blame] |
unified PNG encoding between SkDrawCommand and skiaserve GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1818043003 Review URL: https://codereview.chromium.org/1818043003
diff --git a/tools/debugger/SkDrawCommand.h b/tools/debugger/SkDrawCommand.h index 0a365c0..7eaf354 100644 --- a/tools/debugger/SkDrawCommand.h +++ b/tools/debugger/SkDrawCommand.h
@@ -8,6 +8,8 @@ #ifndef SKDRAWCOMMAND_H_ #define SKDRAWCOMMAND_H_ +#include "png.h" + #include "SkCanvas.h" #include "SkTLazy.h" #include "SkPath.h" @@ -57,6 +59,9 @@ static const int kOpTypeCount = kLast_OpType + 1; + static void WritePNG(const png_bytep rgba, png_uint_32 width, png_uint_32 height, + SkWStream& out); + SkDrawCommand(OpType opType); virtual ~SkDrawCommand();