diff options
Diffstat (limited to 'gpu/command_buffer/service/texture_manager.h')
-rw-r--r-- | gpu/command_buffer/service/texture_manager.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/gpu/command_buffer/service/texture_manager.h b/gpu/command_buffer/service/texture_manager.h index 182e0d1..7e07422 100644 --- a/gpu/command_buffer/service/texture_manager.h +++ b/gpu/command_buffer/service/texture_manager.h @@ -8,7 +8,6 @@ #include <map> #include <vector> #include "base/basictypes.h" -#include "base/logging.h" #include "base/ref_counted.h" #include "gpu/command_buffer/service/gl_utils.h" @@ -167,15 +166,7 @@ class TextureManager { // Parameters: // target: GL_TEXTURE_2D or GL_TEXTURE_CUBE_MAP // max_levels: The maximum levels this type of target can have. - void SetTarget(GLenum target, GLint max_levels) { - DCHECK_EQ(0u, target_); // you can only set this once. - target_ = target; - size_t num_faces = (target == GL_TEXTURE_2D) ? 1 : 6; - level_infos_.resize(num_faces); - for (size_t ii = 0; ii < num_faces; ++ii) { - level_infos_[ii].resize(max_levels); - } - } + void SetTarget(GLenum target, GLint max_levels); // Update info about this texture. void Update(const FeatureInfo* feature_info); @@ -244,10 +235,7 @@ class TextureManager { // Parameters: // target: GL_TEXTURE_2D or GL_TEXTURE_CUBE_MAP // max_levels: The maximum levels this type of target can have. - void SetInfoTarget(TextureInfo* info, GLenum target) { - DCHECK(info); - info->SetTarget(target, MaxLevelsForTarget(target)); - } + void SetInfoTarget(TextureInfo* info, GLenum target); // Set the info for a particular level in a TexureInfo. void SetLevelInfo( @@ -332,4 +320,3 @@ class TextureManager { } // namespace gpu #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ - |