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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 872713004: Add glTransformFeedbackVaryings to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@caritas
Patch Set: Created 5 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
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 5fb0fa8fc097f03deb0987b88f4020d69e2e8904..556ed331e398593c7908f7ca366f0a2bc396579f 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -1174,6 +1174,11 @@ class GLES2DecoderImpl : public GLES2Decoder,
void DoShaderSource(
GLuint client_id, GLsizei count, const char** data, const GLint* length);
+ // Wrapper for glShaderSource.
Ken Russell (switch to Gerrit) 2015/01/24 03:15:36 Comment needs to be updated.
Zhenyao Mo 2015/01/26 23:24:53 Done.
+ void DoTransformFeedbackVaryings(
+ GLuint client_program_id, GLsizei count, const char* const* varyings,
+ GLenum buffer_mode);
+
// Clear any textures used by the current program.
bool ClearUnclearedTextures();
@@ -7053,6 +7058,18 @@ void GLES2DecoderImpl::DoShaderSource(
shader->set_source(str);
}
+void GLES2DecoderImpl::DoTransformFeedbackVaryings(
+ GLuint client_program_id, GLsizei count, const char* const* varyings,
+ GLenum buffer_mode) {
+ Program* program = GetProgramInfoNotShader(
+ client_program_id, "glTransformFeedbackVaryings");
+ if (!program) {
+ return;
+ }
+ glTransformFeedbackVaryings(
+ program->service_id(), count, varyings, buffer_mode);
+}
+
void GLES2DecoderImpl::DoCompileShader(GLuint client_id) {
TRACE_EVENT0("gpu", "GLES2DecoderImpl::DoCompileShader");
Shader* shader = GetShaderInfoNotProgram(client_id, "glCompileShader");

Powered by Google App Engine
This is Rietveld 408576698