Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(884)

Side by Side Diff: cc/trees/single_thread_proxy.h

Issue 242783003: cc: Add testing stubs for proxy test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use NON_EXPORTED_BASE for non-exported base class Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_unittest_proxy.cc ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_proxy.cc ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698