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

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

Issue 9968113: Addition of GL_CHROMIUM_copy_texture extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Correcting glEnableVertexAttribArray state. Created 8 years, 8 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 <vector> 8 #include <vector>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 bool SafeToRenderFrom() const { 135 bool SafeToRenderFrom() const {
136 return cleared_; 136 return cleared_;
137 } 137 }
138 138
139 // Get the width and height for a particular level. Returns false if level 139 // Get the width and height for a particular level. Returns false if level
140 // does not exist. 140 // does not exist.
141 bool GetLevelSize( 141 bool GetLevelSize(
142 GLint face, GLint level, GLsizei* width, GLsizei* height) const; 142 GLint face, GLint level, GLsizei* width, GLsizei* height) const;
143 143
144 // Set the width and height for a particular level. Returns false if level
145 // does not exist.
146 bool SetLevelSize(GLint face, GLint level, GLsizei width, GLsizei height);
greggman 2012/04/17 04:58:06 I'm sorry Jeff,I should have been paying more atte
Jeff Timanus 2012/04/18 14:59:08 I took your suggestion, and reverted these changes
147
144 // Get the type of a level. Returns false if level does not exist. 148 // Get the type of a level. Returns false if level does not exist.
145 bool GetLevelType( 149 bool GetLevelType(
146 GLint face, GLint level, GLenum* type, GLenum* internal_format) const; 150 GLint face, GLint level, GLenum* type, GLenum* internal_format) const;
147 151
148 bool IsDeleted() const { 152 bool IsDeleted() const {
149 return deleted_; 153 return deleted_;
150 } 154 }
151 155
152 // Returns true of the given dimensions are inside the dimensions of the 156 // Returns true of the given dimensions are inside the dimensions of the
153 // level and if the format and type match the level. 157 // level and if the format and type match the level.
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 // The default textures for each target (texture name = 0) 558 // The default textures for each target (texture name = 0)
555 TextureInfo::Ref default_textures_[kNumDefaultTextures]; 559 TextureInfo::Ref default_textures_[kNumDefaultTextures];
556 560
557 DISALLOW_COPY_AND_ASSIGN(TextureManager); 561 DISALLOW_COPY_AND_ASSIGN(TextureManager);
558 }; 562 };
559 563
560 } // namespace gles2 564 } // namespace gles2
561 } // namespace gpu 565 } // namespace gpu
562 566
563 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 567 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698