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

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

Issue 998423005: Updated shader program caching to account for transform feedback varyings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed zmo@'s feedback 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 5240 matching lines...) Expand 10 before | Expand all | Expand 10 after
12369 } 12370 }
12370 } 12371 }
12371 12372
12372 // Include the auto-generated part of this file. We split this because it means 12373 // Include the auto-generated part of this file. We split this because it means
12373 // we can easily edit the non-auto generated parts right here in this file 12374 // we can easily edit the non-auto generated parts right here in this file
12374 // instead of having to edit some template or the code generator. 12375 // instead of having to edit some template or the code generator.
12375 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 12376 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
12376 12377
12377 } // namespace gles2 12378 } // namespace gles2
12378 } // namespace gpu 12379 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/memory_program_cache.h » ('j') | gpu/command_buffer/service/program_cache.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698