Index: tools/debugger/SkDrawCommand.h |
diff --git a/tools/debugger/SkDrawCommand.h b/tools/debugger/SkDrawCommand.h |
index 9b81adad3fa6be4eda1e0d7b8130364fcaa9bc76..0d1ece0055043c2ab3344b7ac5d4996275d74250 100644 |
--- a/tools/debugger/SkDrawCommand.h |
+++ b/tools/debugger/SkDrawCommand.h |
@@ -28,6 +28,7 @@ public: |
kClipRect_OpType, |
kClipRRect_OpType, |
kConcat_OpType, |
+ kDrawAnnotation_OpType, |
kDrawBitmap_OpType, |
kDrawBitmapNine_OpType, |
kDrawBitmapRect_OpType, |
@@ -247,6 +248,21 @@ private: |
typedef SkDrawCommand INHERITED; |
}; |
+class SkDrawAnnotationCommand : public SkDrawCommand { |
+public: |
+ SkDrawAnnotationCommand(const SkRect&, const char key[], sk_sp<SkData> value); |
+ void execute(SkCanvas* canvas) const override; |
+ Json::Value toJSON(UrlDataManager& urlDataManager) const override; |
+ static SkDrawAnnotationCommand* fromJSON(Json::Value& command, UrlDataManager& urlDataManager); |
+ |
+private: |
+ SkRect fRect; |
+ SkString fKey; |
+ sk_sp<SkData> fValue; |
+ |
+ typedef SkDrawCommand INHERITED; |
+}; |
+ |
class SkDrawBitmapCommand : public SkDrawCommand { |
public: |
SkDrawBitmapCommand(const SkBitmap& bitmap, SkScalar left, SkScalar top, |