| 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 d6c513ec186ac4fa6986d0531ebcf0ccd48b3917..82b16de6922f81f21745537dcada06e63b44af01 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| @@ -15,6 +15,7 @@
|
| #include "base/atomicops.h"
|
| #include "base/at_exit.h"
|
| #include "base/callback.h"
|
| +#include "base/logging.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "build/build_config.h"
|
| @@ -40,6 +41,13 @@
|
| #include "ui/gfx/gl/gl_implementation.h"
|
| #include "ui/gfx/gl/gl_surface.h"
|
|
|
| +#if defined(USE_X11)
|
| +#include "ui/base/x/x11_util_internal.h"
|
| +#define CHECK_X_ERROR() ui::CheckForReportedX11Error()
|
| +#else // USE_X11
|
| +#define CHECK_X_ERROR() void(0)
|
| +#endif // USE_X11
|
| +
|
| #if !defined(GL_DEPTH24_STENCIL8)
|
| #define GL_DEPTH24_STENCIL8 0x88F0
|
| #endif
|
| @@ -1732,6 +1740,8 @@ bool GLES2DecoderImpl::Initialize(
|
| // Take ownership of the GLContext.
|
| context_ = context;
|
|
|
| + CHECK_X_ERROR();
|
| +
|
| if (!MakeCurrent()) {
|
| LOG(ERROR) << "GLES2DecoderImpl::Initialize failed because "
|
| << "MakeCurrent failed.";
|
| @@ -1746,6 +1756,7 @@ bool GLES2DecoderImpl::Initialize(
|
| return false;
|
| }
|
|
|
| + CHECK_X_ERROR();
|
| CHECK_GL_ERROR();
|
| disallowed_features_ = disallowed_features;
|
|
|
|
|