| 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);
|
| }
|
|
|
|
|