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

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

Issue 1887243002: cc: Remove retro frames from scheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/profiler/scoped_tracker.h" 9 #include "base/profiler/scoped_tracker.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 TopControlsState current, 886 TopControlsState current,
887 bool animate) { 887 bool animate) {
888 NOTREACHED() << "Top Controls are used only in threaded mode"; 888 NOTREACHED() << "Top Controls are used only in threaded mode";
889 } 889 }
890 890
891 void SingleThreadProxy::SetOutputIsSecure(bool output_is_secure) { 891 void SingleThreadProxy::SetOutputIsSecure(bool output_is_secure) {
892 layer_tree_host_impl_->set_output_is_secure(output_is_secure); 892 layer_tree_host_impl_->set_output_is_secure(output_is_secure);
893 } 893 }
894 894
895 void SingleThreadProxy::DidFinishImplFrame() { 895 void SingleThreadProxy::DidFinishImplFrame() {
896 layer_tree_host_impl_->DidFinishImplFrame();
897 #if DCHECK_IS_ON() 896 #if DCHECK_IS_ON()
898 DCHECK(inside_impl_frame_) 897 DCHECK(inside_impl_frame_)
899 << "DidFinishImplFrame called while not inside an impl frame!"; 898 << "DidFinishImplFrame called while not inside an impl frame!";
900 inside_impl_frame_ = false; 899 inside_impl_frame_ = false;
901 #endif 900 #endif
901 layer_tree_host_impl_->DidFinishImplFrame();
902 } 902 }
903 903
904 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { 904 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) {
905 layer_tree_host_->SendBeginFramesToChildren(args); 905 layer_tree_host_->SendBeginFramesToChildren(args);
906 } 906 }
907 907
908 } // namespace cc 908 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698