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

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

Issue 634313002: Add mouse input forwarding to gpu service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kbr@, jdduke@ review Created 6 years, 1 month 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
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 6dd1f34f1ee8c63a508a52bf0613977ca0279e96..b67ca2f7807b0d12db0cee62211d860bac4f2ac4 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -145,7 +145,8 @@ FeatureInfo::FeatureFlags::FeatureFlags()
ext_texture_storage(false),
chromium_path_rendering(false),
blend_equation_advanced(false),
- blend_equation_advanced_coherent(false) {
+ blend_equation_advanced_coherent(false),
+ enable_subscribe_uniform(false) {
}
FeatureInfo::Workarounds::Workarounds() :
@@ -179,6 +180,9 @@ void FeatureInfo::InitializeBasicState(const CommandLine& command_line) {
feature_flags_.is_swiftshader =
(command_line.GetSwitchValueASCII(switches::kUseGL) == "swiftshader");
+ feature_flags_.enable_subscribe_uniform =
+ command_line.HasSwitch(switches::kEnableSubscribeUniformExtension);
+
static const GLenum kAlphaTypes[] = {
GL_UNSIGNED_BYTE,
};
@@ -261,6 +265,10 @@ void FeatureInfo::InitializeFeatures() {
AddExtensionString("GL_CHROMIUM_texture_mailbox");
AddExtensionString("GL_EXT_debug_marker");
+ if (feature_flags_.enable_subscribe_uniform) {
+ AddExtensionString("GL_CHROMIUM_subscribe_uniform");
+ }
+
// OES_vertex_array_object is emulated if not present natively,
// so the extension string is always exposed.
AddExtensionString("GL_OES_vertex_array_object");

Powered by Google App Engine
This is Rietveld 408576698