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

Unified Diff: services/ui/ws/frame_generator.cc

Issue 2445873003: Pass root ServerWindow id to FrameGenerator. (Closed)
Patch Set: Change back to const ref. Created 4 years, 2 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
Index: services/ui/ws/frame_generator.cc
diff --git a/services/ui/ws/frame_generator.cc b/services/ui/ws/frame_generator.cc
index d42f96d1143200fcc394bd94eccf228ecbb672ba..b4d67ce4f575a414164e832eb9e86c70c0677af0 100644
--- a/services/ui/ws/frame_generator.cc
+++ b/services/ui/ws/frame_generator.cc
@@ -24,10 +24,13 @@ namespace ws {
FrameGenerator::FrameGenerator(
FrameGeneratorDelegate* delegate,
+ WindowId root_window_id,
Fady Samuel 2016/10/25 18:18:04 per offline discussion, we just pass in the root w
kylechar 2016/10/26 14:13:16 Done.
scoped_refptr<DisplayCompositor> display_compositor)
: delegate_(delegate),
display_compositor_(display_compositor),
- frame_sink_id_(0, display_compositor->GenerateNextClientId()),
+ frame_sink_id_(
+ WindowIdToTransportId(root_window_id),
+ static_cast<uint32_t>(mojom::CompositorFrameSinkType::DEFAULT)),
draw_timer_(false, false),
weak_factory_(this) {
DCHECK(delegate_);

Powered by Google App Engine
This is Rietveld 408576698