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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 return true; | 451 return true; |
452 } | 452 } |
453 | 453 |
454 void SingleThreadProxy::DidSwapFrame() { | 454 void SingleThreadProxy::DidSwapFrame() { |
455 if (next_frame_is_newly_committed_frame_) { | 455 if (next_frame_is_newly_committed_frame_) { |
456 next_frame_is_newly_committed_frame_ = false; | 456 next_frame_is_newly_committed_frame_ = false; |
457 layer_tree_host_->DidCommitAndDrawFrame(); | 457 layer_tree_host_->DidCommitAndDrawFrame(); |
458 } | 458 } |
459 } | 459 } |
460 | 460 |
461 bool SingleThreadProxy::CommitPendingForTesting() { return false; } | 461 bool SingleThreadProxy::MainFrameWillHappenForTesting() { |
| 462 return false; |
| 463 } |
462 | 464 |
463 } // namespace cc | 465 } // namespace cc |
OLD | NEW |