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

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

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
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 13b10c5ee8346f9d4d0f3130813261a37f61549a..f37c61a4808d9832879583c2321d05c2fdac9602 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -17,13 +17,13 @@
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/command_line.h"
-#include "base/debug/trace_event.h"
-#include "base/debug/trace_event_synthetic_delay.h"
#include "base/float_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/numerics/safe_math.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
+#include "base/trace_event/trace_event.h"
+#include "base/trace_event/trace_event_synthetic_delay.h"
#include "build/build_config.h"
#define GLES2_GPU_SERVICE 1
#include "gpu/command_buffer/common/debug_marker_manager.h"
@@ -1178,6 +1178,11 @@ class GLES2DecoderImpl : public GLES2Decoder,
void DoShaderSource(
GLuint client_id, GLsizei count, const char** data, const GLint* length);
+ // Wrapper for glTransformFeedbackVaryings.
+ 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();
@@ -7057,6 +7062,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");
« no previous file with comments | « gpu/command_buffer/service/framebuffer_manager_unittest.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698