| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 } | 168 } |
| 169 | 169 |
| 170 ValueStateMap* pending_valuebuffer_state() { | 170 ValueStateMap* pending_valuebuffer_state() { |
| 171 return group_->pending_valuebuffer_state(); | 171 return group_->pending_valuebuffer_state(); |
| 172 } | 172 } |
| 173 | 173 |
| 174 FeatureInfo* feature_info() { | 174 FeatureInfo* feature_info() { |
| 175 return group_->feature_info(); | 175 return group_->feature_info(); |
| 176 } | 176 } |
| 177 | 177 |
| 178 FramebufferCompletenessCache* framebuffer_completeness_cache() const { |
| 179 return group_->framebuffer_completeness_cache(); |
| 180 } |
| 181 |
| 178 ImageManager* GetImageManager() { return decoder_->GetImageManager(); } | 182 ImageManager* GetImageManager() { return decoder_->GetImageManager(); } |
| 179 | 183 |
| 180 void DoCreateProgram(GLuint client_id, GLuint service_id); | 184 void DoCreateProgram(GLuint client_id, GLuint service_id); |
| 181 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id); | 185 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id); |
| 182 void DoFenceSync(GLuint client_id, GLuint service_id); | 186 void DoFenceSync(GLuint client_id, GLuint service_id); |
| 183 | 187 |
| 184 void SetBucketData(uint32_t bucket_id, const void* data, uint32_t data_size); | 188 void SetBucketData(uint32_t bucket_id, const void* data, uint32_t data_size); |
| 185 void SetBucketAsCString(uint32_t bucket_id, const char* str); | 189 void SetBucketAsCString(uint32_t bucket_id, const char* str); |
| 186 // If we want a valid bucket, just set |count_in_header| as |count|, | 190 // If we want a valid bucket, just set |count_in_header| as |count|, |
| 187 // and set |str_end| as 0. | 191 // and set |str_end| as 0. |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 }; | 777 }; |
| 774 | 778 |
| 775 // SpecializedSetup specializations that are needed in multiple unittest files. | 779 // SpecializedSetup specializations that are needed in multiple unittest files. |
| 776 template <> | 780 template <> |
| 777 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); | 781 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); |
| 778 | 782 |
| 779 } // namespace gles2 | 783 } // namespace gles2 |
| 780 } // namespace gpu | 784 } // namespace gpu |
| 781 | 785 |
| 782 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 786 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
| OLD | NEW |