Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 10893034: Add ENUM value to synthesized GL_INVALID_ENUM errors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 uint32 GetResultShmOffset(); 357 uint32 GetResultShmOffset();
358 358
359 // Lazily determines if GL_ANGLE_pack_reverse_row_order is available 359 // Lazily determines if GL_ANGLE_pack_reverse_row_order is available
360 bool IsAnglePackReverseRowOrderAvailable(); 360 bool IsAnglePackReverseRowOrderAvailable();
361 361
362 // Gets the GLError through our wrapper. 362 // Gets the GLError through our wrapper.
363 GLenum GetGLError(); 363 GLenum GetGLError();
364 364
365 // Sets our wrapper for the GLError. 365 // Sets our wrapper for the GLError.
366 void SetGLError(GLenum error, const char* function_name, const char* msg); 366 void SetGLError(GLenum error, const char* function_name, const char* msg);
367 void SetGLErrorInvalidEnum(
368 const char* function_name, GLenum value, const char* label);
367 369
368 // Returns the last error and clears it. Useful for debugging. 370 // Returns the last error and clears it. Useful for debugging.
369 const std::string& GetLastError() { 371 const std::string& GetLastError() {
370 return last_error_; 372 return last_error_;
371 } 373 }
372 374
373 // Waits for all commands to execute. 375 // Waits for all commands to execute.
374 void WaitForCmd(); 376 void WaitForCmd();
375 377
376 // TODO(gman): These bucket functions really seem like they belong in 378 // TODO(gman): These bucket functions really seem like they belong in
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 602
601 inline bool GLES2Implementation::GetTexParameterivHelper( 603 inline bool GLES2Implementation::GetTexParameterivHelper(
602 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { 604 GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
603 return false; 605 return false;
604 } 606 }
605 607
606 } // namespace gles2 608 } // namespace gles2
607 } // namespace gpu 609 } // namespace gpu
608 610
609 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 611 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698