blob: 97fd785876bdea9fe04fd36c2e78f8adbff7ac14 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/mojom/delegated_ink_point_mojom_traits.h"
namespace mojo {
// static
bool StructTraits<
gfx::mojom::DelegatedInkPointDataView,
gfx::DelegatedInkPoint>::Read(gfx::mojom::DelegatedInkPointDataView data,
gfx::DelegatedInkPoint* out) {
out->pointer_id_ = data.pointer_id();
return data.ReadPoint(&out->point_) && data.ReadTimestamp(&out->timestamp_);
}
} // namespace mojo