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/single_thread_proxy.h" | 5 #include "cc/trees/single_thread_proxy.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "cc/debug/benchmark_instrumentation.h" | 9 #include "cc/debug/benchmark_instrumentation.h" |
10 #include "cc/output/context_provider.h" | 10 #include "cc/output/context_provider.h" |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 void SingleThreadProxy::DidInitializeVisibleTileOnImplThread() { | 316 void SingleThreadProxy::DidInitializeVisibleTileOnImplThread() { |
317 // Impl-side painting only. | 317 // Impl-side painting only. |
318 NOTREACHED(); | 318 NOTREACHED(); |
319 } | 319 } |
320 | 320 |
321 void SingleThreadProxy::SetNeedsCommitOnImplThread() { | 321 void SingleThreadProxy::SetNeedsCommitOnImplThread() { |
322 client_->ScheduleComposite(); | 322 client_->ScheduleComposite(); |
323 } | 323 } |
324 | 324 |
325 void SingleThreadProxy::PostAnimationEventsToMainThreadOnImplThread( | 325 void SingleThreadProxy::PostAnimationEventsToMainThreadOnImplThread( |
326 scoped_ptr<AnimationEventsVector> events, | 326 scoped_ptr<AnimationEventsVector> events) { |
327 base::Time wall_clock_time) { | |
328 TRACE_EVENT0( | 327 TRACE_EVENT0( |
329 "cc", "SingleThreadProxy::PostAnimationEventsToMainThreadOnImplThread"); | 328 "cc", "SingleThreadProxy::PostAnimationEventsToMainThreadOnImplThread"); |
330 DCHECK(Proxy::IsImplThread()); | 329 DCHECK(Proxy::IsImplThread()); |
331 DebugScopedSetMainThread main(this); | 330 DebugScopedSetMainThread main(this); |
332 layer_tree_host_->SetAnimationEvents(events.Pass(), wall_clock_time); | 331 layer_tree_host_->SetAnimationEvents(events.Pass()); |
333 } | 332 } |
334 | 333 |
335 bool SingleThreadProxy::ReduceContentsTextureMemoryOnImplThread( | 334 bool SingleThreadProxy::ReduceContentsTextureMemoryOnImplThread( |
336 size_t limit_bytes, | 335 size_t limit_bytes, |
337 int priority_cutoff) { | 336 int priority_cutoff) { |
338 DCHECK(IsImplThread()); | 337 DCHECK(IsImplThread()); |
339 PrioritizedResourceManager* contents_texture_manager = | 338 PrioritizedResourceManager* contents_texture_manager = |
340 layer_tree_host_->contents_texture_manager(); | 339 layer_tree_host_->contents_texture_manager(); |
341 | 340 |
342 ResourceProvider* resource_provider = | 341 ResourceProvider* resource_provider = |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 void SingleThreadProxy::DidSwapFrame() { | 565 void SingleThreadProxy::DidSwapFrame() { |
567 if (next_frame_is_newly_committed_frame_) { | 566 if (next_frame_is_newly_committed_frame_) { |
568 next_frame_is_newly_committed_frame_ = false; | 567 next_frame_is_newly_committed_frame_ = false; |
569 layer_tree_host_->DidCommitAndDrawFrame(); | 568 layer_tree_host_->DidCommitAndDrawFrame(); |
570 } | 569 } |
571 } | 570 } |
572 | 571 |
573 bool SingleThreadProxy::CommitPendingForTesting() { return false; } | 572 bool SingleThreadProxy::CommitPendingForTesting() { return false; } |
574 | 573 |
575 } // namespace cc | 574 } // namespace cc |
OLD | NEW |