chromium/media/mojo/mojom/stable/native_pixmap_handle_mojom_traits.h

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MEDIA_MOJO_MOJOM_STABLE_NATIVE_PIXMAP_HANDLE_MOJOM_TRAITS_H_
#define MEDIA_MOJO_MOJOM_STABLE_NATIVE_PIXMAP_HANDLE_MOJOM_TRAITS_H_

#include "media/mojo/mojom/stable/native_pixmap_handle.mojom.h"

namespace gfx {
struct NativePixmapHandle;
struct NativePixmapPlane;
}  // namespace gfx

namespace mojo {

template <>
struct StructTraits<media::stable::mojom::NativePixmapPlaneDataView,
                    gfx::NativePixmapPlane> {};

template <>
struct StructTraits<media::stable::mojom::NativePixmapHandleDataView,
                    gfx::NativePixmapHandle> {};

}  // namespace mojo

#endif  // MEDIA_MOJO_MOJOM_STABLE_NATIVE_PIXMAP_HANDLE_MOJOM_TRAITS_H_