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 // This file contains the mock GLES2Decoder class. | 5 // This file contains the mock GLES2Decoder class. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 MOCK_METHOD1(SetResizeCallback, void(const base::Callback<void(gfx::Size)>&)); | 50 MOCK_METHOD1(SetResizeCallback, void(const base::Callback<void(gfx::Size)>&)); |
51 MOCK_METHOD1(SetSwapBuffersCallback, void(const base::Closure&)); | 51 MOCK_METHOD1(SetSwapBuffersCallback, void(const base::Closure&)); |
52 MOCK_METHOD1(SetStreamTextureManager, void(StreamTextureManager*)); | 52 MOCK_METHOD1(SetStreamTextureManager, void(StreamTextureManager*)); |
53 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, | 53 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, |
54 unsigned int arg_count, | 54 unsigned int arg_count, |
55 const void* cmd_data)); | 55 const void* cmd_data)); |
56 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, | 56 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, |
57 uint32* service_texture_id)); | 57 uint32* service_texture_id)); |
58 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason()); | 58 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason()); |
59 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); | 59 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); |
60 MOCK_METHOD8(ClearLevel, bool( | 60 MOCK_METHOD9(ClearLevel, bool( |
61 unsigned service_id, | 61 unsigned service_id, |
62 unsigned bind_target, | 62 unsigned bind_target, |
63 unsigned target, | 63 unsigned target, |
64 int level, | 64 int level, |
65 unsigned format, | 65 unsigned format, |
66 unsigned type, | 66 unsigned type, |
67 int width, | 67 int width, |
68 int height)); | 68 int height, |
| 69 bool is_texture_immutable)); |
69 | 70 |
70 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 71 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
71 }; | 72 }; |
72 | 73 |
73 } // namespace gles2 | 74 } // namespace gles2 |
74 } // namespace gpu | 75 } // namespace gpu |
75 | 76 |
76 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 77 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
OLD | NEW |