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

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

Issue 10535073: Enforce compressed texture restrictions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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