OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/trees/thread_proxy.h" | 5 #include "cc/trees/thread_proxy.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "cc/base/thread.h" | 10 #include "cc/base/thread.h" |
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 | 781 |
782 if (offscreen_context_provider) | 782 if (offscreen_context_provider) |
783 offscreen_context_provider->BindToCurrentThread(); | 783 offscreen_context_provider->BindToCurrentThread(); |
784 layer_tree_host_impl_->resource_provider()-> | 784 layer_tree_host_impl_->resource_provider()-> |
785 set_offscreen_context_provider(offscreen_context_provider); | 785 set_offscreen_context_provider(offscreen_context_provider); |
786 | 786 |
787 if (layer_tree_host_->contents_texture_manager()-> | 787 if (layer_tree_host_->contents_texture_manager()-> |
788 LinkedEvictedBackingsExist()) { | 788 LinkedEvictedBackingsExist()) { |
789 // Clear any uploads we were making to textures linked to evicted | 789 // Clear any uploads we were making to textures linked to evicted |
790 // resources | 790 // resources |
791 queue->clearUploadsToEvictedResources(); | 791 queue->ClearUploadsToEvictedResources(); |
792 // Some textures in the layer tree are invalid. Kick off another commit | 792 // Some textures in the layer tree are invalid. Kick off another commit |
793 // to fill them again. | 793 // to fill them again. |
794 SetNeedsCommitOnImplThread(); | 794 SetNeedsCommitOnImplThread(); |
795 } | 795 } |
796 | 796 |
797 layer_tree_host_->contents_texture_manager()-> | 797 layer_tree_host_->contents_texture_manager()-> |
798 PushTexturePrioritiesToBackings(); | 798 PushTexturePrioritiesToBackings(); |
799 | 799 |
800 current_resource_update_controller_on_impl_thread_ = | 800 current_resource_update_controller_on_impl_thread_ = |
801 ResourceUpdateController::Create( | 801 ResourceUpdateController::Create( |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1333 base::Bind(&ThreadProxy::StartScrollbarAnimationOnImplThread, | 1333 base::Bind(&ThreadProxy::StartScrollbarAnimationOnImplThread, |
1334 impl_thread_weak_ptr_), | 1334 impl_thread_weak_ptr_), |
1335 delay); | 1335 delay); |
1336 } | 1336 } |
1337 | 1337 |
1338 void ThreadProxy::StartScrollbarAnimationOnImplThread() { | 1338 void ThreadProxy::StartScrollbarAnimationOnImplThread() { |
1339 layer_tree_host_impl_->StartScrollbarAnimation(base::TimeTicks::Now()); | 1339 layer_tree_host_impl_->StartScrollbarAnimation(base::TimeTicks::Now()); |
1340 } | 1340 } |
1341 | 1341 |
1342 } // namespace cc | 1342 } // namespace cc |
OLD | NEW |