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

Unified Diff: cc/ipc/surface_sequence_struct_traits.h

Issue 2285433002: Use compositor_frame typemap in Blink (Closed)
Patch Set: Adapt to new change after rebase Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/ipc/surface_id_struct_traits.h ('k') | cc/ipc/transferable_resource.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « cc/ipc/surface_id_struct_traits.h ('k') | cc/ipc/transferable_resource.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698