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 <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1211 | 1211 |
1212 void ThreadProxy::InitializeImplOnImplThread(CompletionEvent* completion) { | 1212 void ThreadProxy::InitializeImplOnImplThread(CompletionEvent* completion) { |
1213 TRACE_EVENT0("cc", "ThreadProxy::InitializeImplOnImplThread"); | 1213 TRACE_EVENT0("cc", "ThreadProxy::InitializeImplOnImplThread"); |
1214 DCHECK(IsImplThread()); | 1214 DCHECK(IsImplThread()); |
1215 impl().layer_tree_host_impl = | 1215 impl().layer_tree_host_impl = |
1216 layer_tree_host()->CreateLayerTreeHostImpl(this); | 1216 layer_tree_host()->CreateLayerTreeHostImpl(this); |
1217 SchedulerSettings scheduler_settings(layer_tree_host()->settings()); | 1217 SchedulerSettings scheduler_settings(layer_tree_host()->settings()); |
1218 impl().scheduler = Scheduler::Create(this, | 1218 impl().scheduler = Scheduler::Create(this, |
1219 scheduler_settings, | 1219 scheduler_settings, |
1220 impl().layer_tree_host_id, | 1220 impl().layer_tree_host_id, |
1221 ImplThreadTaskRunner()); | 1221 ImplThreadTaskRunner(), |
| 1222 NULL /* SingleThreadProxy use only */); |
1222 impl().scheduler->SetVisible(impl().layer_tree_host_impl->visible()); | 1223 impl().scheduler->SetVisible(impl().layer_tree_host_impl->visible()); |
1223 | 1224 |
1224 impl_thread_weak_ptr_ = impl().weak_factory.GetWeakPtr(); | 1225 impl_thread_weak_ptr_ = impl().weak_factory.GetWeakPtr(); |
1225 completion->Signal(); | 1226 completion->Signal(); |
1226 } | 1227 } |
1227 | 1228 |
1228 void ThreadProxy::DeleteContentsTexturesOnImplThread( | 1229 void ThreadProxy::DeleteContentsTexturesOnImplThread( |
1229 CompletionEvent* completion) { | 1230 CompletionEvent* completion) { |
1230 TRACE_EVENT0("cc", "ThreadProxy::DeleteContentsTexturesOnImplThread"); | 1231 TRACE_EVENT0("cc", "ThreadProxy::DeleteContentsTexturesOnImplThread"); |
1231 DCHECK(IsImplThread()); | 1232 DCHECK(IsImplThread()); |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 | 1415 |
1415 impl().timing_history.DidActivateSyncTree(); | 1416 impl().timing_history.DidActivateSyncTree(); |
1416 } | 1417 } |
1417 | 1418 |
1418 void ThreadProxy::DidManageTiles() { | 1419 void ThreadProxy::DidManageTiles() { |
1419 DCHECK(IsImplThread()); | 1420 DCHECK(IsImplThread()); |
1420 impl().scheduler->DidManageTiles(); | 1421 impl().scheduler->DidManageTiles(); |
1421 } | 1422 } |
1422 | 1423 |
1423 } // namespace cc | 1424 } // namespace cc |
OLD | NEW |