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 4257b1f83ead98b28024719696fabdbd60eb24a2..40c370131722b9900bff2de000cabf68790af1ba 100644 |
--- a/gpu/command_buffer/service/feature_info.cc |
+++ b/gpu/command_buffer/service/feature_info.cc |
@@ -127,7 +127,8 @@ FeatureInfo::FeatureFlags::FeatureFlags() |
map_buffer_range(false), |
ext_discard_framebuffer(false), |
angle_depth_texture(false), |
- is_angle(false) { |
+ is_angle(false), |
+ is_swiftshader(false) { |
} |
FeatureInfo::Workarounds::Workarounds() : |
@@ -155,6 +156,9 @@ void FeatureInfo::InitializeBasicState(const CommandLine& command_line) { |
feature_flags_.enable_shader_name_hashing = |
!command_line.HasSwitch(switches::kDisableShaderNameHashing); |
+ feature_flags_.is_swiftshader = |
+ (command_line.GetSwitchValueASCII(switches::kUseGL) == "swiftshader"); |
+ |
static const GLenum kAlphaTypes[] = { |
GL_UNSIGNED_BYTE, |
}; |