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

Side by Side Diff: gpu/command_buffer/common/command_buffer_mock.h

Issue 215803002: Remove CommandBuffer::GetTransferBuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_MOCK_H_ 5 #ifndef GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_MOCK_H_
6 #define GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_MOCK_H_ 6 #define GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_MOCK_H_
7 7
8 #include "gpu/command_buffer/common/command_buffer.h" 8 #include "gpu/command_buffer/service/command_buffer_service.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 10
11 namespace base { 11 namespace base {
12 class SharedMemory; 12 class SharedMemory;
13 } 13 }
14 14
15 namespace gpu { 15 namespace gpu {
16 16
17 // An NPObject that implements a shared memory command buffer and a synchronous 17 // An NPObject that implements a shared memory command buffer and a synchronous
18 // API to manage the put and get pointers. 18 // API to manage the put and get pointers.
19 class MockCommandBuffer : public CommandBuffer { 19 class MockCommandBuffer : public CommandBufferServiceBase {
20 public: 20 public:
21 MockCommandBuffer(); 21 MockCommandBuffer();
22 virtual ~MockCommandBuffer(); 22 virtual ~MockCommandBuffer();
23 23
24 MOCK_METHOD0(Initialize, bool()); 24 MOCK_METHOD0(Initialize, bool());
25 MOCK_METHOD0(GetState, State()); 25 MOCK_METHOD0(GetState, State());
26 MOCK_METHOD0(GetLastState, State()); 26 MOCK_METHOD0(GetLastState, State());
27 MOCK_METHOD0(GetLastToken, int32()); 27 MOCK_METHOD0(GetLastToken, int32());
28 MOCK_METHOD1(Flush, void(int32 put_offset)); 28 MOCK_METHOD1(Flush, void(int32 put_offset));
29 MOCK_METHOD2(WaitForTokenInRange, void(int32 start, int32 end)); 29 MOCK_METHOD2(WaitForTokenInRange, void(int32 start, int32 end));
(...skipping 10 matching lines...) Expand all
40 void(error::ContextLostReason context_lost_reason)); 40 void(error::ContextLostReason context_lost_reason));
41 MOCK_METHOD0(InsertSyncPoint, uint32()); 41 MOCK_METHOD0(InsertSyncPoint, uint32());
42 42
43 private: 43 private:
44 DISALLOW_COPY_AND_ASSIGN(MockCommandBuffer); 44 DISALLOW_COPY_AND_ASSIGN(MockCommandBuffer);
45 }; 45 };
46 46
47 } // namespace gpu 47 } // namespace gpu
48 48
49 #endif // GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_MOCK_H_ 49 #endif // GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_MOCK_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/command_buffer.h ('k') | gpu/command_buffer/service/command_buffer_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698