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:
eaaaf0b
)
Fix SampleApp picture-mode transform.
author
fmalita
<fmalita@chromium.org>
Fri, 23 Jan 2015 18:03:15 +0000
(10:03 -0800)
committer
Commit bot
<commit-bot@chromium.org>
Fri, 23 Jan 2015 18:03:15 +0000
(10:03 -0800)
The multi-picture-draw path should not ignore the inherited transform.
R=reed@google.com,robertphillips@google.com
Review URL: https://codereview.chromium.org/
867303002
samplecode/SampleApp.cpp
patch
|
blob
|
history
diff --git
a/samplecode/SampleApp.cpp
b/samplecode/SampleApp.cpp
index
05eac2f
..
105976d
100644
(file)
--- a/
samplecode/SampleApp.cpp
+++ b/
samplecode/SampleApp.cpp
@@
-1362,6
+1362,7
@@
void SampleWindow::afterChildren(SkCanvas* orig) {
SkCanvas* c = surfs[index]->getCanvas();
c->translate(SkIntToScalar(-x * n.width()),
SkIntToScalar(-y * n.height()));
+ c->concat(orig->getTotalMatrix());
md.add(c, picture, NULL, NULL);
index++;
}