| 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..0bb228ddacc02c91a7b4523ecaefa654ff8d67f1 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 gl_workarounds;
|
| + if (workarounds_.clear_to_zero_or_one_broken) {
|
| + gl_workarounds.clear_to_zero_or_one_broken = true;
|
| + }
|
| + gl::GLContext::SetGLWorkarounds(gl_workarounds);
|
| +
|
| // Check if we should support GL_OES_packed_depth_stencil and/or
|
| // GL_GOOGLE_depth_texture / GL_CHROMIUM_depth_texture.
|
| //
|
|
|