summaryrefslogtreecommitdiff
path: root/chromium/cc/surfaces/local_surface_id.cc
blob: cf934f0d5b4fb8393a444d8f19574c6c0653a1a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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