Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1075)

Unified Diff: src/utils/debugger/SkDrawCommand.h

Issue 1153593003: Remove the SkCanvas comment API (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: rebased Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/utils/debugger/SkDebugCanvas.cpp ('k') | src/utils/debugger/SkDrawCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/debugger/SkDrawCommand.h
diff --git a/src/utils/debugger/SkDrawCommand.h b/src/utils/debugger/SkDrawCommand.h
index 538dd23c209218fa9927e6604005e1bc43947654..307599fdb725a8e2efc0bed5e2f237f9bfb9bf6f 100644
--- a/src/utils/debugger/SkDrawCommand.h
+++ b/src/utils/debugger/SkDrawCommand.h
@@ -15,13 +15,11 @@
class SK_API SkDrawCommand {
public:
enum OpType {
- kBeginCommentGroup_OpType,
kBeginDrawPicture_OpType,
kClipPath_OpType,
kClipRegion_OpType,
kClipRect_OpType,
kClipRRect_OpType,
- kComment_OpType,
kConcat_OpType,
kDrawBitmap_OpType,
kDrawBitmapNine_OpType,
@@ -42,7 +40,6 @@ public:
kDrawTextBlob_OpType,
kDrawTextOnPath_OpType,
kDrawVertices_OpType,
- kEndCommentGroup_OpType,
kEndDrawPicture_OpType,
kRestore_OpType,
kSave_OpType,
@@ -267,41 +264,6 @@ private:
typedef SkDrawCommand INHERITED;
};
-class SkBeginCommentGroupCommand : public SkDrawCommand {
-public:
- SkBeginCommentGroupCommand(const char* description);
- void execute(SkCanvas* canvas) const override {
- canvas->beginCommentGroup(fDescription.c_str());
- };
-private:
- SkString fDescription;
-
- typedef SkDrawCommand INHERITED;
-};
-
-class SkCommentCommand : public SkDrawCommand {
-public:
- SkCommentCommand(const char* kywd, const char* value);
- void execute(SkCanvas* canvas) const override {
- canvas->addComment(fKywd.c_str(), fValue.c_str());
- };
-private:
- SkString fKywd;
- SkString fValue;
-
- typedef SkDrawCommand INHERITED;
-};
-
-class SkEndCommentGroupCommand : public SkDrawCommand {
-public:
- SkEndCommentGroupCommand();
- void execute(SkCanvas* canvas) const override {
- canvas->endCommentGroup();
- };
-private:
- typedef SkDrawCommand INHERITED;
-};
-
class SkDrawOvalCommand : public SkDrawCommand {
public:
SkDrawOvalCommand(const SkRect& oval, const SkPaint& paint);
« no previous file with comments | « src/utils/debugger/SkDebugCanvas.cpp ('k') | src/utils/debugger/SkDrawCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698