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