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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // ContextSupport implementation. | 201 // ContextSupport implementation. |
202 void Swap() override; | 202 void Swap() override; |
203 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; | 203 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; |
204 void CommitOverlayPlanes() override; | 204 void CommitOverlayPlanes() override; |
205 void ScheduleOverlayPlane(int plane_z_order, | 205 void ScheduleOverlayPlane(int plane_z_order, |
206 gfx::OverlayTransform plane_transform, | 206 gfx::OverlayTransform plane_transform, |
207 unsigned overlay_texture_id, | 207 unsigned overlay_texture_id, |
208 const gfx::Rect& display_bounds, | 208 const gfx::Rect& display_bounds, |
209 const gfx::RectF& uv_rect) override; | 209 const gfx::RectF& uv_rect) override; |
210 uint64_t ShareGroupTracingGUID() const override; | 210 uint64_t ShareGroupTracingGUID() const override; |
| 211 void SetErrorMessageCallback( |
| 212 const base::Callback<void(const char*, int32_t)>& callback) override; |
211 | 213 |
212 void SetErrorMessageCallback( | 214 // TODO(danakj): Move to ContextSupport once ContextProvider doesn't need to |
213 const base::Callback<void(const char*, int32_t)>& callback); | 215 // intercept it. |
214 void SetLostContextCallback(const base::Closure& callback); | 216 void SetLostContextCallback(const base::Closure& callback); |
215 | 217 |
216 void GetProgramInfoCHROMIUMHelper(GLuint program, | 218 void GetProgramInfoCHROMIUMHelper(GLuint program, |
217 std::vector<int8_t>* result); | 219 std::vector<int8_t>* result); |
218 GLint GetAttribLocationHelper(GLuint program, const char* name); | 220 GLint GetAttribLocationHelper(GLuint program, const char* name); |
219 GLint GetUniformLocationHelper(GLuint program, const char* name); | 221 GLint GetUniformLocationHelper(GLuint program, const char* name); |
220 GLint GetFragDataIndexEXTHelper(GLuint program, const char* name); | 222 GLint GetFragDataIndexEXTHelper(GLuint program, const char* name); |
221 GLint GetFragDataLocationHelper(GLuint program, const char* name); | 223 GLint GetFragDataLocationHelper(GLuint program, const char* name); |
222 bool GetActiveAttribHelper( | 224 bool GetActiveAttribHelper( |
223 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, | 225 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 | 892 |
891 inline bool GLES2Implementation::GetTexParameterivHelper( | 893 inline bool GLES2Implementation::GetTexParameterivHelper( |
892 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 894 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
893 return false; | 895 return false; |
894 } | 896 } |
895 | 897 |
896 } // namespace gles2 | 898 } // namespace gles2 |
897 } // namespace gpu | 899 } // namespace gpu |
898 | 900 |
899 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 901 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
OLD | NEW |