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

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

Issue 206793003: cc: Split animating and drawing into separate actions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix input handler proxy test build. Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
270 void SingleThreadProxy::SetNeedsManageTilesOnImplThread() { 274 void SingleThreadProxy::SetNeedsManageTilesOnImplThread() {
271 // Thread-only/Impl-side-painting-only feature. 275 // Thread-only/Impl-side-painting-only feature.
272 NOTREACHED(); 276 NOTREACHED();
273 } 277 }
274 278
275 void SingleThreadProxy::SetNeedsRedrawRectOnImplThread( 279 void SingleThreadProxy::SetNeedsRedrawRectOnImplThread(
276 const gfx::Rect& damage_rect) { 280 const gfx::Rect& damage_rect) {
277 // TODO(brianderson): Once we move render_widget scheduling into this class, 281 // TODO(brianderson): Once we move render_widget scheduling into this class,
278 // we can treat redraw requests more efficiently than CommitAndRedraw 282 // we can treat redraw requests more efficiently than CommitAndRedraw
279 // requests. 283 // requests.
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 void SingleThreadProxy::DidSwapFrame() { 512 void SingleThreadProxy::DidSwapFrame() {
509 if (next_frame_is_newly_committed_frame_) { 513 if (next_frame_is_newly_committed_frame_) {
510 next_frame_is_newly_committed_frame_ = false; 514 next_frame_is_newly_committed_frame_ = false;
511 layer_tree_host_->DidCommitAndDrawFrame(); 515 layer_tree_host_->DidCommitAndDrawFrame();
512 } 516 }
513 } 517 }
514 518
515 bool SingleThreadProxy::CommitPendingForTesting() { return false; } 519 bool SingleThreadProxy::CommitPendingForTesting() { return false; }
516 520
517 } // namespace cc 521 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698