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

Side by Side Diff: ui/gfx/ipc/gfx_param_traits_macros.h

Issue 2801683002: gfx: introduce GpuMemoryBufferAttrib to communicate format modifiers
Patch Set: purge enum BufferFormatModifier and use uint64_t modifiers Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/buffer_types.h ('k') | ui/gfx/mojo/buffer_types.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Singly or multiply-included shared traits file depending upon circumstances. 5 // Singly or multiply-included shared traits file depending upon circumstances.
6 // This allows the use of IPC serialization macros in more than one IPC message 6 // This allows the use of IPC serialization macros in more than one IPC message
7 // file. 7 // file.
8 #ifndef UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ 8 #ifndef UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_
9 #define UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ 9 #define UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 IPC_STRUCT_TRAITS_MEMBER(size) 57 IPC_STRUCT_TRAITS_MEMBER(size)
58 IPC_STRUCT_TRAITS_MEMBER(modifier) 58 IPC_STRUCT_TRAITS_MEMBER(modifier)
59 IPC_STRUCT_TRAITS_END() 59 IPC_STRUCT_TRAITS_END()
60 60
61 IPC_STRUCT_TRAITS_BEGIN(gfx::NativePixmapHandle) 61 IPC_STRUCT_TRAITS_BEGIN(gfx::NativePixmapHandle)
62 IPC_STRUCT_TRAITS_MEMBER(fds) 62 IPC_STRUCT_TRAITS_MEMBER(fds)
63 IPC_STRUCT_TRAITS_MEMBER(planes) 63 IPC_STRUCT_TRAITS_MEMBER(planes)
64 IPC_STRUCT_TRAITS_END() 64 IPC_STRUCT_TRAITS_END()
65 #endif 65 #endif
66 66
67 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferAttrib)
68 IPC_STRUCT_TRAITS_MEMBER(format)
69 IPC_STRUCT_TRAITS_MEMBER(modifier)
70 IPC_STRUCT_TRAITS_END()
67 #undef IPC_MESSAGE_EXPORT 71 #undef IPC_MESSAGE_EXPORT
68 #define IPC_MESSAGE_EXPORT 72 #define IPC_MESSAGE_EXPORT
69 73
70 #endif // UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ 74 #endif // UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_
OLDNEW
« no previous file with comments | « ui/gfx/buffer_types.h ('k') | ui/gfx/mojo/buffer_types.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698