diff options
author | reveman <reveman@chromium.org> | 2016-02-24 19:42:43 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-25 03:43:49 +0000 |
commit | 56d6a40f9f84140e8a806325beec52bea3f3bd2a (patch) | |
tree | 85a25aab356d8625fce2943cc354a96d54afa075 /cc | |
parent | 0bf9689b8b999a748a43c29c47f548fc6a68f909 (diff) | |
download | chromium_src-56d6a40f9f84140e8a806325beec52bea3f3bd2a.zip chromium_src-56d6a40f9f84140e8a806325beec52bea3f3bd2a.tar.gz chromium_src-56d6a40f9f84140e8a806325beec52bea3f3bd2a.tar.bz2 |
content: Improve thread priority for raster threads.
This reduces the amount of resources that background work
can use by making the background thread that runs pre-paint
tasks use a priority that makes it run on a single small core
on big.LITTLE devices.
Threads used for foreground work are now given normal priority
on all platforms.
BUG=504515
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1616953003
Cr-Commit-Position: refs/heads/master@{#377490}
Diffstat (limited to 'cc')
-rw-r--r-- | cc/output/output_surface.h | 4 | ||||
-rw-r--r-- | cc/trees/proxy_impl.cc | 8 |
2 files changed, 0 insertions, 12 deletions
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h index 0b06800..88139df 100644 --- a/cc/output/output_surface.h +++ b/cc/output/output_surface.h @@ -137,10 +137,6 @@ class CC_EXPORT OutputSurface : public base::trace_event::MemoryDumpProvider { virtual void SwapBuffers(CompositorFrame* frame) = 0; virtual void OnSwapBuffersComplete(); - // Notifies frame-rate smoothness preference. If true, all non-critical - // processing should be stopped, or lowered in priority. - virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} - bool HasClient() { return !!client_; } // Get the class capable of informing cc of hardware overlay capability. diff --git a/cc/trees/proxy_impl.cc b/cc/trees/proxy_impl.cc index aefd847..46df9ec 100644 --- a/cc/trees/proxy_impl.cc +++ b/cc/trees/proxy_impl.cc @@ -412,14 +412,6 @@ void ProxyImpl::RenewTreePriority() { : ScrollHandlerState::SCROLL_DOES_NOT_AFFECT_SCROLL_HANDLER; scheduler_->SetTreePrioritiesAndScrollState(tree_priority, scroll_handler_state); - - // Notify the the client of this compositor via the output surface. - // TODO(epenner): Route this to compositor-thread instead of output-surface - // after GTFO refactor of compositor-thread (http://crbug/170828). - if (layer_tree_host_impl_->output_surface()) { - layer_tree_host_impl_->output_surface()->UpdateSmoothnessTakesPriority( - tree_priority == SMOOTHNESS_TAKES_PRIORITY); - } } void ProxyImpl::PostDelayedAnimationTaskOnImplThread(const base::Closure& task, |