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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 292 |
293 void SingleThreadProxy::NotifyReadyToActivate() { | 293 void SingleThreadProxy::NotifyReadyToActivate() { |
294 // Thread-only feature. | 294 // Thread-only feature. |
295 NOTREACHED(); | 295 NOTREACHED(); |
296 } | 296 } |
297 | 297 |
298 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { | 298 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { |
299 client_->ScheduleComposite(); | 299 client_->ScheduleComposite(); |
300 } | 300 } |
301 | 301 |
| 302 void SingleThreadProxy::SetNeedsAnimateOnImplThread() { |
| 303 SetNeedsRedrawOnImplThread(); |
| 304 } |
| 305 |
302 void SingleThreadProxy::SetNeedsManageTilesOnImplThread() { | 306 void SingleThreadProxy::SetNeedsManageTilesOnImplThread() { |
303 // Thread-only/Impl-side-painting-only feature. | 307 // Thread-only/Impl-side-painting-only feature. |
304 NOTREACHED(); | 308 NOTREACHED(); |
305 } | 309 } |
306 | 310 |
307 void SingleThreadProxy::SetNeedsRedrawRectOnImplThread( | 311 void SingleThreadProxy::SetNeedsRedrawRectOnImplThread( |
308 const gfx::Rect& damage_rect) { | 312 const gfx::Rect& damage_rect) { |
309 // TODO(brianderson): Once we move render_widget scheduling into this class, | 313 // TODO(brianderson): Once we move render_widget scheduling into this class, |
310 // we can treat redraw requests more efficiently than CommitAndRedraw | 314 // we can treat redraw requests more efficiently than CommitAndRedraw |
311 // requests. | 315 // requests. |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 void SingleThreadProxy::DidSwapFrame() { | 568 void SingleThreadProxy::DidSwapFrame() { |
565 if (next_frame_is_newly_committed_frame_) { | 569 if (next_frame_is_newly_committed_frame_) { |
566 next_frame_is_newly_committed_frame_ = false; | 570 next_frame_is_newly_committed_frame_ = false; |
567 layer_tree_host_->DidCommitAndDrawFrame(); | 571 layer_tree_host_->DidCommitAndDrawFrame(); |
568 } | 572 } |
569 } | 573 } |
570 | 574 |
571 bool SingleThreadProxy::CommitPendingForTesting() { return false; } | 575 bool SingleThreadProxy::CommitPendingForTesting() { return false; } |
572 | 576 |
573 } // namespace cc | 577 } // namespace cc |
OLD | NEW |