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

Unified Diff: ui/compositor/compositor.cc

Issue 23796002: cc: Implement deadine scheduling disabled by default (Closed) Base URL: http://git.chromium.org/chromium/src.git@schedReadback4
Patch Set: Enable by default on Aura Created 7 years, 3 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
« cc/base/switches.cc ('K') | « ui/compositor/compositor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 8b9b9c31b221d3089bead79127ce297838ae5330..fc83f34e5e58541982cf5f48a46a1c996edd2d20 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -386,6 +386,8 @@ Compositor::Compositor(CompositorDelegate* delegate,
ContextFactory::GetInstance()->DoesCreateTestContexts()
? kTestRefreshRate
: kDefaultRefreshRate;
+ settings.deadline_scheduling_enabled =
+ cc::switches::IsDeadlineSchedulingEnabled();
settings.partial_swap_enabled =
!command_line->HasSwitch(cc::switches::kUIDisablePartialSwap);
settings.per_tile_painting_enabled =
@@ -533,6 +535,10 @@ void Compositor::Terminate() {
g_compositor_initialized = false;
}
+const cc::LayerTreeSettings& Compositor::layer_tree_settings() const {
+ return host_->settings();
+}
+
void Compositor::ScheduleDraw() {
if (g_compositor_thread)
host_->Composite(base::TimeTicks::Now());
« cc/base/switches.cc ('K') | « ui/compositor/compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698