| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 void GetProgramInfoCHROMIUMHelper(GLuint program, std::vector<int8>* result); | 208 void GetProgramInfoCHROMIUMHelper(GLuint program, std::vector<int8>* result); |
| 209 GLint GetAttribLocationHelper(GLuint program, const char* name); | 209 GLint GetAttribLocationHelper(GLuint program, const char* name); |
| 210 GLint GetUniformLocationHelper(GLuint program, const char* name); | 210 GLint GetUniformLocationHelper(GLuint program, const char* name); |
| 211 bool GetActiveAttribHelper( | 211 bool GetActiveAttribHelper( |
| 212 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, | 212 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, |
| 213 GLint* size, GLenum* type, char* name); | 213 GLint* size, GLenum* type, char* name); |
| 214 bool GetActiveUniformHelper( | 214 bool GetActiveUniformHelper( |
| 215 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, | 215 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, |
| 216 GLint* size, GLenum* type, char* name); | 216 GLint* size, GLenum* type, char* name); |
| 217 | 217 |
| 218 void SetSharedMemoryChunkSizeMultiple(unsigned int multiple); | |
| 219 | 218 |
| 220 void FreeUnusedSharedMemory(); | 219 void FreeUnusedSharedMemory(); |
| 221 void FreeEverything(); | 220 void FreeEverything(); |
| 222 | 221 |
| 223 void SetErrorMessageCallback(ErrorMessageCallback* callback) { | 222 void SetErrorMessageCallback(ErrorMessageCallback* callback) { |
| 224 error_message_callback_ = callback; | 223 error_message_callback_ = callback; |
| 225 } | 224 } |
| 226 | 225 |
| 227 ShareGroup* share_group() const { | 226 ShareGroup* share_group() const { |
| 228 return share_group_.get(); | 227 return share_group_.get(); |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 | 702 |
| 704 inline bool GLES2Implementation::GetTexParameterivHelper( | 703 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 705 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 704 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 706 return false; | 705 return false; |
| 707 } | 706 } |
| 708 | 707 |
| 709 } // namespace gles2 | 708 } // namespace gles2 |
| 710 } // namespace gpu | 709 } // namespace gpu |
| 711 | 710 |
| 712 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 711 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |