OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/surfaces/surfaces_service_application.h" | 5 #include "components/view_manager/surfaces/surfaces_service_application.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "components/surfaces/display_factory_impl.h" | 8 #include "components/view_manager/surfaces/display_factory_impl.h" |
9 #include "components/surfaces/surfaces_impl.h" | 9 #include "components/view_manager/surfaces/surfaces_impl.h" |
10 #include "components/surfaces/surfaces_scheduler.h" | 10 #include "components/view_manager/surfaces/surfaces_scheduler.h" |
11 | 11 |
12 namespace surfaces { | 12 namespace surfaces { |
13 | 13 |
14 SurfacesServiceApplication::SurfacesServiceApplication() | 14 SurfacesServiceApplication::SurfacesServiceApplication() |
15 : next_id_namespace_(1u) { | 15 : next_id_namespace_(1u) { |
16 } | 16 } |
17 | 17 |
18 SurfacesServiceApplication::~SurfacesServiceApplication() { | 18 SurfacesServiceApplication::~SurfacesServiceApplication() { |
19 // Make a copy of the sets before deleting them because their destructor will | 19 // Make a copy of the sets before deleting them because their destructor will |
20 // call back into this class to remove them from the set. | 20 // call back into this class to remove them from the set. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 void SurfacesServiceApplication::DisplayDestroyed(DisplayImpl* display) { | 58 void SurfacesServiceApplication::DisplayDestroyed(DisplayImpl* display) { |
59 displays_.erase(display); | 59 displays_.erase(display); |
60 } | 60 } |
61 | 61 |
62 void SurfacesServiceApplication::SurfaceDestroyed(SurfacesImpl* surface) { | 62 void SurfacesServiceApplication::SurfaceDestroyed(SurfacesImpl* surface) { |
63 surfaces_.erase(surface); | 63 surfaces_.erase(surface); |
64 } | 64 } |
65 | 65 |
66 } // namespace surfaces | 66 } // namespace surfaces |
OLD | NEW |