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 <list> | 10 #include <list> |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 // ContextSupport implementation. | 204 // ContextSupport implementation. |
205 void Swap() override; | 205 void Swap() override; |
206 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; | 206 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; |
207 void ScheduleOverlayPlane(int plane_z_order, | 207 void ScheduleOverlayPlane(int plane_z_order, |
208 gfx::OverlayTransform plane_transform, | 208 gfx::OverlayTransform plane_transform, |
209 unsigned overlay_texture_id, | 209 unsigned overlay_texture_id, |
210 const gfx::Rect& display_bounds, | 210 const gfx::Rect& display_bounds, |
211 const gfx::RectF& uv_rect) override; | 211 const gfx::RectF& uv_rect) override; |
212 GLuint InsertFutureSyncPointCHROMIUM() override; | 212 GLuint InsertFutureSyncPointCHROMIUM() override; |
213 void RetireSyncPointCHROMIUM(GLuint sync_point) override; | 213 void RetireSyncPointCHROMIUM(GLuint sync_point) override; |
| 214 bool IsContextLost() override; |
214 | 215 |
215 void GetProgramInfoCHROMIUMHelper(GLuint program, std::vector<int8>* result); | 216 void GetProgramInfoCHROMIUMHelper(GLuint program, std::vector<int8>* result); |
216 GLint GetAttribLocationHelper(GLuint program, const char* name); | 217 GLint GetAttribLocationHelper(GLuint program, const char* name); |
217 GLint GetUniformLocationHelper(GLuint program, const char* name); | 218 GLint GetUniformLocationHelper(GLuint program, const char* name); |
218 GLint GetFragDataLocationHelper(GLuint program, const char* name); | 219 GLint GetFragDataLocationHelper(GLuint program, const char* name); |
219 bool GetActiveAttribHelper( | 220 bool GetActiveAttribHelper( |
220 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, | 221 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, |
221 GLint* size, GLenum* type, char* name); | 222 GLint* size, GLenum* type, char* name); |
222 bool GetActiveUniformHelper( | 223 bool GetActiveUniformHelper( |
223 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, | 224 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 | 848 |
848 inline bool GLES2Implementation::GetTexParameterivHelper( | 849 inline bool GLES2Implementation::GetTexParameterivHelper( |
849 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 850 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
850 return false; | 851 return false; |
851 } | 852 } |
852 | 853 |
853 } // namespace gles2 | 854 } // namespace gles2 |
854 } // namespace gpu | 855 } // namespace gpu |
855 | 856 |
856 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 857 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
OLD | NEW |