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

Unified Diff: mojo/gpu/mojo_context_support.cc

Issue 1534813003: Use C bindings to Mojo GL entry points exclusively. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-6
Patch Set: rebase Created 4 years, 11 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
deleted file mode 100644
index a841746efd58ba631378da563b14b77b61bdc772..0000000000000000000000000000000000000000
--- a/mojo/gpu/mojo_context_support.cc
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mojo/gpu/mojo_context_support.h"
-
-#include <MGL/mgl_onscreen.h>
-#include <MGL/mgl_signal_sync_point.h>
-
-#include "base/callback.h"
-#include "base/logging.h"
-
-namespace mojo {
-namespace {
-
-void RunAndDeleteCallback(void* context) {
- base::Closure* callback = reinterpret_cast<base::Closure*>(context);
- callback->Run();
- delete callback;
-}
-}
-
-MojoContextSupport::MojoContextSupport(MGLContext context)
- : context_(context) {}
-
-MojoContextSupport::~MojoContextSupport() {
-}
-
-void MojoContextSupport::SignalSyncPoint(uint32 sync_point,
- const base::Closure& callback) {
- MGLSignalSyncPoint(sync_point, &RunAndDeleteCallback,
- new base::Closure(callback));
-}
-
-void MojoContextSupport::SignalQuery(uint32 query,
- const base::Closure& callback) {
- NOTIMPLEMENTED();
-}
-
-void MojoContextSupport::SetSurfaceVisible(bool visible) {
- NOTIMPLEMENTED();
-}
-
-void MojoContextSupport::Swap() {
- MGLMakeCurrent(context_);
- MGLSwapBuffers();
-}
-
-void MojoContextSupport::PartialSwapBuffers(const gfx::Rect& sub_buffer) {
- Swap();
-}
-
-void MojoContextSupport::ScheduleOverlayPlane(
- int plane_z_order,
- gfx::OverlayTransform plane_transform,
- unsigned overlay_texture_id,
- const gfx::Rect& display_bounds,
- const gfx::RectF& uv_rect) {
- NOTIMPLEMENTED();
-}
-
-uint32 MojoContextSupport::InsertFutureSyncPointCHROMIUM() {
- NOTIMPLEMENTED();
- return 0u;
-}
-
-void MojoContextSupport::RetireSyncPointCHROMIUM(uint32 sync_point) {
- NOTIMPLEMENTED();
-}
-
-} // namespace mojo
« 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