Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: cc/ipc/compositor_frame_metadata_struct_traits.cc

Issue 2783973002: Moving LatencyInfo into a separate component. (Closed)
Patch Set: Rebase again Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/ipc/compositor_frame_metadata.mojom ('k') | cc/output/compositor_frame_metadata.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/events/mojo/latency_info_struct_traits.h"
10 #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"
11 11
12 namespace mojo { 12 namespace mojo {
13 13
14 // static 14 // static
15 bool StructTraits<cc::mojom::CompositorFrameMetadataDataView, 15 bool StructTraits<cc::mojom::CompositorFrameMetadataDataView,
16 cc::CompositorFrameMetadata>:: 16 cc::CompositorFrameMetadata>::
17 Read(cc::mojom::CompositorFrameMetadataDataView data, 17 Read(cc::mojom::CompositorFrameMetadataDataView data,
18 cc::CompositorFrameMetadata* out) { 18 cc::CompositorFrameMetadata* out) {
19 out->device_scale_factor = data.device_scale_factor(); 19 out->device_scale_factor = data.device_scale_factor();
20 if (!data.ReadRootScrollOffset(&out->root_scroll_offset)) 20 if (!data.ReadRootScrollOffset(&out->root_scroll_offset))
(...skipping 21 matching lines...) Expand all
42 out->root_background_color = data.root_background_color(); 42 out->root_background_color = data.root_background_color();
43 out->can_activate_before_dependencies = 43 out->can_activate_before_dependencies =
44 data.can_activate_before_dependencies(); 44 data.can_activate_before_dependencies();
45 return data.ReadSelection(&out->selection) && 45 return data.ReadSelection(&out->selection) &&
46 data.ReadLatencyInfo(&out->latency_info) && 46 data.ReadLatencyInfo(&out->latency_info) &&
47 data.ReadReferencedSurfaces(&out->referenced_surfaces) && 47 data.ReadReferencedSurfaces(&out->referenced_surfaces) &&
48 data.ReadBeginFrameAck(&out->begin_frame_ack); 48 data.ReadBeginFrameAck(&out->begin_frame_ack);
49 } 49 }
50 50
51 } // namespace mojo 51 } // namespace mojo
OLDNEW
« no previous file with comments | « cc/ipc/compositor_frame_metadata.mojom ('k') | cc/output/compositor_frame_metadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698