OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/gl_mock.h" | 8 #include "gpu/command_buffer/common/gl_mock.h" |
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 162 |
163 void SetBucketAsCString(uint32 bucket_id, const char* str); | 163 void SetBucketAsCString(uint32 bucket_id, const char* str); |
164 | 164 |
165 void InitDecoder( | 165 void InitDecoder( |
166 const char* extensions, | 166 const char* extensions, |
167 bool has_alpha, | 167 bool has_alpha, |
168 bool has_depth, | 168 bool has_depth, |
169 bool has_stencil, | 169 bool has_stencil, |
170 bool request_alpha, | 170 bool request_alpha, |
171 bool request_depth, | 171 bool request_depth, |
172 bool request_stencil, | 172 bool request_stencil); |
173 bool bind_generates_resource); | |
174 | 173 |
175 const ContextGroup& group() const { | 174 const ContextGroup& group() const { |
176 return *group_.get(); | 175 return *group_.get(); |
177 } | 176 } |
178 | 177 |
179 struct AttribInfo { | 178 struct AttribInfo { |
180 const char* name; | 179 const char* name; |
181 GLint size; | 180 GLint size; |
182 GLenum type; | 181 GLenum type; |
183 GLint location; | 182 GLint location; |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 void DeleteIndexBuffer(); | 416 void DeleteIndexBuffer(); |
418 | 417 |
419 GLuint client_vertex_shader_id_; | 418 GLuint client_vertex_shader_id_; |
420 GLuint client_fragment_shader_id_; | 419 GLuint client_fragment_shader_id_; |
421 }; | 420 }; |
422 | 421 |
423 } // namespace gles2 | 422 } // namespace gles2 |
424 } // namespace gpu | 423 } // namespace gpu |
425 | 424 |
426 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 425 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
OLD | NEW |