Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Unified Diff: services/js/modules/gl/context.cc

Issue 1258733003: Expose glResizeCHROMIUM() and remove some uses of MojoGLES2GetGLES2Interface(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: review comments Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/js/modules/gl/BUILD.gn ('k') | shell/native_application_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « services/js/modules/gl/BUILD.gn ('k') | shell/native_application_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698