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

Unified Diff: mojo/gpu/mojo_context_support.h

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/gl_context.cc ('k') | mojo/gpu/mojo_context_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gpu/mojo_context_support.h
diff --git a/mojo/gpu/mojo_context_support.h b/mojo/gpu/mojo_context_support.h
deleted file mode 100644
index 84d5df1fdf979ff7b0b2e18e2278c05b3febd7eb..0000000000000000000000000000000000000000
--- a/mojo/gpu/mojo_context_support.h
+++ /dev/null
@@ -1,41 +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.
-
-#ifndef MOJO_GPU_MOJO_CONTEXT_SUPPORT_H_
-#define MOJO_GPU_MOJO_CONTEXT_SUPPORT_H_
-
-#include <MGL/mgl.h>
-
-#include "base/macros.h"
-#include "gpu/command_buffer/client/context_support.h"
-
-namespace mojo {
-
-class MojoContextSupport : public gpu::ContextSupport {
- public:
- explicit MojoContextSupport(MGLContext context);
- ~MojoContextSupport() override;
-
- // gpu::ContextSupport implementation.
- void SignalSyncPoint(uint32 sync_point,
- const base::Closure& callback) override;
- void SignalQuery(uint32 query, const base::Closure& callback) override;
- void SetSurfaceVisible(bool visible) override;
- void Swap() override;
- void PartialSwapBuffers(const gfx::Rect& sub_buffer) override;
- void ScheduleOverlayPlane(int plane_z_order,
- gfx::OverlayTransform plane_transform,
- unsigned overlay_texture_id,
- const gfx::Rect& display_bounds,
- const gfx::RectF& uv_rect) override;
- uint32 InsertFutureSyncPointCHROMIUM() override;
- void RetireSyncPointCHROMIUM(uint32 sync_point) override;
-
- private:
- MGLContext context_;
- DISALLOW_COPY_AND_ASSIGN(MojoContextSupport);
-};
-}
-
-#endif // MOJO_GPU_MOJO_CONTEXT_SUPPORT_H_
« no previous file with comments | « mojo/gpu/gl_context.cc ('k') | mojo/gpu/mojo_context_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698