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

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

Issue 2693653002: cmaa, gpu: use R8 image texture when GL_NV_image_formats is available. (Closed)
Patch Set: RestoreActiveTexture after initialization Created 3 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/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
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") &&
916 extensions.Contains("GL_ARB_texture_gather") && 917 extensions.Contains("GL_ARB_texture_gather") &&
917 extensions.Contains("GL_ARB_explicit_uniform_location") && 918 extensions.Contains("GL_ARB_explicit_uniform_location") &&
918 extensions.Contains("GL_ARB_explicit_attrib_location") && 919 extensions.Contains("GL_ARB_explicit_attrib_location") &&
919 extensions.Contains("GL_ARB_shader_image_load_store")))) { 920 extensions.Contains("GL_ARB_shader_image_load_store")))) {
920 feature_flags_.chromium_screen_space_antialiasing = true; 921 feature_flags_.chromium_screen_space_antialiasing = true;
921 feature_flags_.use_chromium_screen_space_antialiasing_via_shaders = true; 922 feature_flags_.use_chromium_screen_space_antialiasing_via_shaders = true;
922 AddExtensionString("GL_CHROMIUM_screen_space_antialiasing"); 923 AddExtensionString("GL_CHROMIUM_screen_space_antialiasing");
923 } 924 }
924 925
925 if (extensions.Contains("GL_OES_depth24") || gl::HasDesktopGLFeatures() || 926 if (extensions.Contains("GL_OES_depth24") || gl::HasDesktopGLFeatures() ||
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 if (pos == std::string::npos) { 1680 if (pos == std::string::npos) {
1680 extensions_ += (extensions_.empty() ? "" : " ") + str; 1681 extensions_ += (extensions_.empty() ? "" : " ") + str;
1681 } 1682 }
1682 } 1683 }
1683 1684
1684 FeatureInfo::~FeatureInfo() { 1685 FeatureInfo::~FeatureInfo() {
1685 } 1686 }
1686 1687
1687 } // namespace gles2 1688 } // namespace gles2
1688 } // namespace gpu 1689 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698