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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 260 |
261 void SingleThreadProxy::NotifyReadyToActivate() { | 261 void SingleThreadProxy::NotifyReadyToActivate() { |
262 // Thread-only feature. | 262 // Thread-only feature. |
263 NOTREACHED(); | 263 NOTREACHED(); |
264 } | 264 } |
265 | 265 |
266 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { | 266 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { |
267 client_->ScheduleComposite(); | 267 client_->ScheduleComposite(); |
268 } | 268 } |
269 | 269 |
| 270 void SingleThreadProxy::SetNeedsAnimateOnImplThread() { |
| 271 SetNeedsRedrawOnImplThread(); |
| 272 } |
| 273 |
270 void SingleThreadProxy::SetNeedsManageTilesOnImplThread() { | 274 void SingleThreadProxy::SetNeedsManageTilesOnImplThread() { |
271 // Thread-only/Impl-side-painting-only feature. | 275 // Thread-only/Impl-side-painting-only feature. |
272 NOTREACHED(); | 276 NOTREACHED(); |
273 } | 277 } |
274 | 278 |
275 void SingleThreadProxy::SetNeedsRedrawRectOnImplThread( | 279 void SingleThreadProxy::SetNeedsRedrawRectOnImplThread( |
276 const gfx::Rect& damage_rect) { | 280 const gfx::Rect& damage_rect) { |
277 // TODO(brianderson): Once we move render_widget scheduling into this class, | 281 // TODO(brianderson): Once we move render_widget scheduling into this class, |
278 // we can treat redraw requests more efficiently than CommitAndRedraw | 282 // we can treat redraw requests more efficiently than CommitAndRedraw |
279 // requests. | 283 // requests. |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 void SingleThreadProxy::DidSwapFrame() { | 512 void SingleThreadProxy::DidSwapFrame() { |
509 if (next_frame_is_newly_committed_frame_) { | 513 if (next_frame_is_newly_committed_frame_) { |
510 next_frame_is_newly_committed_frame_ = false; | 514 next_frame_is_newly_committed_frame_ = false; |
511 layer_tree_host_->DidCommitAndDrawFrame(); | 515 layer_tree_host_->DidCommitAndDrawFrame(); |
512 } | 516 } |
513 } | 517 } |
514 | 518 |
515 bool SingleThreadProxy::CommitPendingForTesting() { return false; } | 519 bool SingleThreadProxy::CommitPendingForTesting() { return false; } |
516 | 520 |
517 } // namespace cc | 521 } // namespace cc |
OLD | NEW |