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