| 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 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_ |
| 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ | 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ |
| 7 | 7 |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "cc/output/begin_frame_args.h" | 13 #include "cc/output/begin_frame_args.h" |
| 14 #include "cc/scheduler/scheduler.h" | 14 #include "cc/scheduler/scheduler.h" |
| 15 #include "cc/trees/blocking_task_runner.h" | 15 #include "cc/trees/blocking_task_runner.h" |
| 16 #include "cc/trees/layer_tree_host_impl.h" | 16 #include "cc/trees/layer_tree_host_impl.h" |
| 17 #include "cc/trees/proxy.h" | 17 #include "cc/trees/proxy.h" |
| 18 #include "cc/trees/task_runner_provider.h" | 18 #include "cc/trees/task_runner_provider.h" |
| 19 | 19 |
| 20 namespace cc { | 20 namespace cc { |
| 21 | 21 |
| 22 class MutatorEvents; | 22 class MutatorEvents; |
| 23 class BeginFrameSource; | 23 class BeginFrameSource; |
| 24 class ContextProvider; | |
| 25 class LayerTreeHostInProcess; | 24 class LayerTreeHostInProcess; |
| 26 class LayerTreeHostSingleThreadClient; | 25 class LayerTreeHostSingleThreadClient; |
| 27 | 26 |
| 28 class CC_EXPORT SingleThreadProxy : public Proxy, | 27 class CC_EXPORT SingleThreadProxy : public Proxy, |
| 29 NON_EXPORTED_BASE(LayerTreeHostImplClient), | 28 NON_EXPORTED_BASE(LayerTreeHostImplClient), |
| 30 public SchedulerClient { | 29 public SchedulerClient { |
| 31 public: | 30 public: |
| 32 static std::unique_ptr<Proxy> Create( | 31 static std::unique_ptr<Proxy> Create( |
| 33 LayerTreeHostInProcess* layer_tree_host, | 32 LayerTreeHostInProcess* layer_tree_host, |
| 34 LayerTreeHostSingleThreadClient* client, | 33 LayerTreeHostSingleThreadClient* client, |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 private: | 232 private: |
| 234 DebugScopedSetImplThread impl_thread_; | 233 DebugScopedSetImplThread impl_thread_; |
| 235 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 234 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 236 | 235 |
| 237 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 236 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 238 }; | 237 }; |
| 239 | 238 |
| 240 } // namespace cc | 239 } // namespace cc |
| 241 | 240 |
| 242 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 241 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |