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

Side by Side Diff: gpu/command_buffer/service/texture_manager.h

Issue 12321068: Add GL State Restoring Functions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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_SERVICE_TEXTURE_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 bool ClearRenderableLevels(GLES2Decoder* decoder, TextureInfo* info); 474 bool ClearRenderableLevels(GLES2Decoder* decoder, TextureInfo* info);
475 475
476 // Clear a specific level. 476 // Clear a specific level.
477 bool ClearTextureLevel( 477 bool ClearTextureLevel(
478 GLES2Decoder* decoder,TextureInfo* info, GLenum target, GLint level); 478 GLES2Decoder* decoder,TextureInfo* info, GLenum target, GLint level);
479 479
480 // Creates a new texture info. 480 // Creates a new texture info.
481 TextureInfo* CreateTextureInfo(GLuint client_id, GLuint service_id); 481 TextureInfo* CreateTextureInfo(GLuint client_id, GLuint service_id);
482 482
483 // Gets the texture info for the given texture. 483 // Gets the texture info for the given texture.
484 TextureInfo* GetTextureInfo(GLuint client_id); 484 TextureInfo* GetTextureInfo(GLuint client_id) const;
485 485
486 // Removes a texture info. 486 // Removes a texture info.
487 void RemoveTextureInfo(GLuint client_id); 487 void RemoveTextureInfo(GLuint client_id);
488 488
489 // Gets a client id for a given service id. 489 // Gets a client id for a given service id.
490 bool GetClientId(GLuint service_id, GLuint* client_id) const; 490 bool GetClientId(GLuint service_id, GLuint* client_id) const;
491 491
492 TextureInfo* GetDefaultTextureInfo(GLenum target) { 492 TextureInfo* GetDefaultTextureInfo(GLenum target) {
493 switch (target) { 493 switch (target) {
494 case GL_TEXTURE_2D: 494 case GL_TEXTURE_2D:
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 typedef std::list<PendingAsyncTransfer> PendingAsyncTransferList; 608 typedef std::list<PendingAsyncTransfer> PendingAsyncTransferList;
609 PendingAsyncTransferList pending_async_transfers_; 609 PendingAsyncTransferList pending_async_transfers_;
610 610
611 DISALLOW_COPY_AND_ASSIGN(TextureManager); 611 DISALLOW_COPY_AND_ASSIGN(TextureManager);
612 }; 612 };
613 613
614 } // namespace gles2 614 } // namespace gles2
615 } // namespace gpu 615 } // namespace gpu
616 616
617 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 617 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_mock.h ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698