| Index: cc/ipc/surface_sequence_struct_traits.h
|
| diff --git a/cc/ipc/surface_sequence_struct_traits.h b/cc/ipc/surface_sequence_struct_traits.h
|
| index 076587f0e07679404ebe0897057a8433e80c7db0..e38b75593b657889b38e96d81cd22227d2af1cfc 100644
|
| --- a/cc/ipc/surface_sequence_struct_traits.h
|
| +++ b/cc/ipc/surface_sequence_struct_traits.h
|
| @@ -5,15 +5,13 @@
|
| #ifndef CC_IPC_SURFACE_SEQUENCE_STRUCT_TRAITS_H_
|
| #define CC_IPC_SURFACE_SEQUENCE_STRUCT_TRAITS_H_
|
|
|
| +#include "cc/ipc/surface_sequence.mojom-shared.h"
|
| #include "cc/surfaces/surface_sequence.h"
|
|
|
| namespace mojo {
|
|
|
| -// This template is fully specialized as cc::mojom::SurfaceSequenceDataView and
|
| -// as cc::mojom::blink::SurfaceSequenceDataView, in generated .mojom.h and
|
| -// .mojom-blink.h respectively.
|
| -template <typename T>
|
| -struct StructTraits<T, cc::SurfaceSequence> {
|
| +template <>
|
| +struct StructTraits<cc::mojom::SurfaceSequenceDataView, cc::SurfaceSequence> {
|
| static uint32_t client_id(const cc::SurfaceSequence& id) {
|
| return id.client_id;
|
| }
|
| @@ -22,7 +20,8 @@ struct StructTraits<T, cc::SurfaceSequence> {
|
| return id.sequence;
|
| }
|
|
|
| - static bool Read(T data, cc::SurfaceSequence* out) {
|
| + static bool Read(cc::mojom::SurfaceSequenceDataView data,
|
| + cc::SurfaceSequence* out) {
|
| *out = cc::SurfaceSequence(data.client_id(), data.sequence());
|
| return true;
|
| }
|
|
|