| 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 int32 GetResultShmId(); | 362 int32 GetResultShmId(); |
| 363 uint32 GetResultShmOffset(); | 363 uint32 GetResultShmOffset(); |
| 364 | 364 |
| 365 // Lazily determines if GL_ANGLE_pack_reverse_row_order is available | 365 // Lazily determines if GL_ANGLE_pack_reverse_row_order is available |
| 366 bool IsAnglePackReverseRowOrderAvailable(); | 366 bool IsAnglePackReverseRowOrderAvailable(); |
| 367 | 367 |
| 368 // Gets the GLError through our wrapper. | 368 // Gets the GLError through our wrapper. |
| 369 GLenum GetGLError(); | 369 GLenum GetGLError(); |
| 370 | 370 |
| 371 // Sets our wrapper for the GLError. | 371 // Sets our wrapper for the GLError. |
| 372 void SetGLError(GLenum error, const char* msg); | 372 void SetGLError(GLenum error, const char* function_name, const char* msg); |
| 373 | 373 |
| 374 // Returns the last error and clears it. Useful for debugging. | 374 // Returns the last error and clears it. Useful for debugging. |
| 375 const std::string& GetLastError() { | 375 const std::string& GetLastError() { |
| 376 return last_error_; | 376 return last_error_; |
| 377 } | 377 } |
| 378 | 378 |
| 379 // Waits for all commands to execute. | 379 // Waits for all commands to execute. |
| 380 void WaitForCmd(); | 380 void WaitForCmd(); |
| 381 | 381 |
| 382 // TODO(gman): These bucket functions really seem like they belong in | 382 // TODO(gman): These bucket functions really seem like they belong in |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 | 595 |
| 596 inline bool GLES2Implementation::GetTexParameterivHelper( | 596 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 597 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 597 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 598 return false; | 598 return false; |
| 599 } | 599 } |
| 600 | 600 |
| 601 } // namespace gles2 | 601 } // namespace gles2 |
| 602 } // namespace gpu | 602 } // namespace gpu |
| 603 | 603 |
| 604 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 604 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |