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

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: Rebase on epenner's ManageTiles patch 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/trees/thread_proxy.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 389002d4322a54b94f29712a5caedcf56f77f1b8..4e51763c8cefa71d03149955f4c2b90ecc597916 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -385,6 +385,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 =
@@ -532,6 +534,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/trees/thread_proxy.cc ('K') | « ui/compositor/compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698