| OLD | NEW |
| 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 <limits.h> | 7 #include <limits.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| (...skipping 3788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3799 if (workarounds().add_and_true_to_loop_condition) | 3799 if (workarounds().add_and_true_to_loop_condition) |
| 3800 driver_bug_workarounds |= SH_ADD_AND_TRUE_TO_LOOP_CONDITION; | 3800 driver_bug_workarounds |= SH_ADD_AND_TRUE_TO_LOOP_CONDITION; |
| 3801 if (workarounds().rewrite_do_while_loops) | 3801 if (workarounds().rewrite_do_while_loops) |
| 3802 driver_bug_workarounds |= SH_REWRITE_DO_WHILE_LOOPS; | 3802 driver_bug_workarounds |= SH_REWRITE_DO_WHILE_LOOPS; |
| 3803 if (workarounds().emulate_isnan_on_float) | 3803 if (workarounds().emulate_isnan_on_float) |
| 3804 driver_bug_workarounds |= SH_EMULATE_ISNAN_FLOAT_FUNCTION; | 3804 driver_bug_workarounds |= SH_EMULATE_ISNAN_FLOAT_FUNCTION; |
| 3805 if (workarounds().use_unused_standard_shared_blocks) | 3805 if (workarounds().use_unused_standard_shared_blocks) |
| 3806 driver_bug_workarounds |= SH_USE_UNUSED_STANDARD_SHARED_BLOCKS; | 3806 driver_bug_workarounds |= SH_USE_UNUSED_STANDARD_SHARED_BLOCKS; |
| 3807 if (workarounds().dont_remove_invariant_for_fragment_input) | 3807 if (workarounds().dont_remove_invariant_for_fragment_input) |
| 3808 driver_bug_workarounds |= SH_DONT_REMOVE_INVARIANT_FOR_FRAGMENT_INPUT; | 3808 driver_bug_workarounds |= SH_DONT_REMOVE_INVARIANT_FOR_FRAGMENT_INPUT; |
| 3809 if (workarounds().remove_invariant_and_centroid_for_essl3) |
| 3810 driver_bug_workarounds |= SH_REMOVE_INVARIANT_AND_CENTROID_FOR_ESSL3; |
| 3809 | 3811 |
| 3810 resources.WEBGL_debug_shader_precision = | 3812 resources.WEBGL_debug_shader_precision = |
| 3811 group_->gpu_preferences().emulate_shader_precision; | 3813 group_->gpu_preferences().emulate_shader_precision; |
| 3812 | 3814 |
| 3813 ShShaderOutput shader_output_language = | 3815 ShShaderOutput shader_output_language = |
| 3814 ShaderTranslator::GetShaderOutputLanguageForContext(gl_version_info()); | 3816 ShaderTranslator::GetShaderOutputLanguageForContext(gl_version_info()); |
| 3815 | 3817 |
| 3816 vertex_translator_ = shader_translator_cache()->GetTranslator( | 3818 vertex_translator_ = shader_translator_cache()->GetTranslator( |
| 3817 GL_VERTEX_SHADER, shader_spec, &resources, shader_output_language, | 3819 GL_VERTEX_SHADER, shader_spec, &resources, shader_output_language, |
| 3818 driver_bug_workarounds); | 3820 driver_bug_workarounds); |
| (...skipping 14982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18801 } | 18803 } |
| 18802 | 18804 |
| 18803 // Include the auto-generated part of this file. We split this because it means | 18805 // Include the auto-generated part of this file. We split this because it means |
| 18804 // we can easily edit the non-auto generated parts right here in this file | 18806 // we can easily edit the non-auto generated parts right here in this file |
| 18805 // instead of having to edit some template or the code generator. | 18807 // instead of having to edit some template or the code generator. |
| 18806 #include "base/macros.h" | 18808 #include "base/macros.h" |
| 18807 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 18809 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 18808 | 18810 |
| 18809 } // namespace gles2 | 18811 } // namespace gles2 |
| 18810 } // namespace gpu | 18812 } // namespace gpu |
| OLD | NEW |