| Index: tools/debugger/SkDrawCommand.cpp
|
| diff --git a/tools/debugger/SkDrawCommand.cpp b/tools/debugger/SkDrawCommand.cpp
|
| index 35e9201b401f6fed71cb19878843d4ec69c00824..ba6302ca3adcb1529b05a9e9a5598fa8b6375959 100644
|
| --- a/tools/debugger/SkDrawCommand.cpp
|
| +++ b/tools/debugger/SkDrawCommand.cpp
|
| @@ -428,6 +428,15 @@ Json::Value SkDrawCommand::MakeJsonColor(const SkColor color) {
|
| return result;
|
| }
|
|
|
| +Json::Value SkDrawCommand::MakeJsonColor4f(const SkColor4f& color) {
|
| + Json::Value result(Json::arrayValue);
|
| + result.append(Json::Value(color.fA));
|
| + result.append(Json::Value(color.fR));
|
| + result.append(Json::Value(color.fG));
|
| + result.append(Json::Value(color.fB));
|
| + return result;
|
| +}
|
| +
|
| Json::Value SkDrawCommand::MakeJsonPoint(const SkPoint& point) {
|
| Json::Value result(Json::arrayValue);
|
| result.append(Json::Value(point.x()));
|
|
|