aboutsummaryrefslogtreecommitdiffstats
path: root/components/msg/platform
diff options
context:
space:
mode:
Diffstat (limited to 'components/msg/platform')
-rw-r--r--components/msg/platform/android/surface.rs20
-rw-r--r--components/msg/platform/linux/surface.rs20
-rw-r--r--components/msg/platform/macos/surface.rs25
-rw-r--r--components/msg/platform/surface.rs12
4 files changed, 0 insertions, 77 deletions
diff --git a/components/msg/platform/android/surface.rs b/components/msg/platform/android/surface.rs
deleted file mode 100644
index 6f2e962d804..00000000000
--- a/components/msg/platform/android/surface.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//! EGL-specific implementation of cross-process surfaces. This uses EGL surfaces.
-
-use platform::surface::NativeSurfaceAzureMethods;
-
-use azure::AzSkiaGrGLSharedSurfaceRef;
-use layers::platform::surface::NativeSurface;
-use std::mem;
-
-impl NativeSurfaceAzureMethods for NativeSurface {
- fn from_azure_surface(surface: AzSkiaGrGLSharedSurfaceRef) -> NativeSurface {
- unsafe {
- NativeSurface::from_image_khr(mem::transmute(surface))
- }
- }
-}
-
diff --git a/components/msg/platform/linux/surface.rs b/components/msg/platform/linux/surface.rs
deleted file mode 100644
index 60cc84bc965..00000000000
--- a/components/msg/platform/linux/surface.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//! X11-specific implementation of cross-process surfaces. This uses X pixmaps.
-
-use platform::surface::NativeSurfaceAzureMethods;
-
-use azure::AzSkiaGrGLSharedSurfaceRef;
-use layers::platform::surface::NativeSurface;
-use std::mem;
-
-impl NativeSurfaceAzureMethods for NativeSurface {
- fn from_azure_surface(surface: AzSkiaGrGLSharedSurfaceRef) -> NativeSurface {
- unsafe {
- NativeSurface::from_pixmap(mem::transmute(surface))
- }
- }
-}
-
diff --git a/components/msg/platform/macos/surface.rs b/components/msg/platform/macos/surface.rs
deleted file mode 100644
index 30b5e405500..00000000000
--- a/components/msg/platform/macos/surface.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//! Mac OS-specific implementation of cross-process surfaces. This uses `IOSurface`, introduced
-//! in Mac OS X 10.6 Snow Leopard.
-
-use platform::surface::NativeSurfaceAzureMethods;
-
-use azure::AzSkiaGrGLSharedSurfaceRef;
-use io_surface::IOSurface;
-use layers::platform::surface::NativeSurface;
-use std::mem;
-
-impl NativeSurfaceAzureMethods for NativeSurface {
- fn from_azure_surface(surface: AzSkiaGrGLSharedSurfaceRef) -> NativeSurface {
- unsafe {
- let io_surface = IOSurface {
- obj: mem::transmute(surface),
- };
- NativeSurface::from_io_surface(io_surface)
- }
- }
-}
-
diff --git a/components/msg/platform/surface.rs b/components/msg/platform/surface.rs
deleted file mode 100644
index eee8dfa5598..00000000000
--- a/components/msg/platform/surface.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//! Declarations of types for cross-process surfaces.
-
-use azure::AzSkiaGrGLSharedSurfaceRef;
-
-pub trait NativeSurfaceAzureMethods {
- fn from_azure_surface(surface: AzSkiaGrGLSharedSurfaceRef) -> Self;
-}
-