Index: components/mus/public/interfaces/gpu_memory_buffer.mojom |
diff --git a/components/mus/public/interfaces/gpu_memory_buffer.mojom b/components/mus/public/interfaces/gpu_memory_buffer.mojom |
deleted file mode 100644 |
index 0cb6e19ee0a55a477d52c5a1ae283b3806c02a1b..0000000000000000000000000000000000000000 |
--- a/components/mus/public/interfaces/gpu_memory_buffer.mojom |
+++ /dev/null |
@@ -1,63 +0,0 @@ |
-// Copyright 2016 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. |
- |
-module mus.mojom; |
- |
-enum BufferFormat { |
- ATC, |
- ATCIA, |
- DXT1, |
- DXT5, |
- ETC1, |
- R_8, |
- RGBA_4444, |
- RGBX_8888, |
- RGBA_8888, |
- BGRX_8888, |
- BGRA_8888, |
- YUV_420, |
- YUV_420_BIPLANAR, |
- UYVY_422, |
- LAST = UYVY_422 |
-}; |
- |
-enum BufferUsage { |
- GPU_READ, |
- SCANOUT, |
- GPU_READ_CPU_READ_WRITE, |
- GPU_READ_CPU_READ_WRITE_PERSISTENT, |
- LAST = GPU_READ_CPU_READ_WRITE_PERSISTENT |
-}; |
- |
-enum GpuMemoryBufferType { |
- EMPTY, |
- SHARED_MEMORY, |
- IO_SURFACE, |
- SURFACE_TEXTURE, |
- OZONE_NATIVE_PIXMAP, |
- LAST = OZONE_NATIVE_PIXMAP |
-}; |
- |
-struct GpuMemoryBufferId { |
- int32 id; |
-}; |
- |
-struct NativePixmapHandle { |
- // A file descriptor for the underlying memory object (usually dmabuf). |
- handle fd; |
- |
- // The stride used when accessing the buffer via a memory mapping. |
- int32 stride; |
-}; |
- |
- |
-struct GpuMemoryBufferHandle { |
- GpuMemoryBufferType type; |
- GpuMemoryBufferId id; |
- handle buffer_handle; |
- uint32 offset; |
- int32 stride; |
- NativePixmapHandle? native_pixmap_handle; |
- // TODO(fsamuel): Add support for Machports. |
-}; |