, fVisible(true) {
}
+SkDrawCommand::SkDrawCommand() {
+ fOffset = 0;
+ fVisible = true;
+}
+
SkDrawCommand::~SkDrawCommand() {
fInfo.deleteAll();
}
return NULL;
}
-SkString SkDrawCommand::toString() const {
+SkString SkDrawCommand::toString() {
return SkString(GetCommandString(fDrawType));
}
fInfo.push(SkObjectParser::CustomTextToString("No Parameters"));
}
-void SkClearCommand::execute(SkCanvas* canvas) const {
+void SkClearCommand::execute(SkCanvas* canvas) {
canvas->clear(fColor);
}
fInfo.push(SkObjectParser::BoolToString(doAA));
}
-void SkClipPathCommand::execute(SkCanvas* canvas) const {
+void SkClipPathCommand::execute(SkCanvas* canvas) {
canvas->clipPath(fPath, fOp, fDoAA);
}
fInfo.push(SkObjectParser::RegionOpToString(op));
}
-void SkClipRegionCommand::execute(SkCanvas* canvas) const {
+void SkClipRegionCommand::execute(SkCanvas* canvas) {
canvas->clipRegion(fRegion, fOp);
}
fInfo.push(SkObjectParser::BoolToString(doAA));
}
-void SkClipRectCommand::execute(SkCanvas* canvas) const {
+void SkClipRectCommand::execute(SkCanvas* canvas) {
canvas->clipRect(fRect, fOp, fDoAA);
}
fInfo.push(SkObjectParser::BoolToString(doAA));
}
-void SkClipRRectCommand::execute(SkCanvas* canvas) const {
+void SkClipRRectCommand::execute(SkCanvas* canvas) {
canvas->clipRRect(fRRect, fOp, fDoAA);
}
fInfo.push(SkObjectParser::MatrixToString(matrix));
}
-void SkConcatCommand::execute(SkCanvas* canvas) const {
+void SkConcatCommand::execute(SkCanvas* canvas) {
canvas->concat(fMatrix);
}
}
}
-void SkDrawBitmapCommand::execute(SkCanvas* canvas) const {
+void SkDrawBitmapCommand::execute(SkCanvas* canvas) {
canvas->drawBitmap(fBitmap, fLeft, fTop, fPaintPtr);
}
}
}
-void SkDrawBitmapMatrixCommand::execute(SkCanvas* canvas) const {
+void SkDrawBitmapMatrixCommand::execute(SkCanvas* canvas) {
canvas->drawBitmapMatrix(fBitmap, fMatrix, fPaintPtr);
}
}
}
-void SkDrawBitmapNineCommand::execute(SkCanvas* canvas) const {
+void SkDrawBitmapNineCommand::execute(SkCanvas* canvas) {
canvas->drawBitmapNine(fBitmap, fCenter, fDst, fPaintPtr);
}
fInfo.push(SkObjectParser::IntToString(fFlags, "Flags: "));
}
-void SkDrawBitmapRectCommand::execute(SkCanvas* canvas) const {
+void SkDrawBitmapRectCommand::execute(SkCanvas* canvas) {
canvas->drawBitmapRectToRect(fBitmap, this->srcRect(), fDst, fPaintPtr, fFlags);
}
fInfo.push(str);
}
-void SkDrawDataCommand::execute(SkCanvas* canvas) const {
+void SkDrawDataCommand::execute(SkCanvas* canvas) {
canvas->drawData(fData, fLength);
}
fInfo.push(SkObjectParser::PaintToString(paint));
}
-void SkDrawOvalCommand::execute(SkCanvas* canvas) const {
+void SkDrawOvalCommand::execute(SkCanvas* canvas) {
canvas->drawOval(fOval, fPaint);
}
fInfo.push(SkObjectParser::PaintToString(paint));
}
-void SkDrawPaintCommand::execute(SkCanvas* canvas) const {
+void SkDrawPaintCommand::execute(SkCanvas* canvas) {
canvas->drawPaint(fPaint);
}
fInfo.push(SkObjectParser::PaintToString(paint));
}
-void SkDrawPathCommand::execute(SkCanvas* canvas) const {
+void SkDrawPathCommand::execute(SkCanvas* canvas) {
canvas->drawPath(fPath, fPaint);
}
}
}
-void SkDrawPictureCommand::execute(SkCanvas* canvas) const {
+void SkDrawPictureCommand::execute(SkCanvas* canvas) {
canvas->drawPicture(fPicture, fMatrixPtr, fPaintPtr);
}
fInfo.push(SkObjectParser::PaintToString(paint));
}
-void SkDrawPointsCommand::execute(SkCanvas* canvas) const {
+void SkDrawPointsCommand::execute(SkCanvas* canvas) {
canvas->drawPoints(fMode, fCount, fPts, fPaint);
}
fInfo.push(SkObjectParser::PaintToString(paint));
}
-void SkDrawPosTextCommand::execute(SkCanvas* canvas) const {
+void SkDrawPosTextCommand::execute(SkCanvas* canvas) {
canvas->drawPosText(fText, fByteLength, fPos, fPaint);
}
fInfo.push(SkObjectParser::PaintToString(paint));
}
-void SkDrawPosTextHCommand::execute(SkCanvas* canvas) const {
+void SkDrawPosTextHCommand::execute(SkCanvas* canvas) {
canvas->drawPosTextH(fText, fByteLength, fXpos, fConstY, fPaint);
}
fInfo.push(SkObjectParser::PaintToString(paint));
}
-void SkDrawTextBlobCommand::execute(SkCanvas* canvas) const {
+void SkDrawTextBlobCommand::execute(SkCanvas* canvas) {
canvas->drawTextBlob(fBlob, fXPos, fYPos, fPaint);
}
fInfo.push(SkObjectParser::PaintToString(paint));
}
-void SkDrawRectCommand::execute(SkCanvas* canvas) const {
+void SkDrawRectCommand::execute(SkCanvas* canvas) {
canvas->drawRect(fRect, fPaint);
}
fInfo.push(SkObjectParser::PaintToString(paint));
}
-void SkDrawRRectCommand::execute(SkCanvas* canvas) const {
+void SkDrawRRectCommand::execute(SkCanvas* canvas) {
canvas->drawRRect(fRRect, fPaint);
}
fInfo.push(SkObjectParser::PaintToString(paint));
}
-void SkDrawDRRectCommand::execute(SkCanvas* canvas) const {
+void SkDrawDRRectCommand::execute(SkCanvas* canvas) {
canvas->drawDRRect(fOuter, fInner, fPaint);
}
}
}
-void SkDrawSpriteCommand::execute(SkCanvas* canvas) const {
+void SkDrawSpriteCommand::execute(SkCanvas* canvas) {
canvas->drawSprite(fBitmap, fLeft, fTop, fPaintPtr);
}
fInfo.push(SkObjectParser::PaintToString(paint));
}
-void SkDrawTextCommand::execute(SkCanvas* canvas) const {
+void SkDrawTextCommand::execute(SkCanvas* canvas) {
canvas->drawText(fText, fByteLength, fX, fY, fPaint);
}
fInfo.push(SkObjectParser::PaintToString(paint));
}
-void SkDrawTextOnPathCommand::execute(SkCanvas* canvas) const {
+void SkDrawTextOnPathCommand::execute(SkCanvas* canvas) {
canvas->drawTextOnPath(fText, fByteLength, fPath,
fMatrix.isIdentity() ? NULL : &fMatrix,
fPaint);
delete [] fIndices;
}
-void SkDrawVerticesCommand::execute(SkCanvas* canvas) const {
+void SkDrawVerticesCommand::execute(SkCanvas* canvas) {
canvas->drawVertices(fVmode, fVertexCount, fVertices,
fTexs, fColors, fXfermode, fIndices,
fIndexCount, fPaint);
fInfo.push(SkObjectParser::CustomTextToString("No Parameters"));
}
-void SkRestoreCommand::execute(SkCanvas* canvas) const {
+void SkRestoreCommand::execute(SkCanvas* canvas) {
canvas->restore();
}
fInfo.push(SkObjectParser::ScalarToString(degrees, "SkScalar degrees: "));
}
-void SkRotateCommand::execute(SkCanvas* canvas) const {
+void SkRotateCommand::execute(SkCanvas* canvas) {
canvas->rotate(fDegrees);
}
: INHERITED(SAVE) {
}
-void SkSaveCommand::execute(SkCanvas* canvas) const {
+void SkSaveCommand::execute(SkCanvas* canvas) {
canvas->save();
}
fInfo.push(SkObjectParser::SaveFlagsToString(flags));
}
-void SkSaveLayerCommand::execute(SkCanvas* canvas) const {
+void SkSaveLayerCommand::execute(SkCanvas* canvas) {
canvas->saveLayer(fBounds.isEmpty() ? NULL : &fBounds,
fPaintPtr,
fFlags);
}
-void SkSaveLayerCommand::vizExecute(SkCanvas* canvas) const {
+void SkSaveLayerCommand::vizExecute(SkCanvas* canvas) {
canvas->save();
}
fInfo.push(SkObjectParser::ScalarToString(sy, "SkScalar sy: "));
}
-void SkScaleCommand::execute(SkCanvas* canvas) const {
+void SkScaleCommand::execute(SkCanvas* canvas) {
canvas->scale(fSx, fSy);
}
fUserMatrix = userMatrix;
}
-void SkSetMatrixCommand::execute(SkCanvas* canvas) const {
+void SkSetMatrixCommand::execute(SkCanvas* canvas) {
SkMatrix temp = SkMatrix::Concat(fUserMatrix, fMatrix);
canvas->setMatrix(temp);
}
fInfo.push(SkObjectParser::ScalarToString(sy, "SkScalar sy: "));
}
-void SkSkewCommand::execute(SkCanvas* canvas) const {
+void SkSkewCommand::execute(SkCanvas* canvas) {
canvas->skew(fSx, fSy);
}
fInfo.push(SkObjectParser::ScalarToString(dy, "SkScalar dy: "));
}
-void SkTranslateCommand::execute(SkCanvas* canvas) const {
+void SkTranslateCommand::execute(SkCanvas* canvas) {
canvas->translate(fDx, fDy);
}
fInfo.push(SkObjectParser::RectToString(cullRect));
}
-void SkPushCullCommand::execute(SkCanvas* canvas) const {
+void SkPushCullCommand::execute(SkCanvas* canvas) {
canvas->pushCull(fCullRect);
}
-void SkPushCullCommand::vizExecute(SkCanvas* canvas) const {
+void SkPushCullCommand::vizExecute(SkCanvas* canvas) {
canvas->pushCull(fCullRect);
SkPaint p;
SkPopCullCommand::SkPopCullCommand() : INHERITED(POP_CULL) { }
-void SkPopCullCommand::execute(SkCanvas* canvas) const {
+void SkPopCullCommand::execute(SkCanvas* canvas) {
canvas->popCull();
}
class SK_API SkDrawCommand {
public:
+ /* TODO(chudy): Remove subclasses. */
SkDrawCommand(DrawType drawType);
+ SkDrawCommand();
virtual ~SkDrawCommand();
- virtual SkString toString() const;
+ virtual SkString toString();
void setOffset(size_t offset) { fOffset = offset; }
- size_t offset() const { return fOffset; }
+ virtual size_t offset() { return fOffset; }
- virtual const char* toCString() const {
+ virtual const char* toCString() {
return GetCommandString(fDrawType);
}
fVisible = toggle;
}
- const SkTDArray<SkString*>* Info() const { return &fInfo; }
- virtual void execute(SkCanvas*) const = 0;
- virtual void vizExecute(SkCanvas*) const {}
+ SkTDArray<SkString*>* Info() {return &fInfo; };
+ virtual void execute(SkCanvas* canvas) = 0;
+ virtual void vizExecute(SkCanvas* canvas) { };
- virtual void setUserMatrix(const SkMatrix&) {}
+ virtual void setUserMatrix(const SkMatrix& userMtx) { };
/** Does nothing by default, but used by save() and restore()-type
subclasses to track unresolved save() calls. */
- virtual void trackSaveState(int* state) {}
+ virtual void trackSaveState(int* state) { };
// The next "active" system is only used by save, saveLayer, restore,
// pushCull and popCull. It is used in two ways:
virtual void setActive(bool active) {}
virtual bool active() const { return false; }
- DrawType getType() const { return fDrawType; }
+ DrawType getType() { return fDrawType; };
virtual bool render(SkCanvas* canvas) const { return false; }
class SkRestoreCommand : public SkDrawCommand {
public:
SkRestoreCommand();
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual void trackSaveState(int* state) SK_OVERRIDE;
virtual Action action() const SK_OVERRIDE { return kPopLayer_Action; }
class SkClearCommand : public SkDrawCommand {
public:
SkClearCommand(SkColor color);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
private:
SkColor fColor;
class SkClipPathCommand : public SkDrawCommand {
public:
SkClipPathCommand(const SkPath& path, SkRegion::Op op, bool doAA);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
private:
SkPath fPath;
class SkClipRegionCommand : public SkDrawCommand {
public:
SkClipRegionCommand(const SkRegion& region, SkRegion::Op op);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
private:
SkRegion fRegion;
SkRegion::Op fOp;
class SkClipRectCommand : public SkDrawCommand {
public:
SkClipRectCommand(const SkRect& rect, SkRegion::Op op, bool doAA);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
const SkRect& rect() const { return fRect; }
SkRegion::Op op() const { return fOp; }
class SkClipRRectCommand : public SkDrawCommand {
public:
SkClipRRectCommand(const SkRRect& rrect, SkRegion::Op op, bool doAA);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
const SkRRect& rrect() const { return fRRect; }
class SkConcatCommand : public SkDrawCommand {
public:
SkConcatCommand(const SkMatrix& matrix);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
private:
SkMatrix fMatrix;
public:
SkDrawBitmapCommand(const SkBitmap& bitmap, SkScalar left, SkScalar top,
const SkPaint* paint);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
private:
SkBitmap fBitmap;
public:
SkDrawBitmapMatrixCommand(const SkBitmap& bitmap, const SkMatrix& matrix,
const SkPaint* paint);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
private:
SkBitmap fBitmap;
public:
SkDrawBitmapNineCommand(const SkBitmap& bitmap, const SkIRect& center,
const SkRect& dst, const SkPaint* paint);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
private:
SkBitmap fBitmap;
SkDrawBitmapRectCommand(const SkBitmap& bitmap, const SkRect* src,
const SkRect& dst, const SkPaint* paint,
SkCanvas::DrawBitmapRectFlags flags);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
const SkBitmap& bitmap() const { return fBitmap; }
public:
SkDrawDataCommand(const void* data, size_t length);
virtual ~SkDrawDataCommand() { delete [] fData; }
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
private:
char* fData;
size_t fLength;
class SkBeginCommentGroupCommand : public SkDrawCommand {
public:
SkBeginCommentGroupCommand(const char* description);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE {
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE {
canvas->beginCommentGroup(fDescription.c_str());
};
private:
class SkCommentCommand : public SkDrawCommand {
public:
SkCommentCommand(const char* kywd, const char* value);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE {
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE {
canvas->addComment(fKywd.c_str(), fValue.c_str());
};
private:
class SkEndCommentGroupCommand : public SkDrawCommand {
public:
SkEndCommentGroupCommand();
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE {
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE {
canvas->endCommentGroup();
};
private:
class SkDrawOvalCommand : public SkDrawCommand {
public:
SkDrawOvalCommand(const SkRect& oval, const SkPaint& paint);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
private:
SkRect fOval;
class SkDrawPaintCommand : public SkDrawCommand {
public:
SkDrawPaintCommand(const SkPaint& paint);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
private:
SkPaint fPaint;
class SkDrawPathCommand : public SkDrawCommand {
public:
SkDrawPathCommand(const SkPath& path, const SkPaint& paint);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
private:
class SkDrawPictureCommand : public SkDrawCommand {
public:
SkDrawPictureCommand(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
private:
SkDrawPointsCommand(SkCanvas::PointMode mode, size_t count, const SkPoint pts[],
const SkPaint& paint);
virtual ~SkDrawPointsCommand() { delete [] fPts; }
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
private:
SkCanvas::PointMode fMode;
SkDrawTextCommand(const void* text, size_t byteLength, SkScalar x, SkScalar y,
const SkPaint& paint);
virtual ~SkDrawTextCommand() { delete [] fText; }
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
private:
char* fText;
size_t fByteLength;
SkDrawPosTextCommand(const void* text, size_t byteLength, const SkPoint pos[],
const SkPaint& paint);
virtual ~SkDrawPosTextCommand() { delete [] fPos; delete [] fText; }
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
private:
char* fText;
size_t fByteLength;
SkDrawTextOnPathCommand(const void* text, size_t byteLength, const SkPath& path,
const SkMatrix* matrix, const SkPaint& paint);
virtual ~SkDrawTextOnPathCommand() { delete [] fText; }
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
private:
char* fText;
size_t fByteLength;
SkDrawPosTextHCommand(const void* text, size_t byteLength, const SkScalar xpos[],
SkScalar constY, const SkPaint& paint);
virtual ~SkDrawPosTextHCommand() { delete [] fXpos; delete [] fText; }
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
private:
SkScalar* fXpos;
char* fText;
public:
SkDrawTextBlobCommand(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
private:
class SkDrawRectCommand : public SkDrawCommand {
public:
SkDrawRectCommand(const SkRect& rect, const SkPaint& paint);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
const SkRect& rect() const { return fRect; }
const SkPaint& paint() const { return fPaint; }
class SkDrawRRectCommand : public SkDrawCommand {
public:
SkDrawRRectCommand(const SkRRect& rrect, const SkPaint& paint);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
private:
SkRRect fRRect;
public:
SkDrawDRRectCommand(const SkRRect& outer, const SkRRect& inner,
const SkPaint& paint);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
private:
SkRRect fOuter;
class SkDrawSpriteCommand : public SkDrawCommand {
public:
SkDrawSpriteCommand(const SkBitmap& bitmap, int left, int top, const SkPaint* paint);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
private:
SkBitmap fBitmap;
const uint16_t indices[], int indexCount,
const SkPaint& paint);
virtual ~SkDrawVerticesCommand();
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
private:
SkCanvas::VertexMode fVmode;
int fVertexCount;
class SkRotateCommand : public SkDrawCommand {
public:
SkRotateCommand(SkScalar degrees);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
private:
SkScalar fDegrees;
class SkSaveCommand : public SkDrawCommand {
public:
SkSaveCommand();
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual void trackSaveState(int* state) SK_OVERRIDE;
virtual Action action() const SK_OVERRIDE { return kPushLayer_Action; }
private:
public:
SkSaveLayerCommand(const SkRect* bounds, const SkPaint* paint,
SkCanvas::SaveFlags flags);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
- virtual void vizExecute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
+ virtual void vizExecute(SkCanvas* canvas) SK_OVERRIDE;
virtual void trackSaveState(int* state) SK_OVERRIDE;
virtual Action action() const SK_OVERRIDE{ return kPushLayer_Action; }
virtual void setActive(bool active) SK_OVERRIDE { fActive = active; }
class SkScaleCommand : public SkDrawCommand {
public:
SkScaleCommand(SkScalar sx, SkScalar sy);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
SkScalar x() const { return fSx; }
SkScalar y() const { return fSy; }
public:
SkSetMatrixCommand(const SkMatrix& matrix);
virtual void setUserMatrix(const SkMatrix&) SK_OVERRIDE;
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
private:
SkMatrix fUserMatrix;
SkMatrix fMatrix;
class SkSkewCommand : public SkDrawCommand {
public:
SkSkewCommand(SkScalar sx, SkScalar sy);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
private:
SkScalar fSx;
SkScalar fSy;
class SkTranslateCommand : public SkDrawCommand {
public:
SkTranslateCommand(SkScalar dx, SkScalar dy);
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
SkScalar x() const { return fDx; }
SkScalar y() const { return fDy; }
class SkPushCullCommand : public SkDrawCommand {
public:
SkPushCullCommand(const SkRect&);
- virtual void execute(SkCanvas*) const SK_OVERRIDE;
- virtual void vizExecute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas*) SK_OVERRIDE;
+ virtual void vizExecute(SkCanvas* canvas) SK_OVERRIDE;
virtual Action action() const { return kPushCull_Action; }
virtual void setActive(bool active) { fActive = active; }
virtual bool active() const { return fActive; }
class SkPopCullCommand : public SkDrawCommand {
public:
SkPopCullCommand();
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
+ virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
virtual Action action() const { return kPopCull_Action; }
private:
typedef SkDrawCommand INHERITED;