| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 237 |
| 238 void SingleThreadProxy::SetNeedsCommit() { | 238 void SingleThreadProxy::SetNeedsCommit() { |
| 239 DCHECK(Proxy::IsMainThread()); | 239 DCHECK(Proxy::IsMainThread()); |
| 240 layer_tree_host_->ScheduleComposite(); | 240 layer_tree_host_->ScheduleComposite(); |
| 241 } | 241 } |
| 242 | 242 |
| 243 void SingleThreadProxy::SetNeedsRedraw(gfx::Rect damage_rect) { | 243 void SingleThreadProxy::SetNeedsRedraw(gfx::Rect damage_rect) { |
| 244 SetNeedsRedrawRectOnImplThread(damage_rect); | 244 SetNeedsRedrawRectOnImplThread(damage_rect); |
| 245 } | 245 } |
| 246 | 246 |
| 247 void SingleThreadProxy::SetNextCommitWaitsForActivation() { | |
| 248 // There is no activation here other than commit. So do nothing. | |
| 249 } | |
| 250 | |
| 251 void SingleThreadProxy::SetDeferCommits(bool defer_commits) { | 247 void SingleThreadProxy::SetDeferCommits(bool defer_commits) { |
| 252 // Thread-only feature. | 248 // Thread-only feature. |
| 253 NOTREACHED(); | 249 NOTREACHED(); |
| 254 } | 250 } |
| 255 | 251 |
| 256 bool SingleThreadProxy::CommitRequested() const { return false; } | 252 bool SingleThreadProxy::CommitRequested() const { return false; } |
| 257 | 253 |
| 258 size_t SingleThreadProxy::MaxPartialTextureUpdates() const { | 254 size_t SingleThreadProxy::MaxPartialTextureUpdates() const { |
| 259 return std::numeric_limits<size_t>::max(); | 255 return std::numeric_limits<size_t>::max(); |
| 260 } | 256 } |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 void SingleThreadProxy::DidSwapFrame() { | 491 void SingleThreadProxy::DidSwapFrame() { |
| 496 if (next_frame_is_newly_committed_frame_) { | 492 if (next_frame_is_newly_committed_frame_) { |
| 497 next_frame_is_newly_committed_frame_ = false; | 493 next_frame_is_newly_committed_frame_ = false; |
| 498 layer_tree_host_->DidCommitAndDrawFrame(); | 494 layer_tree_host_->DidCommitAndDrawFrame(); |
| 499 } | 495 } |
| 500 } | 496 } |
| 501 | 497 |
| 502 bool SingleThreadProxy::CommitPendingForTesting() { return false; } | 498 bool SingleThreadProxy::CommitPendingForTesting() { return false; } |
| 503 | 499 |
| 504 } // namespace cc | 500 } // namespace cc |
| OLD | NEW |