| 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.h" | 8 #include "cc/ipc/compositor_frame_metadata.mojom.h" |
| 9 #include "cc/output/compositor_frame_metadata.h" | 9 #include "cc/output/compositor_frame_metadata.h" |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 static bool root_overflow_x_hidden( | 50 static bool root_overflow_x_hidden( |
| 51 const cc::CompositorFrameMetadata& metadata) { | 51 const cc::CompositorFrameMetadata& metadata) { |
| 52 return metadata.root_overflow_x_hidden; | 52 return metadata.root_overflow_x_hidden; |
| 53 } | 53 } |
| 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 is_resourceless_software_draw_with_scroll_or_animation( |
| 61 const cc::CompositorFrameMetadata& metadata) { |
| 62 return metadata.is_resourceless_software_draw_with_scroll_or_animation; |
| 63 } |
| 64 |
| 60 static gfx::Vector2dF location_bar_offset( | 65 static gfx::Vector2dF location_bar_offset( |
| 61 const cc::CompositorFrameMetadata& metadata) { | 66 const cc::CompositorFrameMetadata& metadata) { |
| 62 return metadata.location_bar_offset; | 67 return metadata.location_bar_offset; |
| 63 } | 68 } |
| 64 | 69 |
| 65 static gfx::Vector2dF location_bar_content_translation( | 70 static gfx::Vector2dF location_bar_content_translation( |
| 66 const cc::CompositorFrameMetadata& metadata) { | 71 const cc::CompositorFrameMetadata& metadata) { |
| 67 return metadata.location_bar_content_translation; | 72 return metadata.location_bar_content_translation; |
| 68 } | 73 } |
| 69 | 74 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 92 return metadata.referenced_surfaces; | 97 return metadata.referenced_surfaces; |
| 93 } | 98 } |
| 94 | 99 |
| 95 static bool Read(cc::mojom::CompositorFrameMetadataDataView data, | 100 static bool Read(cc::mojom::CompositorFrameMetadataDataView data, |
| 96 cc::CompositorFrameMetadata* out); | 101 cc::CompositorFrameMetadata* out); |
| 97 }; | 102 }; |
| 98 | 103 |
| 99 } // namespace mojo | 104 } // namespace mojo |
| 100 | 105 |
| 101 #endif // CC_IPC_COMPOSITOR_FRAME_METADATA_STRUCT_TRAITS_H_ | 106 #endif // CC_IPC_COMPOSITOR_FRAME_METADATA_STRUCT_TRAITS_H_ |
| OLD | NEW |