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

Unified Diff: cc/surfaces/frame_sink_id.h

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/BUILD.gn ('k') | cc/surfaces/frame_sink_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/frame_sink_id.h
diff --git a/cc/surfaces/frame_sink_id.h b/cc/surfaces/frame_sink_id.h
index d65c8de8d474d20a2f6dafd5577dc17381feffe1..4bf95b16d39260d221e43bdcd87680dfc4e98ec1 100644
--- a/cc/surfaces/frame_sink_id.h
+++ b/cc/surfaces/frame_sink_id.h
@@ -5,11 +5,13 @@
#ifndef CC_SURFACES_FRAME_SINK_ID_H_
#define CC_SURFACES_FRAME_SINK_ID_H_
+#include <stdint.h>
+
+#include <iosfwd>
+#include <string>
#include <tuple>
-#include "base/format_macros.h"
#include "base/hash.h"
-#include "base/strings/stringprintf.h"
namespace cc {
@@ -42,15 +44,15 @@ class FrameSinkId {
size_t hash() const { return base::HashInts(client_id_, sink_id_); }
- std::string ToString() const {
- return base::StringPrintf("FrameSinkId(%d, %d)", client_id_, sink_id_);
- }
+ std::string ToString() const;
private:
uint32_t client_id_;
uint32_t sink_id_;
};
+std::ostream& operator<<(std::ostream& out, const FrameSinkId& frame_sink_id);
+
struct FrameSinkIdHash {
size_t operator()(const FrameSinkId& key) const { return key.hash(); }
};
« no previous file with comments | « cc/surfaces/BUILD.gn ('k') | cc/surfaces/frame_sink_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698