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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/texture_manager.h b/gpu/command_buffer/service/texture_manager.h
index 6407721..358cbbc 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -92,6 +92,11 @@ class TextureManager {
GLenum format,
GLenum type);
+ // Get the width and height for a particular level. Returns false if level
+ // does not exist.
+ bool GetLevelSize(
+ GLint face, GLint level, GLsizei* width, GLsizei* height) const;
+
// Sets a texture parameter.
// TODO(gman): Expand to SetParameteri,f,iv,fv
void SetParameter(GLenum pname, GLint param);