1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include <inttypes.h>
6 
7 #include "base/strings/stringprintf.h"
8 #include "components/viz/common/delegated_ink_metadata.h"
9 
10 namespace viz {
11 
ToString() const12 std::string DelegatedInkMetadata::ToString() const {
13   std::string str = base::StringPrintf(
14       "point: %s, diameter: %f, color: %u, timestamp: %" PRId64
15       ", presentation_area: %s, frame_time: %" PRId64,
16       point_.ToString().c_str(), diameter_, color_,
17       timestamp_.since_origin().InMicroseconds(),
18       presentation_area_.ToString().c_str(),
19       frame_time_.since_origin().InMicroseconds());
20   return str;
21 }
22 
23 }  // namespace viz
24