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

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

Issue 20806003: Plumb in "bleed" flag (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Addressed pipe-specific issues and updated to ToT Created 7 years, 4 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
« include/core/SkCanvas.h ('K') | « src/utils/debugger/SkDrawCommand.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« include/core/SkCanvas.h ('K') | « src/utils/debugger/SkDrawCommand.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698