projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a911f8f
)
[debugger] Add visualization of center rect for drawBitmapNine calls
author
robertphillips
<robertphillips@google.com>
Wed, 18 Nov 2015 20:59:42 +0000
(12:59 -0800)
committer
Commit bot
<commit-bot@chromium.org>
Wed, 18 Nov 2015 20:59:42 +0000
(12:59 -0800)
Review URL: https://codereview.chromium.org/
1462643002
src/utils/debugger/SkDrawCommand.cpp
patch
|
blob
|
history
diff --git
a/src/utils/debugger/SkDrawCommand.cpp
b/src/utils/debugger/SkDrawCommand.cpp
index 8be6de9b28e1dd9179fdc5aba19993bb92ecfa27..66f0c14f2d2ef66085bcc3d3b18ac4a05f0702c7 100644
(file)
--- 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;
}