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

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

Issue 2445873003: Pass root ServerWindow id to FrameGenerator. (Closed)
Patch Set: Address nits. 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
« no previous file with comments | « services/ui/ws/frame_generator.h ('k') | services/ui/ws/frame_generator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..feedf2bd28a0cf5366a92b1afb203f3c13f7aa9f 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,
+ ServerWindow* root_window,
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_);
« no previous file with comments | « services/ui/ws/frame_generator.h ('k') | services/ui/ws/frame_generator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698