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, |
| 23 NON_EXPORTED_BASE(LayerTreeHostImplClient) { |
23 public: | 24 public: |
24 static scoped_ptr<Proxy> Create( | 25 static scoped_ptr<Proxy> Create( |
25 LayerTreeHost* layer_tree_host, | 26 LayerTreeHost* layer_tree_host, |
26 LayerTreeHostSingleThreadClient* client); | 27 LayerTreeHostSingleThreadClient* client); |
27 virtual ~SingleThreadProxy(); | 28 virtual ~SingleThreadProxy(); |
28 | 29 |
29 // Proxy implementation | 30 // Proxy implementation |
30 virtual void FinishAllRendering() OVERRIDE; | 31 virtual void FinishAllRendering() OVERRIDE; |
31 virtual bool IsStarted() const OVERRIDE; | 32 virtual bool IsStarted() const OVERRIDE; |
32 virtual void SetLayerTreeHostClientReady() OVERRIDE; | 33 virtual void SetLayerTreeHostClientReady() OVERRIDE; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 private: | 176 private: |
176 DebugScopedSetImplThread impl_thread_; | 177 DebugScopedSetImplThread impl_thread_; |
177 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 178 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
178 | 179 |
179 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 180 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
180 }; | 181 }; |
181 | 182 |
182 } // namespace cc | 183 } // namespace cc |
183 | 184 |
184 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 185 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |