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

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

Issue 146243006: Merge r249547 into M33: Add a gpu driver bug workaround to count in all varyings in packing check. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder_unittest_1.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5424 matching lines...) Expand 10 before | Expand all | Expand 10 after
5435 LogClientServiceForInfo(program, program_id, "glLinkProgram"); 5435 LogClientServiceForInfo(program, program_id, "glLinkProgram");
5436 ShaderTranslator* vertex_translator = NULL; 5436 ShaderTranslator* vertex_translator = NULL;
5437 ShaderTranslator* fragment_translator = NULL; 5437 ShaderTranslator* fragment_translator = NULL;
5438 if (use_shader_translator_) { 5438 if (use_shader_translator_) {
5439 vertex_translator = vertex_translator_.get(); 5439 vertex_translator = vertex_translator_.get();
5440 fragment_translator = fragment_translator_.get(); 5440 fragment_translator = fragment_translator_.get();
5441 } 5441 }
5442 if (program->Link(shader_manager(), 5442 if (program->Link(shader_manager(),
5443 vertex_translator, 5443 vertex_translator,
5444 fragment_translator, 5444 fragment_translator,
5445 workarounds().count_all_in_varyings_packing ?
5446 Program::kCountAll : Program::kCountOnlyStaticallyUsed,
5445 shader_cache_callback_)) { 5447 shader_cache_callback_)) {
5446 if (program == state_.current_program.get()) { 5448 if (program == state_.current_program.get()) {
5447 if (workarounds().use_current_program_after_successful_link) 5449 if (workarounds().use_current_program_after_successful_link)
5448 glUseProgram(program->service_id()); 5450 glUseProgram(program->service_id());
5449 if (workarounds().clear_uniforms_before_first_program_use) 5451 if (workarounds().clear_uniforms_before_first_program_use)
5450 program_manager()->ClearUniforms(program); 5452 program_manager()->ClearUniforms(program);
5451 } 5453 }
5452 } 5454 }
5453 }; 5455 };
5454 5456
(...skipping 5199 matching lines...) Expand 10 before | Expand all | Expand 10 after
10654 DoDidUseTexImageIfNeeded(texture, texture->target()); 10656 DoDidUseTexImageIfNeeded(texture, texture->target());
10655 } 10657 }
10656 10658
10657 // Include the auto-generated part of this file. We split this because it means 10659 // Include the auto-generated part of this file. We split this because it means
10658 // we can easily edit the non-auto generated parts right here in this file 10660 // we can easily edit the non-auto generated parts right here in this file
10659 // instead of having to edit some template or the code generator. 10661 // instead of having to edit some template or the code generator.
10660 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 10662 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
10661 10663
10662 } // namespace gles2 10664 } // namespace gles2
10663 } // namespace gpu 10665 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder_unittest_1.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698