aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2014-12-09 10:28:00 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-09 10:28:00 -0800
commite451c4df7369c5e253ef9c9e0a8713beda25f34b (patch)
tree921b3a2545024e0a21d673bce8ba713c2c1b4641 /bench
parenta3e52724ac8b9fa7b48507bff4fa8e558a213e49 (diff)
Update nanobench so the non-MPD path doesn't permit layer hoisting
Diffstat (limited to 'bench')
-rw-r--r--bench/nanobench.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index 5e8bd50c0c..e0d6da84ea 100644
--- 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());