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