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

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

Issue 254883004: Revert 266624 "cc: Split animating and drawing into separate act..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 | « trunk/src/cc/trees/single_thread_proxy.h ('k') | trunk/src/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
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
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
OLDNEW
« no previous file with comments | « trunk/src/cc/trees/single_thread_proxy.h ('k') | trunk/src/cc/trees/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698