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 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
7 | 7 |
8 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 8 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
10 #include "gpu/command_buffer/service/buffer_manager.h" | 10 #include "gpu/command_buffer/service/buffer_manager.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 ValueStateMap* pending_valuebuffer_state() { | 163 ValueStateMap* pending_valuebuffer_state() { |
164 return group_->pending_valuebuffer_state(); | 164 return group_->pending_valuebuffer_state(); |
165 } | 165 } |
166 | 166 |
167 ImageManager* GetImageManager() { return decoder_->GetImageManager(); } | 167 ImageManager* GetImageManager() { return decoder_->GetImageManager(); } |
168 | 168 |
169 void DoCreateProgram(GLuint client_id, GLuint service_id); | 169 void DoCreateProgram(GLuint client_id, GLuint service_id); |
170 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id); | 170 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id); |
171 void DoFenceSync(GLuint client_id, GLuint service_id); | 171 void DoFenceSync(GLuint client_id, GLuint service_id); |
172 | 172 |
| 173 void SetBucketData(uint32_t bucket_id, const void* data, uint32_t data_size); |
173 void SetBucketAsCString(uint32 bucket_id, const char* str); | 174 void SetBucketAsCString(uint32 bucket_id, const char* str); |
174 // If we want a valid bucket, just set |count_in_header| as |count|, | 175 // If we want a valid bucket, just set |count_in_header| as |count|, |
175 // and set |str_end| as 0. | 176 // and set |str_end| as 0. |
176 void SetBucketAsCStrings(uint32 bucket_id, GLsizei count, const char** str, | 177 void SetBucketAsCStrings(uint32 bucket_id, GLsizei count, const char** str, |
177 GLsizei count_in_header, char str_end); | 178 GLsizei count_in_header, char str_end); |
178 | 179 |
179 void set_memory_tracker(MemoryTracker* memory_tracker) { | 180 void set_memory_tracker(MemoryTracker* memory_tracker) { |
180 memory_tracker_ = memory_tracker; | 181 memory_tracker_ = memory_tracker; |
181 } | 182 } |
182 | 183 |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 }; | 673 }; |
673 | 674 |
674 // SpecializedSetup specializations that are needed in multiple unittest files. | 675 // SpecializedSetup specializations that are needed in multiple unittest files. |
675 template <> | 676 template <> |
676 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); | 677 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); |
677 | 678 |
678 } // namespace gles2 | 679 } // namespace gles2 |
679 } // namespace gpu | 680 } // namespace gpu |
680 | 681 |
681 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 682 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
OLD | NEW |