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/time/time.h" | 10 #include "base/time/time.h" |
11 #include "cc/animation/animation_events.h" | 11 #include "cc/animation/animation_events.h" |
12 #include "cc/output/begin_frame_args.h" | 12 #include "cc/output/begin_frame_args.h" |
13 #include "cc/trees/layer_tree_host_impl.h" | 13 #include "cc/trees/layer_tree_host_impl.h" |
14 #include "cc/trees/proxy.h" | 14 #include "cc/trees/proxy.h" |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 | 17 |
18 class ContextProvider; | 18 class ContextProvider; |
19 class LayerTreeHost; | 19 class LayerTreeHost; |
20 class LayerTreeHostSingleThreadClient; | 20 class LayerTreeHostSingleThreadClient; |
21 | 21 |
22 class SingleThreadProxy : public Proxy, LayerTreeHostImplClient { | 22 class CC_EXPORT SingleThreadProxy : public Proxy, LayerTreeHostImplClient { |
23 public: | 23 public: |
24 static scoped_ptr<Proxy> Create( | 24 static scoped_ptr<Proxy> Create( |
25 LayerTreeHost* layer_tree_host, | 25 LayerTreeHost* layer_tree_host, |
26 LayerTreeHostSingleThreadClient* client); | 26 LayerTreeHostSingleThreadClient* client); |
27 virtual ~SingleThreadProxy(); | 27 virtual ~SingleThreadProxy(); |
28 | 28 |
29 // Proxy implementation | 29 // Proxy implementation |
30 virtual void FinishAllRendering() OVERRIDE; | 30 virtual void FinishAllRendering() OVERRIDE; |
31 virtual bool IsStarted() const OVERRIDE; | 31 virtual bool IsStarted() const OVERRIDE; |
32 virtual void SetLayerTreeHostClientReady() OVERRIDE; | 32 virtual void SetLayerTreeHostClientReady() OVERRIDE; |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 private: | 174 private: |
175 DebugScopedSetImplThread impl_thread_; | 175 DebugScopedSetImplThread impl_thread_; |
176 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 176 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
177 | 177 |
178 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 178 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
179 }; | 179 }; |
180 | 180 |
181 } // namespace cc | 181 } // namespace cc |
182 | 182 |
183 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 183 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |