| Index: dm/DMReplayTask.cpp
|
| ===================================================================
|
| --- dm/DMReplayTask.cpp (revision 14216)
|
| +++ dm/DMReplayTask.cpp (working copy)
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "SkCommandLineFlags.h"
|
| #include "SkPicture.h"
|
| +#include "SkRTreePicture.h"
|
|
|
| DEFINE_bool(replay, true, "If true, run picture replay tests.");
|
| DEFINE_bool(rtree, true, "If true, run picture replay tests with an rtree.");
|
| @@ -22,8 +23,11 @@
|
| {}
|
|
|
| void ReplayTask::draw() {
|
| - const uint32_t flags = fUseRTree ? SkPicture::kOptimizeForClippedPlayback_RecordingFlag : 0;
|
| - SkAutoTUnref<SkPicture> recorded(RecordPicture(fGM.get(), flags));
|
| + SkAutoTUnref<SkPictureFactory> factory;
|
| + if (fUseRTree) {
|
| + factory.reset(SkNEW(SkRTreePictureFactory));
|
| + }
|
| + SkAutoTUnref<SkPicture> recorded(RecordPicture(fGM.get(), 0, factory));
|
|
|
| SkBitmap bitmap;
|
| SetupBitmap(fReference.colorType(), fGM.get(), &bitmap);
|
|
|