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/feature_info.h" | 5 #include "gpu/command_buffer/service/feature_info.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 validators_.capability.AddValue(GL_SAMPLE_ALPHA_TO_ONE_EXT); | 906 validators_.capability.AddValue(GL_SAMPLE_ALPHA_TO_ONE_EXT); |
907 } | 907 } |
908 | 908 |
909 if (extensions.Contains("GL_INTEL_framebuffer_CMAA")) { | 909 if (extensions.Contains("GL_INTEL_framebuffer_CMAA")) { |
910 feature_flags_.chromium_screen_space_antialiasing = true; | 910 feature_flags_.chromium_screen_space_antialiasing = true; |
911 AddExtensionString("GL_CHROMIUM_screen_space_antialiasing"); | 911 AddExtensionString("GL_CHROMIUM_screen_space_antialiasing"); |
912 } else if (!workarounds_.disable_framebuffer_cmaa && | 912 } else if (!workarounds_.disable_framebuffer_cmaa && |
913 (gl_version_info_->IsAtLeastGLES(3, 1) || | 913 (gl_version_info_->IsAtLeastGLES(3, 1) || |
914 (gl_version_info_->IsAtLeastGL(3, 0) && | 914 (gl_version_info_->IsAtLeastGL(3, 0) && |
915 extensions.Contains("GL_ARB_shading_language_420pack") && | 915 extensions.Contains("GL_ARB_shading_language_420pack") && |
916 extensions.Contains("GL_ARB_texture_storage") && | |
917 extensions.Contains("GL_ARB_texture_gather") && | 916 extensions.Contains("GL_ARB_texture_gather") && |
918 extensions.Contains("GL_ARB_explicit_uniform_location") && | 917 extensions.Contains("GL_ARB_explicit_uniform_location") && |
919 extensions.Contains("GL_ARB_explicit_attrib_location") && | 918 extensions.Contains("GL_ARB_explicit_attrib_location") && |
920 extensions.Contains("GL_ARB_shader_image_load_store")))) { | 919 extensions.Contains("GL_ARB_shader_image_load_store")))) { |
921 feature_flags_.chromium_screen_space_antialiasing = true; | 920 feature_flags_.chromium_screen_space_antialiasing = true; |
922 feature_flags_.use_chromium_screen_space_antialiasing_via_shaders = true; | 921 feature_flags_.use_chromium_screen_space_antialiasing_via_shaders = true; |
923 AddExtensionString("GL_CHROMIUM_screen_space_antialiasing"); | 922 AddExtensionString("GL_CHROMIUM_screen_space_antialiasing"); |
924 } | 923 } |
925 | 924 |
926 if (extensions.Contains("GL_OES_depth24") || gl::HasDesktopGLFeatures() || | 925 if (extensions.Contains("GL_OES_depth24") || gl::HasDesktopGLFeatures() || |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1680 if (pos == std::string::npos) { | 1679 if (pos == std::string::npos) { |
1681 extensions_ += (extensions_.empty() ? "" : " ") + str; | 1680 extensions_ += (extensions_.empty() ? "" : " ") + str; |
1682 } | 1681 } |
1683 } | 1682 } |
1684 | 1683 |
1685 FeatureInfo::~FeatureInfo() { | 1684 FeatureInfo::~FeatureInfo() { |
1686 } | 1685 } |
1687 | 1686 |
1688 } // namespace gles2 | 1687 } // namespace gles2 |
1689 } // namespace gpu | 1688 } // namespace gpu |
OLD | NEW |