Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: dm/DMCpuTask.cpp

Issue 51243003: DM: add --rtree. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: same order Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dm/DMReplayTask.h » ('j') | dm/DMReplayTask.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMCpuTask.cpp
diff --git a/dm/DMCpuTask.cpp b/dm/DMCpuTask.cpp
index 7e6f909ff3a44c25062c97780aea11d3871f1f9c..ee461076321632a9bdc8635d6e0b79f4389bdeea 100644
--- a/dm/DMCpuTask.cpp
+++ b/dm/DMCpuTask.cpp
@@ -5,6 +5,8 @@
#include "DMUtil.h"
#include "DMWriteTask.h"
+#include "SkPicture.h"
+
namespace DM {
CpuTask::CpuTask(const char* name,
@@ -38,7 +40,10 @@ void CpuTask::draw() {
this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, true, false)));
this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, true, true)));
- this->spawnChild(SkNEW_ARGS(ReplayTask, (*this, fGMFactory(NULL), bitmap)));
+ const uint32_t kReplay = 0, kRTree = SkPicture::kOptimizeForClippedPlayback_RecordingFlag;
+ this->spawnChild(SkNEW_ARGS(ReplayTask, (*this, fGMFactory(NULL), bitmap, kReplay)));
+ this->spawnChild(SkNEW_ARGS(ReplayTask, (*this, fGMFactory(NULL), bitmap, kRTree)));
+
this->spawnChild(SkNEW_ARGS(SerializeTask, (*this, fGMFactory(NULL), bitmap)));
this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap)));
}
« no previous file with comments | « no previous file | dm/DMReplayTask.h » ('j') | dm/DMReplayTask.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698