| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 T GetSharedMemoryAsWithOffset(uint32_t offset) { | 102 T GetSharedMemoryAsWithOffset(uint32_t offset) { |
| 103 void* ptr = reinterpret_cast<int8_t*>(shared_memory_address_) + offset; | 103 void* ptr = reinterpret_cast<int8_t*>(shared_memory_address_) + offset; |
| 104 return reinterpret_cast<T>(ptr); | 104 return reinterpret_cast<T>(ptr); |
| 105 } | 105 } |
| 106 | 106 |
| 107 Buffer* GetBuffer(GLuint client_id) { | 107 Buffer* GetBuffer(GLuint client_id) { |
| 108 return group_->buffer_manager()->GetBuffer(client_id); | 108 return group_->buffer_manager()->GetBuffer(client_id); |
| 109 } | 109 } |
| 110 | 110 |
| 111 Framebuffer* GetFramebuffer(GLuint client_id) { | 111 Framebuffer* GetFramebuffer(GLuint client_id) { |
| 112 return group_->framebuffer_manager()->GetFramebuffer(client_id); | 112 return decoder_->GetFramebufferManager()->GetFramebuffer(client_id); |
| 113 } | 113 } |
| 114 | 114 |
| 115 Renderbuffer* GetRenderbuffer(GLuint client_id) { | 115 Renderbuffer* GetRenderbuffer(GLuint client_id) { |
| 116 return group_->renderbuffer_manager()->GetRenderbuffer(client_id); | 116 return group_->renderbuffer_manager()->GetRenderbuffer(client_id); |
| 117 } | 117 } |
| 118 | 118 |
| 119 TextureRef* GetTexture(GLuint client_id) { | 119 TextureRef* GetTexture(GLuint client_id) { |
| 120 return group_->texture_manager()->GetTexture(client_id); | 120 return group_->texture_manager()->GetTexture(client_id); |
| 121 } | 121 } |
| 122 | 122 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 } | 156 } |
| 157 | 157 |
| 158 FeatureInfo* feature_info() { | 158 FeatureInfo* feature_info() { |
| 159 return group_->feature_info(); | 159 return group_->feature_info(); |
| 160 } | 160 } |
| 161 | 161 |
| 162 FramebufferCompletenessCache* framebuffer_completeness_cache() const { | 162 FramebufferCompletenessCache* framebuffer_completeness_cache() const { |
| 163 return group_->framebuffer_completeness_cache(); | 163 return group_->framebuffer_completeness_cache(); |
| 164 } | 164 } |
| 165 | 165 |
| 166 FramebufferManager* GetFramebufferManager() { |
| 167 return decoder_->GetFramebufferManager(); |
| 168 } |
| 169 |
| 166 ImageManager* GetImageManager() { return decoder_->GetImageManager(); } | 170 ImageManager* GetImageManager() { return decoder_->GetImageManager(); } |
| 167 | 171 |
| 168 void DoCreateProgram(GLuint client_id, GLuint service_id); | 172 void DoCreateProgram(GLuint client_id, GLuint service_id); |
| 169 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id); | 173 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id); |
| 170 void DoFenceSync(GLuint client_id, GLuint service_id); | 174 void DoFenceSync(GLuint client_id, GLuint service_id); |
| 171 void DoCreateSampler(GLuint client_id, GLuint service_id); | 175 void DoCreateSampler(GLuint client_id, GLuint service_id); |
| 172 void DoCreateTransformFeedback(GLuint client_id, GLuint service_id); | 176 void DoCreateTransformFeedback(GLuint client_id, GLuint service_id); |
| 173 | 177 |
| 174 void SetBucketData(uint32_t bucket_id, const void* data, uint32_t data_size); | 178 void SetBucketData(uint32_t bucket_id, const void* data, uint32_t data_size); |
| 175 void SetBucketAsCString(uint32_t bucket_id, const char* str); | 179 void SetBucketAsCString(uint32_t bucket_id, const char* str); |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 if (arg[i] != array[i]) | 785 if (arg[i] != array[i]) |
| 782 return false; | 786 return false; |
| 783 } | 787 } |
| 784 return true; | 788 return true; |
| 785 } | 789 } |
| 786 | 790 |
| 787 } // namespace gles2 | 791 } // namespace gles2 |
| 788 } // namespace gpu | 792 } // namespace gpu |
| 789 | 793 |
| 790 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 794 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
| OLD | NEW |