| Index: cc/ipc/surface_id_struct_traits.h
|
| diff --git a/cc/ipc/surface_id_struct_traits.h b/cc/ipc/surface_id_struct_traits.h
|
| index bafadf9cdfde7d7e4630e0bee410e40cb78a3807..a7fb75b35682e8019a6aa84ee40970af228e58f6 100644
|
| --- a/cc/ipc/surface_id_struct_traits.h
|
| +++ b/cc/ipc/surface_id_struct_traits.h
|
| @@ -14,16 +14,17 @@ namespace mojo {
|
| // respectively.
|
| template <typename T>
|
| struct StructTraits<T, cc::SurfaceId> {
|
| - static uint32_t id_namespace(const cc::SurfaceId& id) {
|
| - return id.id_namespace();
|
| - }
|
| + static uint32_t gpu_id(const cc::SurfaceId& id) { return id.gpu_id(); }
|
| +
|
| + static uint32_t client_id(const cc::SurfaceId& id) { return id.client_id(); }
|
|
|
| static uint32_t local_id(const cc::SurfaceId& id) { return id.local_id(); }
|
|
|
| static uint64_t nonce(const cc::SurfaceId& id) { return id.nonce(); }
|
|
|
| static bool Read(typename T::DataView data, cc::SurfaceId* out) {
|
| - *out = cc::SurfaceId(data.id_namespace(), data.local_id(), data.nonce());
|
| + *out = cc::SurfaceId(data.gpu_id(), data.client_id(), data.local_id(),
|
| + data.nonce());
|
| return true;
|
| }
|
| };
|
|
|