| 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 4a8a74d80ba7a0a4f8a7395c5aed74bf1a0bbe3f..1c0e8a185c34e1a169ba4f2595e29720af8274ec 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| @@ -86,6 +86,7 @@
|
| #include "ui/gl/gl_implementation.h"
|
| #include "ui/gl/gl_surface.h"
|
| #include "ui/gl/gl_version_info.h"
|
| +#include "ui/gl/gl_workarounds.h"
|
| #include "ui/gl/gpu_timing.h"
|
|
|
| #if defined(OS_MACOSX)
|
| @@ -3186,6 +3187,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.
|
|
|