| Index: debugger/SkDrawCommand.h
|
| ===================================================================
|
| --- debugger/SkDrawCommand.h (revision 9288)
|
| +++ debugger/SkDrawCommand.h (working copy)
|
| @@ -11,10 +11,12 @@
|
|
|
| #include "SkPictureFlat.h"
|
| #include "SkCanvas.h"
|
| +#include "SkString.h"
|
|
|
| class SkDrawCommand {
|
| public:
|
| /* TODO(chudy): Remove subclasses. */
|
| + SkDrawCommand(DrawType drawType);
|
| SkDrawCommand();
|
|
|
| virtual ~SkDrawCommand();
|
| @@ -240,6 +242,41 @@
|
| typedef SkDrawCommand INHERITED;
|
| };
|
|
|
| +class BeginCommentGroup : public SkDrawCommand {
|
| +public:
|
| + BeginCommentGroup(const char* description);
|
| + virtual void execute(SkCanvas* canvas) SK_OVERRIDE {
|
| + canvas->beginCommentGroup(fDescription.c_str());
|
| + };
|
| +private:
|
| + SkString fDescription;
|
| +
|
| + typedef SkDrawCommand INHERITED;
|
| +};
|
| +
|
| +class Comment : public SkDrawCommand {
|
| +public:
|
| + Comment(const char* kywd, const char* value);
|
| + virtual void execute(SkCanvas* canvas) SK_OVERRIDE {
|
| + canvas->addComment(fKywd.c_str(), fValue.c_str());
|
| + };
|
| +private:
|
| + SkString fKywd;
|
| + SkString fValue;
|
| +
|
| + typedef SkDrawCommand INHERITED;
|
| +};
|
| +
|
| +class EndCommentGroup : public SkDrawCommand {
|
| +public:
|
| + EndCommentGroup();
|
| + virtual void execute(SkCanvas* canvas) SK_OVERRIDE {
|
| + canvas->endCommentGroup();
|
| + };
|
| +private:
|
| + typedef SkDrawCommand INHERITED;
|
| +};
|
| +
|
| class DrawOval : public SkDrawCommand {
|
| public:
|
| DrawOval(const SkRect& oval, const SkPaint& paint);
|
|
|