| Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| index cd880c994926b25e55b77380d6e3a0ec3be8b44a..e13e92c9ffe1f98cc90e28ecb3851cc1e8240064 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| @@ -3183,6 +3183,13 @@ bool GLES2DecoderImpl::Initialize(
|
| // Create GPU Tracer for timing values.
|
| gpu_tracer_.reset(new GPUTracer(this));
|
|
|
| + // Pass some workarounds to GLContext so that we can apply them in RealGLApi.
|
| + gl::GLWorkarounds gl_workarounds;
|
| + if (workarounds().clear_to_zero_or_one_broken) {
|
| + gl_workarounds.clear_to_zero_or_one_broken = true;
|
| + }
|
| + GetGLContext()->SetGLWorkarounds(gl_workarounds);
|
| +
|
| if (workarounds().disable_timestamp_queries) {
|
| // Forcing time elapsed query for any GPU Timing Client forces it for all
|
| // clients in the context.
|
|
|