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

Unified Diff: services/ui/common/gpu_type_converters.h

Issue 2298003002: gfx: Struct traits for GpuMemoryBufferHandle. (Closed)
Patch Set: . Created 4 years, 3 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 | « services/ui/common/BUILD.gn ('k') | services/ui/common/gpu_type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/common/gpu_type_converters.h
diff --git a/services/ui/common/gpu_type_converters.h b/services/ui/common/gpu_type_converters.h
deleted file mode 100644
index c42350afc0bc4b3c2b90d98e25f9fc2e7ecbbb7d..0000000000000000000000000000000000000000
--- a/services/ui/common/gpu_type_converters.h
+++ /dev/null
@@ -1,53 +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.
-
-#ifndef SERVICES_UI_COMMON_GPU_TYPE_CONVERTERS_H_
-#define SERVICES_UI_COMMON_GPU_TYPE_CONVERTERS_H_
-
-#include "build/build_config.h"
-#include "mojo/public/cpp/bindings/type_converter.h"
-#include "services/ui/public/interfaces/gpu_memory_buffer.mojom.h"
-
-namespace gfx {
-struct GpuMemoryBufferHandle;
-class GenericSharedMemoryId;
-using GpuMemoryBufferId = GenericSharedMemoryId;
-struct NativePixmapHandle;
-}
-
-namespace mojo {
-
-#if defined(USE_OZONE)
-template <>
-struct TypeConverter<ui::mojom::NativePixmapHandlePtr,
- gfx::NativePixmapHandle> {
- static ui::mojom::NativePixmapHandlePtr Convert(
- const gfx::NativePixmapHandle& handle);
-};
-
-template <>
-struct TypeConverter<gfx::NativePixmapHandle,
- ui::mojom::NativePixmapHandlePtr> {
- static gfx::NativePixmapHandle Convert(
- const ui::mojom::NativePixmapHandlePtr& handle);
-};
-#endif
-
-template <>
-struct TypeConverter<ui::mojom::GpuMemoryBufferHandlePtr,
- gfx::GpuMemoryBufferHandle> {
- static ui::mojom::GpuMemoryBufferHandlePtr Convert(
- const gfx::GpuMemoryBufferHandle& handle);
-};
-
-template <>
-struct TypeConverter<gfx::GpuMemoryBufferHandle,
- ui::mojom::GpuMemoryBufferHandlePtr> {
- static gfx::GpuMemoryBufferHandle Convert(
- const ui::mojom::GpuMemoryBufferHandlePtr& handle);
-};
-
-} // namespace mojo
-
-#endif // SERVICES_UI_COMMON_GPU_TYPE_CONVERTERS_H_
« no previous file with comments | « services/ui/common/BUILD.gn ('k') | services/ui/common/gpu_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698