| Index: cc/surfaces/local_surface_id.cc
|
| diff --git a/cc/surfaces/local_surface_id.cc b/cc/surfaces/local_surface_id.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cf934f0d5b4fb8393a444d8f19574c6c0653a1a5
|
| --- /dev/null
|
| +++ b/cc/surfaces/local_surface_id.cc
|
| @@ -0,0 +1,21 @@
|
| +// Copyright 2017 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 "cc/surfaces/local_surface_id.h"
|
| +
|
| +#include "base/strings/stringprintf.h"
|
| +
|
| +namespace cc {
|
| +
|
| +std::string LocalSurfaceId::ToString() const {
|
| + return base::StringPrintf("LocalSurfaceId(%d, %s" PRIu64 ")", local_id_,
|
| + nonce_.ToString().c_str());
|
| +}
|
| +
|
| +std::ostream& operator<<(std::ostream& out,
|
| + const LocalSurfaceId& local_surface_id) {
|
| + return out << local_surface_id.ToString();
|
| +}
|
| +
|
| +} // namespace cc
|
|
|