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_CLIENT_GLES2_IMPLEMENTATION_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
7 | 7 |
8 #include <GLES2/gl2.h> | 8 #include <GLES2/gl2.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 210 |
211 virtual void DisableVertexAttribArray(GLuint index) OVERRIDE; | 211 virtual void DisableVertexAttribArray(GLuint index) OVERRIDE; |
212 virtual void EnableVertexAttribArray(GLuint index) OVERRIDE; | 212 virtual void EnableVertexAttribArray(GLuint index) OVERRIDE; |
213 virtual void GetVertexAttribfv( | 213 virtual void GetVertexAttribfv( |
214 GLuint index, GLenum pname, GLfloat* params) OVERRIDE; | 214 GLuint index, GLenum pname, GLfloat* params) OVERRIDE; |
215 virtual void GetVertexAttribiv( | 215 virtual void GetVertexAttribiv( |
216 GLuint index, GLenum pname, GLint* params) OVERRIDE; | 216 GLuint index, GLenum pname, GLint* params) OVERRIDE; |
217 | 217 |
218 // ContextSupport implementation. | 218 // ContextSupport implementation. |
219 virtual void Swap() OVERRIDE; | 219 virtual void Swap() OVERRIDE; |
220 virtual void PartialSwapBuffers(gfx::Rect sub_buffer) OVERRIDE; | 220 virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) OVERRIDE; |
221 virtual void SetSwapBuffersCompleteCallback( | 221 virtual void SetSwapBuffersCompleteCallback( |
222 const base::Closure& swap_buffers_complete_callback) | 222 const base::Closure& swap_buffers_complete_callback) |
223 OVERRIDE; | 223 OVERRIDE; |
224 | 224 |
225 void GetProgramInfoCHROMIUMHelper(GLuint program, std::vector<int8>* result); | 225 void GetProgramInfoCHROMIUMHelper(GLuint program, std::vector<int8>* result); |
226 GLint GetAttribLocationHelper(GLuint program, const char* name); | 226 GLint GetAttribLocationHelper(GLuint program, const char* name); |
227 GLint GetUniformLocationHelper(GLuint program, const char* name); | 227 GLint GetUniformLocationHelper(GLuint program, const char* name); |
228 bool GetActiveAttribHelper( | 228 bool GetActiveAttribHelper( |
229 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, | 229 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, |
230 GLint* size, GLenum* type, char* name); | 230 GLint* size, GLenum* type, char* name); |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 | 754 |
755 inline bool GLES2Implementation::GetTexParameterivHelper( | 755 inline bool GLES2Implementation::GetTexParameterivHelper( |
756 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 756 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
757 return false; | 757 return false; |
758 } | 758 } |
759 | 759 |
760 } // namespace gles2 | 760 } // namespace gles2 |
761 } // namespace gpu | 761 } // namespace gpu |
762 | 762 |
763 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 763 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
OLD | NEW |