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