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:
a3e5272
)
Update nanobench so the non-MPD path doesn't permit layer hoisting
author
robertphillips
<robertphillips@google.com>
Tue, 9 Dec 2014 18:28:00 +0000
(10:28 -0800)
committer
Commit bot
<commit-bot@chromium.org>
Tue, 9 Dec 2014 18:28:00 +0000
(10:28 -0800)
Review URL: https://codereview.chromium.org/
787923002
bench/nanobench.cpp
patch
|
blob
|
history
diff --git
a/bench/nanobench.cpp
b/bench/nanobench.cpp
index
5e8bd50
..
e0d6da8
100644
(file)
--- a/
bench/nanobench.cpp
+++ b/
bench/nanobench.cpp
@@
-548,7
+548,8
@@
public:
static const int kFlags = SkPictureRecorder::kComputeSaveLayerInfo_RecordFlag;
pic->playback(recorder.beginRecording(pic->cullRect().width(),
pic->cullRect().height(),
- &factory, kFlags));
+ &factory,
+ fUseMPDs[fCurrentUseMPD] ? kFlags : 0));
pic.reset(recorder.endRecording());
}
SkString name = SkOSPath::Basename(path.c_str());