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

Unified Diff: cc/surfaces/surface_id_allocator.cc

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 3 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/surface_id_allocator.h ('k') | cc/surfaces/surface_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_id_allocator.cc
diff --git a/cc/surfaces/surface_id_allocator.cc b/cc/surfaces/surface_id_allocator.cc
index 330b3c3247299f95da6ef235c112e8759469adc9..dfd079d3e5636dcee55f4db758c4de974b924584 100644
--- a/cc/surfaces/surface_id_allocator.cc
+++ b/cc/surfaces/surface_id_allocator.cc
@@ -10,15 +10,15 @@
namespace cc {
-SurfaceIdAllocator::SurfaceIdAllocator(uint32_t client_id)
- : client_id_(client_id), next_id_(1u) {}
+SurfaceIdAllocator::SurfaceIdAllocator(const FrameSinkId& frame_sink_id)
+ : frame_sink_id_(frame_sink_id), next_id_(1u) {}
SurfaceIdAllocator::~SurfaceIdAllocator() {
}
SurfaceId SurfaceIdAllocator::GenerateId() {
uint64_t nonce = base::RandUint64();
- SurfaceId id(client_id_, next_id_, nonce);
+ SurfaceId id(frame_sink_id_, next_id_, nonce);
next_id_++;
return id;
}
« no previous file with comments | « cc/surfaces/surface_id_allocator.h ('k') | cc/surfaces/surface_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698