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

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

Issue 1462643002: [debugger] Add visualization of center rect for drawBitmapNine calls (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | 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
diff --git a/src/utils/debugger/SkDrawCommand.cpp b/src/utils/debugger/SkDrawCommand.cpp
index 8be6de9b28e1dd9179fdc5aba19993bb92ecfa27..66f0c14f2d2ef66085bcc3d3b18ac4a05f0702c7 100644
--- a/src/utils/debugger/SkDrawCommand.cpp
+++ b/src/utils/debugger/SkDrawCommand.cpp
@@ -336,7 +336,8 @@ void SkDrawBitmapNineCommand::execute(SkCanvas* canvas) const {
}
bool SkDrawBitmapNineCommand::render(SkCanvas* canvas) const {
- render_bitmap(canvas, fBitmap);
+ SkRect tmp = SkRect::Make(fCenter);
+ render_bitmap(canvas, fBitmap, &tmp);
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698