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

Side by Side Diff: components/view_manager/surfaces/surfaces_service_application.cc

Issue 1150093003: Move GLES2, GPU & Surfaces into the ViewManager directory. This does not merge the applications, th… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 7 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/view_manager/surfaces/surfaces_service_application.h ('k') | components/view_manager/view_manager_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698