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

Unified Diff: dm/DM.cpp

Issue 2120333002: deferred canvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: make flush virtual Created 4 years, 5 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/DMSrcSink.cpp » ('j') | src/utils/SkDeferredCanvas.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index eb61fd786b543087a88885759d92b22ff9c5307e..05109922c3b54987c5705c86dce4b01bb68990e2 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -73,6 +73,9 @@ DEFINE_int32(shards, 1, "We're splitting source data into this many shards.");
DEFINE_int32(shard, 0, "Which shard do I run?");
DEFINE_string(mskps, "", "Directory to read mskps from, or a single mskp file.");
+DEFINE_bool(defer, false, "Run raster through SkDeferredCanvas");
+
+bool gUseDeferredCanvas;
using namespace DM;
using sk_gpu_test::GrContextFactory;
@@ -1255,6 +1258,8 @@ int dm_main() {
setbuf(stdout, nullptr);
setup_crash_handler();
+ gUseDeferredCanvas = FLAGS_defer;
+
if (FLAGS_verbose) {
gVLog = stderr;
} else if (!FLAGS_writePath.isEmpty()) {
« no previous file with comments | « no previous file | dm/DMSrcSink.cpp » ('j') | src/utils/SkDeferredCanvas.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698