summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/texture_manager.h
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-19 01:57:56 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-19 01:57:56 +0000
commit57f2238364b33696c4ee2d294c51cc317edf0ec0 (patch)
tree31a2d0b9d23bdb5d29065cb520eb09171c6f4da7 /gpu/command_buffer/service/texture_manager.h
parentaee541ebc97e1ff2c8bb43e4375913f582931d40 (diff)
downloadchromium_src-57f2238364b33696c4ee2d294c51cc317edf0ec0.zip
chromium_src-57f2238364b33696c4ee2d294c51cc317edf0ec0.tar.gz
chromium_src-57f2238364b33696c4ee2d294c51cc317edf0ec0.tar.bz2
Made glReadPixels handle out of range areas.
TEST=unit tests BUG=none Review URL: http://codereview.chromium.org/1081006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42065 0039d316-1c4b-4281-b951-d872f2087c98
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);