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

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: Comment addressed 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
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, 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 bool CompositeAndReadback(void* pixels, 30 virtual bool CompositeAndReadback(void* pixels,
31 const gfx::Rect& rect) OVERRIDE; 31 const gfx::Rect& rect) OVERRIDE;
32 virtual void FinishAllRendering() OVERRIDE; 32 virtual void FinishAllRendering() OVERRIDE;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 private: 180 private:
181 DebugScopedSetImplThread impl_thread_; 181 DebugScopedSetImplThread impl_thread_;
182 DebugScopedSetMainThreadBlocked main_thread_blocked_; 182 DebugScopedSetMainThreadBlocked main_thread_blocked_;
183 183
184 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 184 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
185 }; 185 };
186 186
187 } // namespace cc 187 } // namespace cc
188 188
189 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 189 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698