Update nanobench so the non-MPD path doesn't permit layer hoisting
authorrobertphillips <robertphillips@google.com>
Tue, 9 Dec 2014 18:28:00 +0000 (10:28 -0800)
committerCommit 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

index 5e8bd50..e0d6da8 100644 (file)
@@ -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());