OLD | NEW |
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 "../common/command_buffer.h" | 8 #include "gpu/command_buffer/common/command_buffer.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. |
(...skipping 19 matching lines...) Expand all Loading... |
38 void(error::ContextLostReason context_lost_reason)); | 38 void(error::ContextLostReason context_lost_reason)); |
39 MOCK_METHOD0(InsertSyncPoint, uint32()); | 39 MOCK_METHOD0(InsertSyncPoint, uint32()); |
40 | 40 |
41 private: | 41 private: |
42 DISALLOW_COPY_AND_ASSIGN(MockCommandBuffer); | 42 DISALLOW_COPY_AND_ASSIGN(MockCommandBuffer); |
43 }; | 43 }; |
44 | 44 |
45 } // namespace gpu | 45 } // namespace gpu |
46 | 46 |
47 #endif // GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_MOCK_H_ | 47 #endif // GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_MOCK_H_ |
OLD | NEW |