| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(gfx::Rect sub_buffer) OVERRIDE; |
| 221 virtual void SetOverlayPlane(int plane_id, |
| 222 int texture_id, |
| 223 gfx::Rect sub_buffer) OVERRIDE; |
| 221 virtual void SetSwapBuffersCompleteCallback( | 224 virtual void SetSwapBuffersCompleteCallback( |
| 222 const base::Closure& swap_buffers_complete_callback) | 225 const base::Closure& swap_buffers_complete_callback) |
| 223 OVERRIDE; | 226 OVERRIDE; |
| 224 | 227 |
| 225 void GetProgramInfoCHROMIUMHelper(GLuint program, std::vector<int8>* result); | 228 void GetProgramInfoCHROMIUMHelper(GLuint program, std::vector<int8>* result); |
| 226 GLint GetAttribLocationHelper(GLuint program, const char* name); | 229 GLint GetAttribLocationHelper(GLuint program, const char* name); |
| 227 GLint GetUniformLocationHelper(GLuint program, const char* name); | 230 GLint GetUniformLocationHelper(GLuint program, const char* name); |
| 228 bool GetActiveAttribHelper( | 231 bool GetActiveAttribHelper( |
| 229 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, | 232 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, |
| 230 GLint* size, GLenum* type, char* name); | 233 GLint* size, GLenum* type, char* name); |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 | 756 |
| 754 inline bool GLES2Implementation::GetTexParameterivHelper( | 757 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 755 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 758 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 756 return false; | 759 return false; |
| 757 } | 760 } |
| 758 | 761 |
| 759 } // namespace gles2 | 762 } // namespace gles2 |
| 760 } // namespace gpu | 763 } // namespace gpu |
| 761 | 764 |
| 762 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 765 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |