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

Unified Diff: services/ui/surfaces/display_compositor.cc

Issue 2166423002: ui::ContextFactory should not create SurfaceIdAllocators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nit Created 4 years, 5 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 | « content/test/test_render_view_host.cc ('k') | services/ui/ws/server_window_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/surfaces/display_compositor.cc
diff --git a/services/ui/surfaces/display_compositor.cc b/services/ui/surfaces/display_compositor.cc
index b1a3024aac7dcec485a288812efdb8ed9246a94a..c6679dfec2f20cf7ff02126147f03069a46bfe03 100644
--- a/services/ui/surfaces/display_compositor.cc
+++ b/services/ui/surfaces/display_compositor.cc
@@ -31,7 +31,7 @@ DisplayCompositor::DisplayCompositor(
surfaces_state_(surfaces_state),
factory_(surfaces_state->manager(), this),
allocator_(surfaces_state->next_client_id()) {
- allocator_.RegisterSurfaceClientId(surfaces_state_->manager());
+ surfaces_state_->manager()->RegisterSurfaceClientId(allocator_.client_id());
surfaces_state_->manager()->RegisterSurfaceFactoryClient(
allocator_.client_id(), this);
@@ -78,6 +78,7 @@ DisplayCompositor::DisplayCompositor(
DisplayCompositor::~DisplayCompositor() {
surfaces_state_->manager()->UnregisterSurfaceFactoryClient(
allocator_.client_id());
+ surfaces_state_->manager()->InvalidateSurfaceClientId(allocator_.client_id());
}
void DisplayCompositor::SubmitCompositorFrame(
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | services/ui/ws/server_window_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698