Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(493)

Side by Side Diff: cc/trees/single_thread_proxy.cc

Issue 23495022: CC: Add a scheduled action for ManageTiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add to AsValue Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698