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

Unified Diff: ui/compositor/compositor.cc

Issue 186123006: zero copy - NOT FOR REVIEW Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: re-upload Created 6 years, 9 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
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 91302734c727812b0170acef6a2794d2ba0a699c..561c9b73132d936a5263ed5bb6dbfd1189188c49 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -34,6 +34,8 @@
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_switches.h"
+extern char GetZCopy();
+
namespace {
const double kDefaultRefreshRate = 60.0;
@@ -241,6 +243,11 @@ Compositor::Compositor(gfx::AcceleratedWidget widget)
settings.initial_debug_state.SetRecordRenderingStats(
command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking));
+ if (GetZCopy()) {
+ settings.impl_side_painting = true;
+ settings.use_map_image = true;
+ }
+
base::TimeTicks before_create = base::TimeTicks::Now();
if (!!g_compositor_thread) {
host_ = cc::LayerTreeHost::CreateThreaded(
« no previous file with comments | « content/content_common.gypi ('k') | ui/compositor/layer.h » ('j') | ui/compositor/layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698