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

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: Improve tests. 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
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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 scheduler_on_impl_thread_->SetCanDraw(can_draw); 333 scheduler_on_impl_thread_->SetCanDraw(can_draw);
334 } 334 }
335 335
336 void SingleThreadProxy::NotifyReadyToActivate() { 336 void SingleThreadProxy::NotifyReadyToActivate() {
337 TRACE_EVENT0("cc", "SingleThreadProxy::NotifyReadyToActivate"); 337 TRACE_EVENT0("cc", "SingleThreadProxy::NotifyReadyToActivate");
338 DebugScopedSetImplThread impl(this); 338 DebugScopedSetImplThread impl(this);
339 if (scheduler_on_impl_thread_) 339 if (scheduler_on_impl_thread_)
340 scheduler_on_impl_thread_->NotifyReadyToActivate(); 340 scheduler_on_impl_thread_->NotifyReadyToActivate();
341 } 341 }
342 342
343 void SingleThreadProxy::NotifyReadyToDraw() {
344 }
345
343 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { 346 void SingleThreadProxy::SetNeedsRedrawOnImplThread() {
344 client_->ScheduleComposite(); 347 client_->ScheduleComposite();
345 if (scheduler_on_impl_thread_) 348 if (scheduler_on_impl_thread_)
346 scheduler_on_impl_thread_->SetNeedsRedraw(); 349 scheduler_on_impl_thread_->SetNeedsRedraw();
347 } 350 }
348 351
349 void SingleThreadProxy::SetNeedsAnimateOnImplThread() { 352 void SingleThreadProxy::SetNeedsAnimateOnImplThread() {
350 SetNeedsRedrawOnImplThread(); 353 SetNeedsRedrawOnImplThread();
351 } 354 }
352 355
(...skipping 437 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

Powered by Google App Engine
This is Rietveld 408576698