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