Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Unified Diff: cc/surfaces/local_surface_id.cc

Issue 2661543002: Rename LocalFrameId to LocalSurfaceId (Closed)
Patch Set: c Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/surfaces/local_surface_id.h ('k') | cc/surfaces/referenced_surface_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « cc/surfaces/local_surface_id.h ('k') | cc/surfaces/referenced_surface_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698