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

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

Issue 2789773003: Send FrameSwapMessageQueue's messages with a separate IPC (Closed)
Patch Set: Fix rebase mistake 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 #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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 static uint32_t content_source_id( 114 static uint32_t content_source_id(
115 const cc::CompositorFrameMetadata& metadata) { 115 const cc::CompositorFrameMetadata& metadata) {
116 return metadata.content_source_id; 116 return metadata.content_source_id;
117 } 117 }
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) {
125 return metadata.frame_token;
126 }
127
124 static bool Read(cc::mojom::CompositorFrameMetadataDataView data, 128 static bool Read(cc::mojom::CompositorFrameMetadataDataView data,
125 cc::CompositorFrameMetadata* out); 129 cc::CompositorFrameMetadata* out);
126 }; 130 };
127 131
128 } // namespace mojo 132 } // namespace mojo
129 133
130 #endif // CC_IPC_COMPOSITOR_FRAME_METADATA_STRUCT_TRAITS_H_ 134 #endif // CC_IPC_COMPOSITOR_FRAME_METADATA_STRUCT_TRAITS_H_
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