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

Unified Diff: shell/native_application_support.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/context.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/native_application_support.cc
diff --git a/shell/native_application_support.cc b/shell/native_application_support.cc
index f82b4ef09b4a54a8c6723c38d3016b4c304d9a16..67827242d86c598966d4d108bd804b451f745a43 100644
--- a/shell/native_application_support.cc
+++ b/shell/native_application_support.cc
@@ -8,6 +8,7 @@
#include "base/files/file_util.h"
#include "base/logging.h"
#include "mojo/public/platform/native/gles2_impl_chromium_miscellaneous_thunks.h"
+#include "mojo/public/platform/native/gles2_impl_chromium_resize_thunks.h"
#include "mojo/public/platform/native/gles2_impl_chromium_sub_image_thunks.h"
#include "mojo/public/platform/native/gles2_impl_chromium_sync_point_thunks.h"
#include "mojo/public/platform/native/gles2_impl_chromium_texture_mailbox_thunks.h"
@@ -84,16 +85,19 @@ bool RunNativeApplication(
// If the application is using GLES2 extension points, register those
// thunks. Applications may use or not use any of these, so don't warn if
// they are missing.
+ SetThunks(MojoMakeGLES2ImplOcclusionQueryExtThunks,
+ "MojoSetGLES2ImplOcclusionQueryExtThunks", app_library);
+ // "Chromium" extensions:
SetThunks(MojoMakeGLES2ImplChromiumMiscellaneousThunks,
"MojoSetGLES2ImplChromiumMiscellaneousThunks", app_library);
+ SetThunks(MojoMakeGLES2ImplChromiumResizeThunks,
+ "MojoSetGLES2ImplChromiumResizeThunks", app_library);
SetThunks(MojoMakeGLES2ImplChromiumSubImageThunks,
"MojoSetGLES2ImplChromiumSubImageThunks", app_library);
- SetThunks(MojoMakeGLES2ImplChromiumTextureMailboxThunks,
- "MojoSetGLES2ImplChromiumTextureMailboxThunks", app_library);
SetThunks(MojoMakeGLES2ImplChromiumSyncPointThunks,
"MojoSetGLES2ImplChromiumSyncPointThunks", app_library);
- SetThunks(MojoMakeGLES2ImplOcclusionQueryExtThunks,
- "MojoSetGLES2ImplOcclusionQueryExtThunks", app_library);
+ SetThunks(MojoMakeGLES2ImplChromiumTextureMailboxThunks,
+ "MojoSetGLES2ImplChromiumTextureMailboxThunks", app_library);
}
// Unlike system thunks, we don't warn on a lack of GLES2 thunks because
// not everything is a visual app.
« no previous file with comments | « services/js/modules/gl/context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698