| 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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 void SingleThreadProxy::ScheduledActionPrepareTiles() { | 727 void SingleThreadProxy::ScheduledActionPrepareTiles() { |
| 728 TRACE_EVENT0("cc", "SingleThreadProxy::ScheduledActionPrepareTiles"); | 728 TRACE_EVENT0("cc", "SingleThreadProxy::ScheduledActionPrepareTiles"); |
| 729 DebugScopedSetImplThread impl(task_runner_provider_); | 729 DebugScopedSetImplThread impl(task_runner_provider_); |
| 730 layer_tree_host_impl_->PrepareTiles(); | 730 layer_tree_host_impl_->PrepareTiles(); |
| 731 } | 731 } |
| 732 | 732 |
| 733 void SingleThreadProxy::ScheduledActionInvalidateCompositorFrameSink() { | 733 void SingleThreadProxy::ScheduledActionInvalidateCompositorFrameSink() { |
| 734 NOTREACHED(); | 734 NOTREACHED(); |
| 735 } | 735 } |
| 736 | 736 |
| 737 void SingleThreadProxy::UpdateTopControlsState(TopControlsState constraints, | 737 void SingleThreadProxy::UpdateTopControlsState(BrowserControlsState constraints, |
| 738 TopControlsState current, | 738 BrowserControlsState current, |
| 739 bool animate) { | 739 bool animate) { |
| 740 NOTREACHED() << "Top Controls are used only in threaded mode"; | 740 NOTREACHED() << "Top Controls are used only in threaded mode"; |
| 741 } | 741 } |
| 742 | 742 |
| 743 void SingleThreadProxy::DidFinishImplFrame() { | 743 void SingleThreadProxy::DidFinishImplFrame() { |
| 744 layer_tree_host_impl_->DidFinishImplFrame(); | 744 layer_tree_host_impl_->DidFinishImplFrame(); |
| 745 #if DCHECK_IS_ON() | 745 #if DCHECK_IS_ON() |
| 746 DCHECK(inside_impl_frame_) | 746 DCHECK(inside_impl_frame_) |
| 747 << "DidFinishImplFrame called while not inside an impl frame!"; | 747 << "DidFinishImplFrame called while not inside an impl frame!"; |
| 748 inside_impl_frame_ = false; | 748 inside_impl_frame_ = false; |
| 749 #endif | 749 #endif |
| 750 } | 750 } |
| 751 | 751 |
| 752 } // namespace cc | 752 } // namespace cc |
| OLD | NEW |