Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 566019: Implements glGetUniformiv and glGetUniformfv. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/common/gles2_cmd_format.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_implementation.cc
===================================================================
--- gpu/command_buffer/client/gles2_implementation.cc (revision 37873)
+++ gpu/command_buffer/client/gles2_implementation.cc (working copy)
@@ -291,7 +291,6 @@
}
}
-
GLenum GLES2Implementation::CheckFramebufferStatus(GLenum target) {
// TODO(gman): implement.
return 0;
@@ -341,12 +340,18 @@
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(
« no previous file with comments | « no previous file | gpu/command_buffer/common/gles2_cmd_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698