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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 7098 matching lines...) Expand 10 before | Expand all | Expand 10 after
7109 } 7109 }
7110 7110
7111 void GLES2DecoderImpl::DoTransformFeedbackVaryings( 7111 void GLES2DecoderImpl::DoTransformFeedbackVaryings(
7112 GLuint client_program_id, GLsizei count, const char* const* varyings, 7112 GLuint client_program_id, GLsizei count, const char* const* varyings,
7113 GLenum buffer_mode) { 7113 GLenum buffer_mode) {
7114 Program* program = GetProgramInfoNotShader( 7114 Program* program = GetProgramInfoNotShader(
7115 client_program_id, "glTransformFeedbackVaryings"); 7115 client_program_id, "glTransformFeedbackVaryings");
7116 if (!program) { 7116 if (!program) {
7117 return; 7117 return;
7118 } 7118 }
7119 program->TransformFeedbackVaryings(count, varyings, buffer_mode);
7119 glTransformFeedbackVaryings( 7120 glTransformFeedbackVaryings(
7120 program->service_id(), count, varyings, buffer_mode); 7121 program->service_id(), count, varyings, buffer_mode);
7121 } 7122 }
7122 7123
7123 void GLES2DecoderImpl::DoCompileShader(GLuint client_id) { 7124 void GLES2DecoderImpl::DoCompileShader(GLuint client_id) {
7124 TRACE_EVENT0("gpu", "GLES2DecoderImpl::DoCompileShader"); 7125 TRACE_EVENT0("gpu", "GLES2DecoderImpl::DoCompileShader");
7125 Shader* shader = GetShaderInfoNotProgram(client_id, "glCompileShader"); 7126 Shader* shader = GetShaderInfoNotProgram(client_id, "glCompileShader");
7126 if (!shader) { 7127 if (!shader) {
7127 return; 7128 return;
7128 } 7129 }
(...skipping 5288 matching lines...) Expand 10 before | Expand all | Expand 10 after
12417 } 12418 }
12418 } 12419 }
12419 12420
12420 // Include the auto-generated part of this file. We split this because it means 12421 // Include the auto-generated part of this file. We split this because it means
12421 // we can easily edit the non-auto generated parts right here in this file 12422 // we can easily edit the non-auto generated parts right here in this file
12422 // instead of having to edit some template or the code generator. 12423 // instead of having to edit some template or the code generator.
12423 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 12424 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
12424 12425
12425 } // namespace gles2 12426 } // namespace gles2
12426 } // namespace gpu 12427 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gl_context_virtual.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698