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

Side by Side Diff: gpu/command_buffer/client/client_test_helper.h

Issue 205193006: gpu: Remove map_image field from gpu::Capabilities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move TODO Created 6 years, 9 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 | « content/common/gpu/gpu_messages.h ('k') | gpu/command_buffer/client/gl_in_process_context.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Helper classes for implementing gpu client side unit tests. 5 // Helper classes for implementing gpu client side unit tests.
6 6
7 #ifndef GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ 7 #ifndef GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_
8 #define GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ 8 #define GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 MOCK_METHOD1(Flush, void(int32 put_offset)); 81 MOCK_METHOD1(Flush, void(int32 put_offset));
82 82
83 void DelegateToFake(); 83 void DelegateToFake();
84 }; 84 };
85 85
86 class MockClientGpuControl : public GpuControl { 86 class MockClientGpuControl : public GpuControl {
87 public: 87 public:
88 MockClientGpuControl(); 88 MockClientGpuControl();
89 virtual ~MockClientGpuControl(); 89 virtual ~MockClientGpuControl();
90 90
91 MOCK_METHOD0(GetCapabilities, Capabilities());
92 MOCK_METHOD4(CreateGpuMemoryBuffer, 91 MOCK_METHOD4(CreateGpuMemoryBuffer,
93 gfx::GpuMemoryBuffer*(size_t width, 92 gfx::GpuMemoryBuffer*(size_t width,
94 size_t height, 93 size_t height,
95 unsigned internalformat, 94 unsigned internalformat,
96 int32* id)); 95 int32* id));
97 MOCK_METHOD1(DestroyGpuMemoryBuffer, void(int32 id)); 96 MOCK_METHOD1(DestroyGpuMemoryBuffer, void(int32 id));
98 MOCK_METHOD0(InsertSyncPoint, uint32()); 97 MOCK_METHOD0(InsertSyncPoint, uint32());
99 MOCK_METHOD2(SignalSyncPoint, void(uint32 id, 98 MOCK_METHOD2(SignalSyncPoint, void(uint32 id,
100 const base::Closure& callback)); 99 const base::Closure& callback));
101 MOCK_METHOD1(Echo, void(const base::Closure& callback)); 100 MOCK_METHOD1(Echo, void(const base::Closure& callback));
102 101
103 MOCK_METHOD2(SignalQuery, void(uint32 query, const base::Closure& callback)); 102 MOCK_METHOD2(SignalQuery, void(uint32 query, const base::Closure& callback));
104 MOCK_METHOD1(SetSurfaceVisible, void(bool visible)); 103 MOCK_METHOD1(SetSurfaceVisible, void(bool visible));
105 MOCK_METHOD1(SendManagedMemoryStats, 104 MOCK_METHOD1(SendManagedMemoryStats,
106 void(const ManagedMemoryStats& stats)); 105 void(const ManagedMemoryStats& stats));
107 MOCK_METHOD1(CreateStreamTexture, uint32(uint32)); 106 MOCK_METHOD1(CreateStreamTexture, uint32(uint32));
108 107
109 private: 108 private:
110 DISALLOW_COPY_AND_ASSIGN(MockClientGpuControl); 109 DISALLOW_COPY_AND_ASSIGN(MockClientGpuControl);
111 }; 110 };
112 111
113 } // namespace gpu 112 } // namespace gpu
114 113
115 #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ 114 #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_
116 115
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | gpu/command_buffer/client/gl_in_process_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698