| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CC_IPC_COMPOSITOR_FRAME_METADATA_STRUCT_TRAITS_H_ | 5 #ifndef CC_IPC_COMPOSITOR_FRAME_METADATA_STRUCT_TRAITS_H_ |
| 6 #define CC_IPC_COMPOSITOR_FRAME_METADATA_STRUCT_TRAITS_H_ | 6 #define CC_IPC_COMPOSITOR_FRAME_METADATA_STRUCT_TRAITS_H_ |
| 7 | 7 |
| 8 #include "cc/ipc/compositor_frame_metadata.mojom-shared.h" | 8 #include "cc/ipc/compositor_frame_metadata.mojom-shared.h" |
| 9 #include "cc/output/compositor_frame_metadata.h" | 9 #include "cc/output/compositor_frame_metadata.h" |
| 10 | 10 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 static const cc::Selection<gfx::SelectionBound>& selection( | 94 static const cc::Selection<gfx::SelectionBound>& selection( |
| 95 const cc::CompositorFrameMetadata& metadata) { | 95 const cc::CompositorFrameMetadata& metadata) { |
| 96 return metadata.selection; | 96 return metadata.selection; |
| 97 } | 97 } |
| 98 | 98 |
| 99 static const std::vector<ui::LatencyInfo>& latency_info( | 99 static const std::vector<ui::LatencyInfo>& latency_info( |
| 100 const cc::CompositorFrameMetadata& metadata) { | 100 const cc::CompositorFrameMetadata& metadata) { |
| 101 return metadata.latency_info; | 101 return metadata.latency_info; |
| 102 } | 102 } |
| 103 | 103 |
| 104 static const std::vector<uint32_t>& satisfies_sequences( | |
| 105 const cc::CompositorFrameMetadata& metadata) { | |
| 106 return metadata.satisfies_sequences; | |
| 107 } | |
| 108 | |
| 109 static const std::vector<cc::SurfaceId>& referenced_surfaces( | 104 static const std::vector<cc::SurfaceId>& referenced_surfaces( |
| 110 const cc::CompositorFrameMetadata& metadata) { | 105 const cc::CompositorFrameMetadata& metadata) { |
| 111 return metadata.referenced_surfaces; | 106 return metadata.referenced_surfaces; |
| 112 } | 107 } |
| 113 | 108 |
| 114 static bool Read(cc::mojom::CompositorFrameMetadataDataView data, | 109 static bool Read(cc::mojom::CompositorFrameMetadataDataView data, |
| 115 cc::CompositorFrameMetadata* out); | 110 cc::CompositorFrameMetadata* out); |
| 116 }; | 111 }; |
| 117 | 112 |
| 118 } // namespace mojo | 113 } // namespace mojo |
| 119 | 114 |
| 120 #endif // CC_IPC_COMPOSITOR_FRAME_METADATA_STRUCT_TRAITS_H_ | 115 #endif // CC_IPC_COMPOSITOR_FRAME_METADATA_STRUCT_TRAITS_H_ |
| OLD | NEW |