| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 static const cc::BeginFrameAck& begin_frame_ack( | 119 static const cc::BeginFrameAck& begin_frame_ack( |
| 120 const cc::CompositorFrameMetadata& metadata) { | 120 const cc::CompositorFrameMetadata& metadata) { |
| 121 return metadata.begin_frame_ack; | 121 return metadata.begin_frame_ack; |
| 122 } | 122 } |
| 123 | 123 |
| 124 static uint32_t frame_token(const cc::CompositorFrameMetadata& metadata) { | 124 static uint32_t frame_token(const cc::CompositorFrameMetadata& metadata) { |
| 125 return metadata.frame_token; | 125 return metadata.frame_token; |
| 126 } | 126 } |
| 127 | 127 |
| 128 static bool is_main_thread_frame( |
| 129 const cc::CompositorFrameMetadata& metadata) { |
| 130 return metadata.is_main_thread_frame; |
| 131 } |
| 132 |
| 128 static bool Read(cc::mojom::CompositorFrameMetadataDataView data, | 133 static bool Read(cc::mojom::CompositorFrameMetadataDataView data, |
| 129 cc::CompositorFrameMetadata* out); | 134 cc::CompositorFrameMetadata* out); |
| 130 }; | 135 }; |
| 131 | 136 |
| 132 } // namespace mojo | 137 } // namespace mojo |
| 133 | 138 |
| 134 #endif // CC_IPC_COMPOSITOR_FRAME_METADATA_STRUCT_TRAITS_H_ | 139 #endif // CC_IPC_COMPOSITOR_FRAME_METADATA_STRUCT_TRAITS_H_ |
| OLD | NEW |