| OLD | NEW |
| 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 // 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 <stdint.h> | 10 #include <stdint.h> |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 MOCK_METHOD9(ClearLevel, | 108 MOCK_METHOD9(ClearLevel, |
| 109 bool(Texture* texture, | 109 bool(Texture* texture, |
| 110 unsigned target, | 110 unsigned target, |
| 111 int level, | 111 int level, |
| 112 unsigned format, | 112 unsigned format, |
| 113 unsigned type, | 113 unsigned type, |
| 114 int x_offset, | 114 int x_offset, |
| 115 int y_offset, | 115 int y_offset, |
| 116 int width, | 116 int width, |
| 117 int height)); | 117 int height)); |
| 118 MOCK_METHOD6(ClearCompressedTextureLevel, |
| 119 bool(Texture* texture, |
| 120 unsigned target, |
| 121 int level, |
| 122 unsigned format, |
| 123 int width, |
| 124 int height)); |
| 125 MOCK_METHOD1(IsCompressedTextureFormat, |
| 126 bool(unsigned format)); |
| 118 MOCK_METHOD8(ClearLevel3D, | 127 MOCK_METHOD8(ClearLevel3D, |
| 119 bool(Texture* texture, | 128 bool(Texture* texture, |
| 120 unsigned target, | 129 unsigned target, |
| 121 int level, | 130 int level, |
| 122 unsigned format, | 131 unsigned format, |
| 123 unsigned type, | 132 unsigned type, |
| 124 int width, | 133 int width, |
| 125 int height, | 134 int height, |
| 126 int depth)); | 135 int depth)); |
| 127 MOCK_METHOD0(GetErrorState, ErrorState *()); | 136 MOCK_METHOD0(GetErrorState, ErrorState *()); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 143 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); | 152 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); |
| 144 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); | 153 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); |
| 145 | 154 |
| 146 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 155 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
| 147 }; | 156 }; |
| 148 | 157 |
| 149 } // namespace gles2 | 158 } // namespace gles2 |
| 150 } // namespace gpu | 159 } // namespace gpu |
| 151 | 160 |
| 152 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 161 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| OLD | NEW |