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

Unified Diff: components/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/surfaces/surfaces_service_application.h ('k') | components/view_manager/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/surfaces/surfaces_service_application.cc
diff --git a/components/surfaces/surfaces_service_application.cc b/components/surfaces/surfaces_service_application.cc
deleted file mode 100644
index 38a293a7bffb00c580c6b9e67563a3ec2710e9d6..0000000000000000000000000000000000000000
--- a/components/surfaces/surfaces_service_application.cc
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/surfaces/surfaces_service_application.h"
-
-#include "base/stl_util.h"
-#include "components/surfaces/display_factory_impl.h"
-#include "components/surfaces/surfaces_impl.h"
-#include "components/surfaces/surfaces_scheduler.h"
-
-namespace surfaces {
-
-SurfacesServiceApplication::SurfacesServiceApplication()
- : next_id_namespace_(1u) {
-}
-
-SurfacesServiceApplication::~SurfacesServiceApplication() {
- // Make a copy of the sets before deleting them because their destructor will
- // call back into this class to remove them from the set.
- auto displays = displays_;
- STLDeleteElements(&displays);
- auto surfaces = surfaces_;
- STLDeleteElements(&surfaces);
-}
-
-void SurfacesServiceApplication::Initialize(mojo::ApplicationImpl* app) {
- tracing_.Initialize(app);
- scheduler_.reset(new SurfacesScheduler);
-}
-
-bool SurfacesServiceApplication::ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) {
- connection->AddService<mojo::DisplayFactory>(this);
- connection->AddService<mojo::Surface>(this);
- return true;
-}
-
-void SurfacesServiceApplication::Create(
- mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<mojo::DisplayFactory> request) {
- new DisplayFactoryImpl(this, &manager_, next_id_namespace_++,
- scheduler_.get(), request.Pass());
-}
-
-void SurfacesServiceApplication::Create(
- mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<mojo::Surface> request) {
- surfaces_.insert(
- new SurfacesImpl(this, &manager_, next_id_namespace_++, scheduler_.get(),
- request.Pass()));
-}
-
-void SurfacesServiceApplication::DisplayCreated(DisplayImpl* display) {
- displays_.insert(display);
-}
-
-void SurfacesServiceApplication::DisplayDestroyed(DisplayImpl* display) {
- displays_.erase(display);
-}
-
-void SurfacesServiceApplication::SurfaceDestroyed(SurfacesImpl* surface) {
- surfaces_.erase(surface);
-}
-
-} // namespace surfaces
« no previous file with comments | « components/surfaces/surfaces_service_application.h ('k') | components/view_manager/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698