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

Unified Diff: mojo/gpu/mojo_context_support.cc

Issue 1310003004: Convert surfaces/service and dependents to MGL (Closed) Base URL: git@github.com:domokit/mojo.git@mgl_signal_sync_point
Patch Set: Created 5 years, 4 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 | « mojo/gpu/mojo_context_support.h ('k') | mojo/gpu/mojo_gles2_impl_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gpu/mojo_context_support.cc
diff --git a/mojo/gpu/mojo_context_support.cc b/mojo/gpu/mojo_context_support.cc
index 40e2df860f1ac07ea0fd6f0ad5aaa28c91f98c26..948db90b44749e0120c884547455278d1a7f4219 100644
--- a/mojo/gpu/mojo_context_support.cc
+++ b/mojo/gpu/mojo_context_support.cc
@@ -6,6 +6,7 @@
#include "base/callback.h"
#include "base/logging.h"
+#include "mojo/public/c/gpu/MGL/mgl_onscreen.h"
#include "mojo/public/c/gpu/MGL/mgl_signal_sync_point.h"
namespace mojo {
@@ -18,9 +19,8 @@ void RunAndDeleteCallback(void* context) {
}
}
-MojoContextSupport::MojoContextSupport(MojoGLES2Context context)
- : context_(context) {
-}
+MojoContextSupport::MojoContextSupport(MGLContext context)
+ : context_(context) {}
MojoContextSupport::~MojoContextSupport() {
}
@@ -41,8 +41,8 @@ void MojoContextSupport::SetSurfaceVisible(bool visible) {
}
void MojoContextSupport::Swap() {
- MojoGLES2MakeCurrent(context_);
- MojoGLES2SwapBuffers();
+ MGLMakeCurrent(context_);
+ MGLSwapBuffers();
}
void MojoContextSupport::PartialSwapBuffers(const gfx::Rect& sub_buffer) {
« no previous file with comments | « mojo/gpu/mojo_context_support.h ('k') | mojo/gpu/mojo_gles2_impl_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698