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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // This name doesn't match the underlying function, but doing it this way | 135 // This name doesn't match the underlying function, but doing it this way |
136 // prevents the need to special-case the unit test generation | 136 // prevents the need to special-case the unit test generation |
137 VertexAttribManager* GetVertexArrayInfo(GLuint client_id) { | 137 VertexAttribManager* GetVertexArrayInfo(GLuint client_id) { |
138 return decoder_->GetVertexArrayManager()->GetVertexAttribManager(client_id); | 138 return decoder_->GetVertexArrayManager()->GetVertexAttribManager(client_id); |
139 } | 139 } |
140 | 140 |
141 ProgramManager* program_manager() { | 141 ProgramManager* program_manager() { |
142 return group_->program_manager(); | 142 return group_->program_manager(); |
143 } | 143 } |
144 | 144 |
| 145 ImageManager* GetImageManager() { return decoder_->GetImageManager(); } |
| 146 |
145 void DoCreateProgram(GLuint client_id, GLuint service_id); | 147 void DoCreateProgram(GLuint client_id, GLuint service_id); |
146 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id); | 148 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id); |
147 | 149 |
148 void SetBucketAsCString(uint32 bucket_id, const char* str); | 150 void SetBucketAsCString(uint32 bucket_id, const char* str); |
149 | 151 |
150 void set_memory_tracker(MemoryTracker* memory_tracker) { | 152 void set_memory_tracker(MemoryTracker* memory_tracker) { |
151 memory_tracker_ = memory_tracker; | 153 memory_tracker_ = memory_tracker; |
152 } | 154 } |
153 | 155 |
154 struct InitState { | 156 struct InitState { |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 }; | 640 }; |
639 | 641 |
640 // SpecializedSetup specializations that are needed in multiple unittest files. | 642 // SpecializedSetup specializations that are needed in multiple unittest files. |
641 template <> | 643 template <> |
642 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); | 644 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); |
643 | 645 |
644 } // namespace gles2 | 646 } // namespace gles2 |
645 } // namespace gpu | 647 } // namespace gpu |
646 | 648 |
647 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 649 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
OLD | NEW |