| 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); |
| 173 | 174 |
| 174 const ContextGroup& group() const { | 175 const ContextGroup& group() const { |
| 175 return *group_.get(); | 176 return *group_.get(); |
| 176 } | 177 } |
| 177 | 178 |
| 178 struct AttribInfo { | 179 struct AttribInfo { |
| 179 const char* name; | 180 const char* name; |
| 180 GLint size; | 181 GLint size; |
| 181 GLenum type; | 182 GLenum type; |
| 182 GLint location; | 183 GLint location; |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 void DeleteIndexBuffer(); | 417 void DeleteIndexBuffer(); |
| 417 | 418 |
| 418 GLuint client_vertex_shader_id_; | 419 GLuint client_vertex_shader_id_; |
| 419 GLuint client_fragment_shader_id_; | 420 GLuint client_fragment_shader_id_; |
| 420 }; | 421 }; |
| 421 | 422 |
| 422 } // namespace gles2 | 423 } // namespace gles2 |
| 423 } // namespace gpu | 424 } // namespace gpu |
| 424 | 425 |
| 425 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 426 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
| OLD | NEW |