summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/texture_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/service/texture_manager.h')
-rw-r--r--gpu/command_buffer/service/texture_manager.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/gpu/command_buffer/service/texture_manager.h b/gpu/command_buffer/service/texture_manager.h
index 7a3065e..33cd54a 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -272,9 +272,7 @@ class GPU_EXPORT Texture {
FaceInfo();
~FaceInfo();
- // This is relative to base_level and max_level of a texture.
GLsizei num_mip_levels;
- // This contains slots for all levels starting at 0.
std::vector<LevelInfo> level_infos;
};
@@ -364,11 +362,10 @@ class GPU_EXPORT Texture {
GLenum format,
GLenum type);
- // Returns true if texture mip level is complete relative to base level.
- // Note that level_diff = level - base_level.
- static bool TextureMipComplete(const Texture::LevelInfo& base_level_face,
+ // Returns true if texture mip level is complete relative to first level.
+ static bool TextureMipComplete(const Texture::LevelInfo& level0_face,
GLenum target,
- GLint level_diff,
+ GLint level,
GLenum internal_format,
GLsizei width,
GLsizei height,
@@ -421,10 +418,6 @@ class GPU_EXPORT Texture {
// referencing this texture.
void IncAllFramebufferStateChangeCount();
- void UpdateBaseLevel(GLint base_level);
- void UpdateMaxLevel(GLint max_level);
- void UpdateNumMipLevels();
-
MailboxManager* mailbox_manager_;
// Info about each face and level of texture.