summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/client/gles2_implementation.cc
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-03 01:11:37 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-03 01:11:37 +0000
commitf7b85373bada6dc2da2ca3b47c38fc25d89dcf2e (patch)
treeb14cdb3fd116c4287f2d61cd0f4e75c91cdf13b4 /gpu/command_buffer/client/gles2_implementation.cc
parent50d22375941bee74a33e504c78e4355c878c30b9 (diff)
downloadchromium_src-f7b85373bada6dc2da2ca3b47c38fc25d89dcf2e.zip
chromium_src-f7b85373bada6dc2da2ca3b47c38fc25d89dcf2e.tar.gz
chromium_src-f7b85373bada6dc2da2ca3b47c38fc25d89dcf2e.tar.bz2
Implements glGetUniformiv and glGetUniformfv.
TEST=none BUG=none Review URL: http://codereview.chromium.org/566019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37918 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/client/gles2_implementation.cc')
-rw-r--r--gpu/command_buffer/client/gles2_implementation.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index e0cbb04..8ea20ab 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -291,7 +291,6 @@ void GLES2Implementation::TexSubImage2D(
}
}
-
GLenum GLES2Implementation::CheckFramebufferStatus(GLenum target) {
// TODO(gman): implement.
return 0;
@@ -341,12 +340,18 @@ const GLubyte* GLES2Implementation::GetString(GLenum name) {
void GLES2Implementation::GetUniformfv(
GLuint program, GLint location, GLfloat* params) {
- // TODO(gman): implement.
+ helper_->GetUniformfv(
+ program, location, result_shm_id(), result_shm_offset());
+ WaitForCmd();
+ CopyResult(params);
}
void GLES2Implementation::GetUniformiv(
GLuint program, GLint location, GLint* params) {
- // TODO(gman): implement.
+ helper_->GetUniformiv(
+ program, location, result_shm_id(), result_shm_offset());
+ WaitForCmd();
+ CopyResult(params);
}
void GLES2Implementation::ReadPixels(