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 #include "cc/ipc/compositor_frame_metadata_struct_traits.h" | 5 #include "cc/ipc/compositor_frame_metadata_struct_traits.h" |
6 #include "cc/ipc/begin_frame_args_struct_traits.h" | 6 #include "cc/ipc/begin_frame_args_struct_traits.h" |
7 #include "cc/ipc/selection_struct_traits.h" | 7 #include "cc/ipc/selection_struct_traits.h" |
8 #include "cc/ipc/surface_id_struct_traits.h" | 8 #include "cc/ipc/surface_id_struct_traits.h" |
9 #include "ui/gfx/mojo/selection_bound_struct_traits.h" | 9 #include "ui/gfx/mojo/selection_bound_struct_traits.h" |
10 #include "ui/latency/mojo/latency_info_struct_traits.h" | 10 #include "ui/latency/mojo/latency_info_struct_traits.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 if (!data.ReadScrollableViewportSize(&out->scrollable_viewport_size) || | 24 if (!data.ReadScrollableViewportSize(&out->scrollable_viewport_size) || |
25 !data.ReadRootLayerSize(&out->root_layer_size)) { | 25 !data.ReadRootLayerSize(&out->root_layer_size)) { |
26 return false; | 26 return false; |
27 } | 27 } |
28 | 28 |
29 out->min_page_scale_factor = data.min_page_scale_factor(); | 29 out->min_page_scale_factor = data.min_page_scale_factor(); |
30 out->max_page_scale_factor = data.max_page_scale_factor(); | 30 out->max_page_scale_factor = data.max_page_scale_factor(); |
31 out->root_overflow_x_hidden = data.root_overflow_x_hidden(); | 31 out->root_overflow_x_hidden = data.root_overflow_x_hidden(); |
32 out->root_overflow_y_hidden = data.root_overflow_y_hidden(); | 32 out->root_overflow_y_hidden = data.root_overflow_y_hidden(); |
33 out->may_contain_video = data.may_contain_video(); | 33 out->may_contain_video = data.may_contain_video(); |
| 34 out->is_fullscreen = data.is_fullscreen(); |
| 35 if (!data.ReadDeviceViewportSize(&out->device_viewport_size)) { |
| 36 return false; |
| 37 } |
| 38 |
34 out->is_resourceless_software_draw_with_scroll_or_animation = | 39 out->is_resourceless_software_draw_with_scroll_or_animation = |
35 data.is_resourceless_software_draw_with_scroll_or_animation(); | 40 data.is_resourceless_software_draw_with_scroll_or_animation(); |
36 out->top_controls_height = data.top_controls_height(); | 41 out->top_controls_height = data.top_controls_height(); |
37 out->top_controls_shown_ratio = data.top_controls_shown_ratio(); | 42 out->top_controls_shown_ratio = data.top_controls_shown_ratio(); |
38 out->bottom_controls_height = data.bottom_controls_height(); | 43 out->bottom_controls_height = data.bottom_controls_height(); |
39 out->bottom_controls_shown_ratio = data.bottom_controls_shown_ratio(); | 44 out->bottom_controls_shown_ratio = data.bottom_controls_shown_ratio(); |
40 out->content_source_id = data.content_source_id(); | 45 out->content_source_id = data.content_source_id(); |
41 out->frame_token = data.frame_token(); | 46 out->frame_token = data.frame_token(); |
42 out->root_background_color = data.root_background_color(); | 47 out->root_background_color = data.root_background_color(); |
43 out->can_activate_before_dependencies = | 48 out->can_activate_before_dependencies = |
44 data.can_activate_before_dependencies(); | 49 data.can_activate_before_dependencies(); |
45 return data.ReadSelection(&out->selection) && | 50 return data.ReadSelection(&out->selection) && |
46 data.ReadLatencyInfo(&out->latency_info) && | 51 data.ReadLatencyInfo(&out->latency_info) && |
47 data.ReadReferencedSurfaces(&out->referenced_surfaces) && | 52 data.ReadReferencedSurfaces(&out->referenced_surfaces) && |
48 data.ReadActivationDependencies(&out->activation_dependencies) && | 53 data.ReadActivationDependencies(&out->activation_dependencies) && |
49 data.ReadBeginFrameAck(&out->begin_frame_ack); | 54 data.ReadBeginFrameAck(&out->begin_frame_ack); |
50 } | 55 } |
51 | 56 |
52 } // namespace mojo | 57 } // namespace mojo |
OLD | NEW |