| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |