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

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

Issue 2144733005: [WIP] cc: Plumb SurfaceId from clients Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure only SurfaceFactoy and tests can update hierarchy 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 | « services/ui/ws/server_window_surface.cc ('k') | ui/compositor/compositor.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_manager.cc
diff --git a/services/ui/ws/server_window_surface_manager.cc b/services/ui/ws/server_window_surface_manager.cc
index 9f821359a0606b6f0f631d9cccb6f9368c0207e7..7d8934b208456e76d8a4522c2152091fcdb8efa0 100644
--- a/services/ui/ws/server_window_surface_manager.cc
+++ b/services/ui/ws/server_window_surface_manager.cc
@@ -19,7 +19,6 @@ ServerWindowSurfaceManager::ServerWindowSurfaceManager(ServerWindow* window)
waiting_for_initial_frames_(
window_->properties().count(ui::mojom::kWaitForUnderlay_Property) >
0) {
- surface_id_allocator_.RegisterSurfaceClientId(GetSurfaceManager());
}
ServerWindowSurfaceManager::~ServerWindowSurfaceManager() {
@@ -44,13 +43,6 @@ void ServerWindowSurfaceManager::CreateSurface(
mojom::SurfaceClientPtr client) {
std::unique_ptr<ServerWindowSurface> surface(
new ServerWindowSurface(this, std::move(request), std::move(client)));
- if (!HasAnySurface()) {
- // Only one SurfaceFactoryClient can be registered per surface id namespace,
- // so register the first one. Since all surfaces created by this manager
- // represent the same window, the begin frame source can be shared by
- // all surfaces created here.
- surface->RegisterForBeginFrames();
- }
type_to_surface_map_[surface_type] = std::move(surface);
}
« no previous file with comments | « services/ui/ws/server_window_surface.cc ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698