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

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

Issue 10984009: Allow immutable textures into mailboxes (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_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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 void SetStreamTexture(bool stream_texture) { 164 void SetStreamTexture(bool stream_texture) {
165 stream_texture_ = stream_texture; 165 stream_texture_ = stream_texture;
166 } 166 }
167 167
168 int IsStreamTexture() { 168 int IsStreamTexture() {
169 return stream_texture_; 169 return stream_texture_;
170 } 170 }
171 171
172 void SetImmutable(bool immutable) { 172 void SetImmutable(bool immutable) {
173 DCHECK(!immutable_);
174 immutable_ = immutable; 173 immutable_ = immutable;
175 } 174 }
176 175
177 bool IsImmutable() { 176 bool IsImmutable() {
178 return immutable_; 177 return immutable_;
179 } 178 }
180 179
181 // Whether a particular level/face is cleared. 180 // Whether a particular level/face is cleared.
182 bool IsLevelCleared(GLenum target, GLint level); 181 bool IsLevelCleared(GLenum target, GLint level);
183 182
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 // The default textures for each target (texture name = 0) 534 // The default textures for each target (texture name = 0)
536 TextureInfo::Ref default_textures_[kNumDefaultTextures]; 535 TextureInfo::Ref default_textures_[kNumDefaultTextures];
537 536
538 DISALLOW_COPY_AND_ASSIGN(TextureManager); 537 DISALLOW_COPY_AND_ASSIGN(TextureManager);
539 }; 538 };
540 539
541 } // namespace gles2 540 } // namespace gles2
542 } // namespace gpu 541 } // namespace gpu
543 542
544 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 543 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698