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

Unified Diff: gpu/command_buffer/service/feature_info.cc

Issue 1298523003: Add GL_CHROMIUM_screen_space_antialiasing to support alternative AA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index b3c5be635f8d86666d862165c9912a4e70f08ff6..1505e8c9fd5dc535c42c5f07d4c974b104a89d50 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -130,6 +130,7 @@ FeatureInfo::FeatureFlags::FeatureFlags()
use_core_framebuffer_multisample(false),
multisampled_render_to_texture(false),
use_img_for_multisampled_render_to_texture(false),
+ chromium_screen_space_antialiasing(false),
oes_standard_derivatives(false),
oes_egl_image_external(false),
oes_depth24(false),
@@ -733,6 +734,11 @@ void FeatureInfo::InitializeFeatures() {
}
}
+ if (extensions.Contains("GL_INTEL_framebuffer_CMAA")) {
+ feature_flags_.chromium_screen_space_antialiasing = true;
+ AddExtensionString("GL_CHROMIUM_screen_space_antialiasing");
+ }
+
if (extensions.Contains("GL_OES_depth24") || gfx::HasDesktopGLFeatures() ||
gl_version_info_->is_es3) {
AddExtensionString("GL_OES_depth24");
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698