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

Unified Diff: cc/surfaces/surface_id.h

Issue 2537343004: Add SurfaceReference class. (Closed)
Patch Set: Fixes. Created 4 years 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_reference.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_id.h
diff --git a/cc/surfaces/surface_id.h b/cc/surfaces/surface_id.h
index 6df5009a2bd5cce8146cb3d0c391f0ea778337c0..fe21851076ce9e33b8b800fc56f6382c9f55f42c 100644
--- a/cc/surfaces/surface_id.h
+++ b/cc/surfaces/surface_id.h
@@ -14,8 +14,12 @@
#include "base/hash.h"
#include "cc/surfaces/frame_sink_id.h"
#include "cc/surfaces/local_frame_id.h"
+#include "mojo/public/cpp/bindings/struct_traits.h"
namespace cc {
+namespace mojom {
+class SurfaceIdDataView;
+}
class SurfaceId {
public:
@@ -62,6 +66,8 @@ class SurfaceId {
}
private:
+ friend struct mojo::StructTraits<mojom::SurfaceIdDataView, SurfaceId>;
+
// See SurfaceIdAllocator::GenerateId.
FrameSinkId frame_sink_id_;
LocalFrameId local_frame_id_;
« no previous file with comments | « cc/surfaces/local_frame_id.h ('k') | cc/surfaces/surface_reference.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698