Chromium Code Reviews| 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 8a114b4fe05ffa443364cd19e0957ca2d92673fc..e1444caa4b077a565a265b1c557932f9f60c6759 100644 |
| --- a/gpu/command_buffer/service/feature_info.cc |
| +++ b/gpu/command_buffer/service/feature_info.cc |
| @@ -17,6 +17,7 @@ |
| #include "gpu/command_buffer/service/texture_definition.h" |
| #include "gpu/config/gpu_switches.h" |
| #include "ui/gl/gl_bindings.h" |
| +#include "ui/gl/gl_context.h" |
| #include "ui/gl/gl_fence.h" |
| #include "ui/gl/gl_implementation.h" |
| #include "ui/gl/gl_switches.h" |
| @@ -557,6 +558,13 @@ void FeatureInfo::InitializeFeatures() { |
| GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT); |
| } |
| + // Pass some workarounds to ui/gl so that we can apply it in gl api. |
| + gl::GLWorkarounds glWorkarounds; |
|
Zhenyao Mo
2017/06/20 21:34:17
gl_workarounds
jiajia.qin
2017/06/21 02:47:22
Done.
|
| + if (workarounds_.clear_to_boundary_values_is_broken) { |
| + glWorkarounds.clearToBoundaryValuesIsBroken = true; |
| + } |
| + gl::SetGLWorkarounds(glWorkarounds); |
| + |
| // Check if we should support GL_OES_packed_depth_stencil and/or |
| // GL_GOOGLE_depth_texture / GL_CHROMIUM_depth_texture. |
| // |