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

Side by Side Diff: cc/test/test_context_support.h

Issue 132543002: Not for review. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_TEST_TEST_CONTEXT_SUPPORT_H_ 5 #ifndef CC_TEST_TEST_CONTEXT_SUPPORT_H_
6 #define CC_TEST_TEST_CONTEXT_SUPPORT_H_ 6 #define CC_TEST_TEST_CONTEXT_SUPPORT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "gpu/command_buffer/client/context_support.h" 11 #include "gpu/command_buffer/client/context_support.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 class TestContextSupport : public gpu::ContextSupport { 15 class TestContextSupport : public gpu::ContextSupport {
16 public: 16 public:
17 TestContextSupport(); 17 TestContextSupport();
18 virtual ~TestContextSupport(); 18 virtual ~TestContextSupport();
19 19
20 // gpu::ContextSupport implementation. 20 // gpu::ContextSupport implementation.
21 virtual void SignalSyncPoint(uint32 sync_point, 21 virtual void SignalSyncPoint(uint32 sync_point,
22 const base::Closure& callback) OVERRIDE; 22 const base::Closure& callback) OVERRIDE;
23 virtual void SignalQuery(uint32 query, 23 virtual void SignalQuery(uint32 query,
24 const base::Closure& callback) OVERRIDE; 24 const base::Closure& callback) OVERRIDE;
25 virtual void SetSurfaceVisible(bool visible) OVERRIDE; 25 virtual void SetSurfaceVisible(bool visible) OVERRIDE;
26 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats) 26 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats)
27 OVERRIDE; 27 OVERRIDE;
28 virtual void Swap() OVERRIDE; 28 virtual void Swap() OVERRIDE;
29 virtual void PartialSwapBuffers(gfx::Rect sub_buffer) OVERRIDE; 29 virtual void PartialSwapBuffers(gfx::Rect sub_buffer) OVERRIDE;
30 virtual void SetOverlayPlane(int plane_id,
31 int texture_id,
32 gfx::Rect sub_buffer) OVERRIDE;
30 virtual void SetSwapBuffersCompleteCallback( 33 virtual void SetSwapBuffersCompleteCallback(
31 const base::Closure& callback) OVERRIDE; 34 const base::Closure& callback) OVERRIDE;
32 35
33 void CallAllSyncPointCallbacks(); 36 void CallAllSyncPointCallbacks();
34 37
35 typedef base::Callback<void(bool visible)> SurfaceVisibleCallback; 38 typedef base::Callback<void(bool visible)> SurfaceVisibleCallback;
36 void SetSurfaceVisibleCallback( 39 void SetSurfaceVisibleCallback(
37 const SurfaceVisibleCallback& set_visible_callback); 40 const SurfaceVisibleCallback& set_visible_callback);
38 41
39 enum SwapType { 42 enum SwapType {
(...skipping 19 matching lines...) Expand all
59 gfx::Rect last_partial_swap_rect_; 62 gfx::Rect last_partial_swap_rect_;
60 63
61 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; 64 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_;
62 65
63 DISALLOW_COPY_AND_ASSIGN(TestContextSupport); 66 DISALLOW_COPY_AND_ASSIGN(TestContextSupport);
64 }; 67 };
65 68
66 } // namespace cc 69 } // namespace cc
67 70
68 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_ 71 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698