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/output/context_provider.h" | 9 #include "cc/output/context_provider.h" |
10 #include "cc/output/output_surface.h" | 10 #include "cc/output/output_surface.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 225 |
226 void SingleThreadProxy::SetNeedsCommit() { | 226 void SingleThreadProxy::SetNeedsCommit() { |
227 DCHECK(Proxy::IsMainThread()); | 227 DCHECK(Proxy::IsMainThread()); |
228 layer_tree_host_->ScheduleComposite(); | 228 layer_tree_host_->ScheduleComposite(); |
229 } | 229 } |
230 | 230 |
231 void SingleThreadProxy::SetNeedsRedraw(gfx::Rect damage_rect) { | 231 void SingleThreadProxy::SetNeedsRedraw(gfx::Rect damage_rect) { |
232 SetNeedsRedrawRectOnImplThread(damage_rect); | 232 SetNeedsRedrawRectOnImplThread(damage_rect); |
233 } | 233 } |
234 | 234 |
| 235 void SingleThreadProxy::NotifyReadyToActivate() { |
| 236 // Thread-only feature. |
| 237 NOTREACHED(); |
| 238 } |
| 239 |
235 void SingleThreadProxy::OnHasPendingTreeStateChanged(bool have_pending_tree) { | 240 void SingleThreadProxy::OnHasPendingTreeStateChanged(bool have_pending_tree) { |
236 // Thread-only feature. | 241 // Thread-only feature. |
237 NOTREACHED(); | 242 NOTREACHED(); |
238 } | 243 } |
239 | 244 |
240 void SingleThreadProxy::SetDeferCommits(bool defer_commits) { | 245 void SingleThreadProxy::SetDeferCommits(bool defer_commits) { |
241 // Thread-only feature. | 246 // Thread-only feature. |
242 NOTREACHED(); | 247 NOTREACHED(); |
243 } | 248 } |
244 | 249 |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 void SingleThreadProxy::DidSwapFrame() { | 491 void SingleThreadProxy::DidSwapFrame() { |
487 if (next_frame_is_newly_committed_frame_) { | 492 if (next_frame_is_newly_committed_frame_) { |
488 next_frame_is_newly_committed_frame_ = false; | 493 next_frame_is_newly_committed_frame_ = false; |
489 layer_tree_host_->DidCommitAndDrawFrame(); | 494 layer_tree_host_->DidCommitAndDrawFrame(); |
490 } | 495 } |
491 } | 496 } |
492 | 497 |
493 bool SingleThreadProxy::CommitPendingForTesting() { return false; } | 498 bool SingleThreadProxy::CommitPendingForTesting() { return false; } |
494 | 499 |
495 } // namespace cc | 500 } // namespace cc |
OLD | NEW |