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 c10286cd48de3bbb8acfe9e3d06b97d9210c8e56..bf2b59abd3ca98c99e1134f7ec6593b9ce18d5e9 100644 |
--- a/gpu/command_buffer/service/feature_info.cc |
+++ b/gpu/command_buffer/service/feature_info.cc |
@@ -116,7 +116,8 @@ FeatureInfo::FeatureFlags::FeatureFlags() |
enable_shader_name_hashing(false), |
enable_samplers(false), |
ext_draw_buffers(false), |
- ext_frag_depth(false) { |
+ ext_frag_depth(false), |
+ use_async_readpixels(false) { |
} |
FeatureInfo::Workarounds::Workarounds() : |
@@ -622,6 +623,16 @@ void FeatureInfo::AddFeatures(const CommandLine& command_line) { |
feature_flags_.ext_frag_depth = true; |
} |
+ bool ui_gl_fence_works = |
+ extensions.Contains("GL_NV_fence") || |
+ extensions.Contains("GL_ARB_sync"); |
+ |
+ if (ui_gl_fence_works && |
+ extensions.Contains("GL_ARB_pixel_buffer_object") && |
+ !command_line.HasSwitch(switches::kForceSynchronousGLReadPixels)) { |
piman
2013/06/17 19:55:06
nit: fold the command line option into the kGpuDri
hubbe
2013/06/25 20:02:51
Entry added, not sure exactly how it's supposed to
|
+ feature_flags_.use_async_readpixels = true; |
+ } |
+ |
if (!disallowed_features_.swap_buffer_complete_callback) |
AddExtensionString("GL_CHROMIUM_swapbuffers_complete_callback"); |