Index: src/utils/debugger/SkDrawCommand.cpp |
=================================================================== |
--- src/utils/debugger/SkDrawCommand.cpp (revision 10709) |
+++ src/utils/debugger/SkDrawCommand.cpp (working copy) |
@@ -342,7 +342,8 @@ |
} |
SkDrawBitmapRectCommand::SkDrawBitmapRectCommand(const SkBitmap& bitmap, const SkRect* src, |
- const SkRect& dst, const SkPaint* paint) { |
+ const SkRect& dst, const SkPaint* paint, |
+ SkCanvas::DrawBitmapRectFlags flags) { |
fBitmap = bitmap; |
if (NULL != src) { |
fSrc = *src; |
@@ -357,6 +358,8 @@ |
} else { |
fPaintPtr = NULL; |
} |
+ fFlags = flags; |
+ |
fDrawType = DRAW_BITMAP_RECT_TO_RECT; |
fInfo.push(SkObjectParser::BitmapToString(bitmap)); |
@@ -367,10 +370,11 @@ |
if (NULL != paint) { |
fInfo.push(SkObjectParser::PaintToString(*paint)); |
} |
+ fInfo.push(SkObjectParser::IntToString(fFlags, "Flags: ")); |
} |
void SkDrawBitmapRectCommand::execute(SkCanvas* canvas) { |
- canvas->drawBitmapRectToRect(fBitmap, this->srcRect(), fDst, fPaintPtr); |
+ canvas->drawBitmapRectToRect(fBitmap, this->srcRect(), fDst, fPaintPtr, fFlags); |
} |
bool SkDrawBitmapRectCommand::render(SkCanvas* canvas) const { |