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

Unified Diff: cc/surfaces/local_frame_id.cc

Issue 2521543003: Add stream operator for SurfaceId/FrameSinkId/LocalFrameId. (Closed)
Patch Set: Add another missing include. Created 4 years, 1 month 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_frame_id.h ('k') | cc/surfaces/surface_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/local_frame_id.cc
diff --git a/cc/surfaces/local_frame_id.cc b/cc/surfaces/local_frame_id.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b92ac8a6b7de73dab7855403700aa19a811d7212
--- /dev/null
+++ b/cc/surfaces/local_frame_id.cc
@@ -0,0 +1,21 @@
+// Copyright 2016 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_frame_id.h"
+
+#include "base/strings/stringprintf.h"
+
+namespace cc {
+
+std::string LocalFrameId::ToString() const {
+ return base::StringPrintf("LocalFrameId(%d, %s" PRIu64 ")", local_id_,
+ nonce_.ToString().c_str());
+}
+
+std::ostream& operator<<(std::ostream& out,
+ const LocalFrameId& local_frame_id) {
+ return out << local_frame_id.ToString();
+}
+
+} // namespace cc
« no previous file with comments | « cc/surfaces/local_frame_id.h ('k') | cc/surfaces/surface_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698