| Index: ui/gfx/mojo/buffer_types_struct_traits.h
|
| diff --git a/ui/gfx/mojo/buffer_types_struct_traits.h b/ui/gfx/mojo/buffer_types_struct_traits.h
|
| index 1c8275260b150dbc8ac0bfca47ed371a7d79720f..b65dee4fd73f12f66aad5807ca11cc998086fccf 100644
|
| --- a/ui/gfx/mojo/buffer_types_struct_traits.h
|
| +++ b/ui/gfx/mojo/buffer_types_struct_traits.h
|
| @@ -284,6 +284,19 @@ struct StructTraits<gfx::mojom::GpuMemoryBufferHandleDataView,
|
| gfx::GpuMemoryBufferHandle* handle);
|
| };
|
|
|
| +template <>
|
| +struct StructTraits<gfx::mojom::GpuMemoryBufferAttribDataView,
|
| + gfx::GpuMemoryBufferAttrib> {
|
| + static gfx::BufferFormat format(const gfx::GpuMemoryBufferAttrib attrib) {
|
| + return attrib.format;
|
| + }
|
| + static uint64_t modifier(const gfx::GpuMemoryBufferAttrib attrib) {
|
| + return attrib.modifier;
|
| + }
|
| + static bool Read(gfx::mojom::GpuMemoryBufferAttribDataView attrib,
|
| + gfx::GpuMemoryBufferAttrib* out);
|
| +};
|
| +
|
| } // namespace mojo
|
|
|
| #endif // UI_GFX_MOJO_BUFFER_TYPES_STRUCT_TRAITS_H_
|
|
|