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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 1411663002: cc: Split Proxy to eliminate unnecessary dependencies on the impl side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update perf tests. Created 5 years, 2 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 | « cc/trees/layer_tree_impl.h ('k') | cc/trees/layer_tree_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 47c4ee003382c99d34786c6441bfd0deeabbe4fb..ee24e612140b1b8a4d7cf6aa4276f2ae957ef721 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -731,10 +731,9 @@ bool LayerTreeImpl::UpdateDrawProperties(bool update_lcd_text) {
// raster source due to draw properties.
if (update_lcd_text) {
// TODO(enne): Make LTHI::sync_tree return this value.
- LayerTreeImpl* sync_tree =
- layer_tree_host_impl_->proxy()->CommitToActiveTree()
- ? layer_tree_host_impl_->active_tree()
- : layer_tree_host_impl_->pending_tree();
+ LayerTreeImpl* sync_tree = layer_tree_host_impl_->CommitToActiveTree()
+ ? layer_tree_host_impl_->active_tree()
+ : layer_tree_host_impl_->pending_tree();
// If this is not the sync tree, then it is not safe to update lcd text
// as it causes invalidations and the tiles may be in use.
DCHECK_EQ(this, sync_tree);
@@ -874,8 +873,8 @@ void LayerTreeImpl::ResetViewportSizeInvalid() {
layer_tree_host_impl_->OnCanDrawStateChangedForTree();
}
-Proxy* LayerTreeImpl::proxy() const {
- return layer_tree_host_impl_->proxy();
+TaskRunnerProvider* LayerTreeImpl::task_runner_provider() const {
+ return layer_tree_host_impl_->task_runner_provider();
}
const LayerTreeSettings& LayerTreeImpl::settings() const {
@@ -1714,10 +1713,6 @@ bool LayerTreeImpl::SmoothnessTakesPriority() const {
return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY;
}
-BlockingTaskRunner* LayerTreeImpl::BlockingMainThreadTaskRunner() const {
- return proxy()->blocking_main_thread_task_runner();
-}
-
VideoFrameControllerClient* LayerTreeImpl::GetVideoFrameControllerClient()
const {
return layer_tree_host_impl_;
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/layer_tree_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698