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

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

Issue 672283003: cc: ReadyToDraw notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix counting of required for activation tiles. Created 6 years, 1 month 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
« 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 scheduler_on_impl_thread_->SetCanDraw(can_draw); 341 scheduler_on_impl_thread_->SetCanDraw(can_draw);
342 } 342 }
343 343
344 void SingleThreadProxy::NotifyReadyToActivate() { 344 void SingleThreadProxy::NotifyReadyToActivate() {
345 TRACE_EVENT0("cc", "SingleThreadProxy::NotifyReadyToActivate"); 345 TRACE_EVENT0("cc", "SingleThreadProxy::NotifyReadyToActivate");
346 DebugScopedSetImplThread impl(this); 346 DebugScopedSetImplThread impl(this);
347 if (scheduler_on_impl_thread_) 347 if (scheduler_on_impl_thread_)
348 scheduler_on_impl_thread_->NotifyReadyToActivate(); 348 scheduler_on_impl_thread_->NotifyReadyToActivate();
349 } 349 }
350 350
351 void SingleThreadProxy::NotifyReadyToDraw() {
352 }
353
351 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { 354 void SingleThreadProxy::SetNeedsRedrawOnImplThread() {
352 client_->ScheduleComposite(); 355 client_->ScheduleComposite();
353 if (scheduler_on_impl_thread_) 356 if (scheduler_on_impl_thread_)
354 scheduler_on_impl_thread_->SetNeedsRedraw(); 357 scheduler_on_impl_thread_->SetNeedsRedraw();
355 } 358 }
356 359
357 void SingleThreadProxy::SetNeedsAnimateOnImplThread() { 360 void SingleThreadProxy::SetNeedsAnimateOnImplThread() {
358 client_->ScheduleComposite(); 361 client_->ScheduleComposite();
359 if (scheduler_on_impl_thread_) 362 if (scheduler_on_impl_thread_)
360 scheduler_on_impl_thread_->SetNeedsAnimate(); 363 scheduler_on_impl_thread_->SetNeedsAnimate();
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 793
791 base::TimeDelta SingleThreadProxy::CommitToActivateDurationEstimate() { 794 base::TimeDelta SingleThreadProxy::CommitToActivateDurationEstimate() {
792 return timing_history_.CommitToActivateDurationEstimate(); 795 return timing_history_.CommitToActivateDurationEstimate();
793 } 796 }
794 797
795 void SingleThreadProxy::DidBeginImplFrameDeadline() { 798 void SingleThreadProxy::DidBeginImplFrameDeadline() {
796 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); 799 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame();
797 } 800 }
798 801
799 } // namespace cc 802 } // 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