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

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

Issue 2414683003: Mus+Ash: propagate Surface ID to parents (Closed)
Patch Set: Don't follow null surface_info 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/server_window_surface.h ('k') | services/ui/ws/test_change_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/server_window_surface.cc
diff --git a/services/ui/ws/server_window_surface.cc b/services/ui/ws/server_window_surface.cc
index 48f4fd588b6a5129d2f6d694c6398341e7f11411..01de6021a8ed06c1b95be5dd8b4bc29e37ed9162 100644
--- a/services/ui/ws/server_window_surface.cc
+++ b/services/ui/ws/server_window_surface.cc
@@ -30,6 +30,7 @@ ServerWindowSurface::ServerWindowSurface(
cc::SurfaceManager* surface_manager = manager_->GetSurfaceManager();
surface_manager->RegisterFrameSinkId(frame_sink_id_);
surface_manager->RegisterSurfaceFactoryClient(frame_sink_id_, this);
+ surface_sequence_generator_.set_frame_sink_id(frame_sink_id_);
}
ServerWindowSurface::~ServerWindowSurface() {
@@ -68,6 +69,10 @@ cc::SurfaceId ServerWindowSurface::GetSurfaceId() const {
return cc::SurfaceId(frame_sink_id_, local_frame_id_);
}
+cc::SurfaceSequence ServerWindowSurface::CreateSurfaceSequence() {
+ return surface_sequence_generator_.CreateSurfaceSequence();
+}
+
ServerWindow* ServerWindowSurface::window() {
return manager_->window();
}
« no previous file with comments | « services/ui/ws/server_window_surface.h ('k') | services/ui/ws/test_change_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698