| 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 3816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3827 if (workarounds().rewrite_do_while_loops) | 3827 if (workarounds().rewrite_do_while_loops) |
| 3828 driver_bug_workarounds |= SH_REWRITE_DO_WHILE_LOOPS; | 3828 driver_bug_workarounds |= SH_REWRITE_DO_WHILE_LOOPS; |
| 3829 if (workarounds().emulate_isnan_on_float) | 3829 if (workarounds().emulate_isnan_on_float) |
| 3830 driver_bug_workarounds |= SH_EMULATE_ISNAN_FLOAT_FUNCTION; | 3830 driver_bug_workarounds |= SH_EMULATE_ISNAN_FLOAT_FUNCTION; |
| 3831 if (workarounds().use_unused_standard_shared_blocks) | 3831 if (workarounds().use_unused_standard_shared_blocks) |
| 3832 driver_bug_workarounds |= SH_USE_UNUSED_STANDARD_SHARED_BLOCKS; | 3832 driver_bug_workarounds |= SH_USE_UNUSED_STANDARD_SHARED_BLOCKS; |
| 3833 if (workarounds().dont_remove_invariant_for_fragment_input) | 3833 if (workarounds().dont_remove_invariant_for_fragment_input) |
| 3834 driver_bug_workarounds |= SH_DONT_REMOVE_INVARIANT_FOR_FRAGMENT_INPUT; | 3834 driver_bug_workarounds |= SH_DONT_REMOVE_INVARIANT_FOR_FRAGMENT_INPUT; |
| 3835 if (workarounds().remove_invariant_and_centroid_for_essl3) | 3835 if (workarounds().remove_invariant_and_centroid_for_essl3) |
| 3836 driver_bug_workarounds |= SH_REMOVE_INVARIANT_AND_CENTROID_FOR_ESSL3; | 3836 driver_bug_workarounds |= SH_REMOVE_INVARIANT_AND_CENTROID_FOR_ESSL3; |
| 3837 if (workarounds().rewrite_float_unary_minus_operator) |
| 3838 driver_bug_workarounds |= SH_REWRITE_FLOAT_UNARY_MINUS_OPERATOR; |
| 3837 | 3839 |
| 3838 resources.WEBGL_debug_shader_precision = | 3840 resources.WEBGL_debug_shader_precision = |
| 3839 group_->gpu_preferences().emulate_shader_precision; | 3841 group_->gpu_preferences().emulate_shader_precision; |
| 3840 | 3842 |
| 3841 ShShaderOutput shader_output_language = | 3843 ShShaderOutput shader_output_language = |
| 3842 ShaderTranslator::GetShaderOutputLanguageForContext(gl_version_info()); | 3844 ShaderTranslator::GetShaderOutputLanguageForContext(gl_version_info()); |
| 3843 | 3845 |
| 3844 vertex_translator_ = shader_translator_cache()->GetTranslator( | 3846 vertex_translator_ = shader_translator_cache()->GetTranslator( |
| 3845 GL_VERTEX_SHADER, shader_spec, &resources, shader_output_language, | 3847 GL_VERTEX_SHADER, shader_spec, &resources, shader_output_language, |
| 3846 driver_bug_workarounds); | 3848 driver_bug_workarounds); |
| (...skipping 15093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18940 } | 18942 } |
| 18941 | 18943 |
| 18942 // Include the auto-generated part of this file. We split this because it means | 18944 // Include the auto-generated part of this file. We split this because it means |
| 18943 // we can easily edit the non-auto generated parts right here in this file | 18945 // we can easily edit the non-auto generated parts right here in this file |
| 18944 // instead of having to edit some template or the code generator. | 18946 // instead of having to edit some template or the code generator. |
| 18945 #include "base/macros.h" | 18947 #include "base/macros.h" |
| 18946 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 18948 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 18947 | 18949 |
| 18948 } // namespace gles2 | 18950 } // namespace gles2 |
| 18949 } // namespace gpu | 18951 } // namespace gpu |
| OLD | NEW |