Index: services/js/modules/gl/context.cc |
diff --git a/services/js/modules/gl/context.cc b/services/js/modules/gl/context.cc |
index 00f8b3cee01f38f91900690ae1bdd51a0261d00e..1e265336bb5afcad5e50976bea7aff07510c70dd 100644 |
--- a/services/js/modules/gl/context.cc |
+++ b/services/js/modules/gl/context.cc |
@@ -2,17 +2,21 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#ifndef GL_GLEXT_PROTOTYPES |
+#define GL_GLEXT_PROTOTYPES |
+#endif |
+ |
#include "services/js/modules/gl/context.h" |
#include <GLES2/gl2.h> |
#include <GLES2/gl2ext.h> |
+#include <GLES2/gl2extchromium.h> |
#include "base/bind.h" |
#include "gin/arguments.h" |
#include "gin/array_buffer.h" |
#include "gin/object_template_builder.h" |
#include "gin/per_context_data.h" |
-#include "gpu/command_buffer/client/gles2_interface.h" |
#include "mojo/public/c/gles2/gles2.h" |
#include "mojo/public/cpp/environment/environment.h" |
#include "mojo/public/cpp/environment/logging.h" |
@@ -185,10 +189,7 @@ Context::~Context() { |
} |
void Context::Resize(GLuint width, GLuint height, GLfloat scale_factor) { |
- static_cast<gpu::gles2::GLES2Interface*>( |
- MojoGLES2GetGLES2Interface(context_))->ResizeCHROMIUM(width, |
- height, |
- scale_factor); |
+ glResizeCHROMIUM(width, height, scale_factor); |
} |
void Context::ContextLost() { |