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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 static bool root_overflow_y_hidden( | 55 static bool root_overflow_y_hidden( |
56 const cc::CompositorFrameMetadata& metadata) { | 56 const cc::CompositorFrameMetadata& metadata) { |
57 return metadata.root_overflow_y_hidden; | 57 return metadata.root_overflow_y_hidden; |
58 } | 58 } |
59 | 59 |
60 static bool may_contain_video(const cc::CompositorFrameMetadata& metadata) { | 60 static bool may_contain_video(const cc::CompositorFrameMetadata& metadata) { |
61 return metadata.may_contain_video; | 61 return metadata.may_contain_video; |
62 } | 62 } |
63 | 63 |
| 64 static bool is_fullscreen(const cc::CompositorFrameMetadata& metadata) { |
| 65 return metadata.is_fullscreen; |
| 66 } |
| 67 |
64 static bool is_resourceless_software_draw_with_scroll_or_animation( | 68 static bool is_resourceless_software_draw_with_scroll_or_animation( |
65 const cc::CompositorFrameMetadata& metadata) { | 69 const cc::CompositorFrameMetadata& metadata) { |
66 return metadata.is_resourceless_software_draw_with_scroll_or_animation; | 70 return metadata.is_resourceless_software_draw_with_scroll_or_animation; |
67 } | 71 } |
68 | 72 |
69 static float top_controls_height( | 73 static float top_controls_height( |
70 const cc::CompositorFrameMetadata& metadata) { | 74 const cc::CompositorFrameMetadata& metadata) { |
71 return metadata.top_controls_height; | 75 return metadata.top_controls_height; |
72 } | 76 } |
73 | 77 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 return metadata.frame_token; | 134 return metadata.frame_token; |
131 } | 135 } |
132 | 136 |
133 static bool Read(cc::mojom::CompositorFrameMetadataDataView data, | 137 static bool Read(cc::mojom::CompositorFrameMetadataDataView data, |
134 cc::CompositorFrameMetadata* out); | 138 cc::CompositorFrameMetadata* out); |
135 }; | 139 }; |
136 | 140 |
137 } // namespace mojo | 141 } // namespace mojo |
138 | 142 |
139 #endif // CC_IPC_COMPOSITOR_FRAME_METADATA_STRUCT_TRAITS_H_ | 143 #endif // CC_IPC_COMPOSITOR_FRAME_METADATA_STRUCT_TRAITS_H_ |
OLD | NEW |