OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |