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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 280 |
281 void SingleThreadProxy::NotifyReadyToActivate() { | 281 void SingleThreadProxy::NotifyReadyToActivate() { |
282 // Thread-only feature. | 282 // Thread-only feature. |
283 NOTREACHED(); | 283 NOTREACHED(); |
284 } | 284 } |
285 | 285 |
286 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { | 286 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { |
287 layer_tree_host_->ScheduleComposite(); | 287 layer_tree_host_->ScheduleComposite(); |
288 } | 288 } |
289 | 289 |
| 290 void SingleThreadProxy::SetNeedsManageTilesOnImplThread() { |
| 291 // Thread-only/Impl-side-painting-only feature. |
| 292 NOTREACHED(); |
| 293 } |
| 294 |
290 void SingleThreadProxy::SetNeedsRedrawRectOnImplThread(gfx::Rect damage_rect) { | 295 void SingleThreadProxy::SetNeedsRedrawRectOnImplThread(gfx::Rect damage_rect) { |
291 // TODO(brianderson): Once we move render_widget scheduling into this class, | 296 // TODO(brianderson): Once we move render_widget scheduling into this class, |
292 // we can treat redraw requests more efficiently than CommitAndRedraw | 297 // we can treat redraw requests more efficiently than CommitAndRedraw |
293 // requests. | 298 // requests. |
294 layer_tree_host_impl_->SetViewportDamage(damage_rect); | 299 layer_tree_host_impl_->SetViewportDamage(damage_rect); |
295 SetNeedsCommit(); | 300 SetNeedsCommit(); |
296 } | 301 } |
297 | 302 |
298 void SingleThreadProxy::DidInitializeVisibleTileOnImplThread() { | 303 void SingleThreadProxy::DidInitializeVisibleTileOnImplThread() { |
299 // Impl-side painting only. | 304 // Impl-side painting only. |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 void SingleThreadProxy::DidSwapFrame() { | 506 void SingleThreadProxy::DidSwapFrame() { |
502 if (next_frame_is_newly_committed_frame_) { | 507 if (next_frame_is_newly_committed_frame_) { |
503 next_frame_is_newly_committed_frame_ = false; | 508 next_frame_is_newly_committed_frame_ = false; |
504 layer_tree_host_->DidCommitAndDrawFrame(); | 509 layer_tree_host_->DidCommitAndDrawFrame(); |
505 } | 510 } |
506 } | 511 } |
507 | 512 |
508 bool SingleThreadProxy::CommitPendingForTesting() { return false; } | 513 bool SingleThreadProxy::CommitPendingForTesting() { return false; } |
509 | 514 |
510 } // namespace cc | 515 } // namespace cc |
OLD | NEW |