diff options
author | robertphillips <robertphillips@google.com> | 2014-12-09 10:28:00 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-09 10:28:00 -0800 |
commit | e451c4df7369c5e253ef9c9e0a8713beda25f34b (patch) | |
tree | 921b3a2545024e0a21d673bce8ba713c2c1b4641 | |
parent | a3e52724ac8b9fa7b48507bff4fa8e558a213e49 (diff) |
Update nanobench so the non-MPD path doesn't permit layer hoisting
Review URL: https://codereview.chromium.org/787923002
-rw-r--r-- | bench/nanobench.cpp | 3 |
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()); |