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

Unified Diff: mojo/services/surfaces/surfaces_service_application.h

Issue 771043002: Move surfaces service implementation to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « mojo/services/surfaces/surfaces_impl.cc ('k') | mojo/services/surfaces/surfaces_service_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/surfaces/surfaces_service_application.h
diff --git a/mojo/services/surfaces/surfaces_service_application.h b/mojo/services/surfaces/surfaces_service_application.h
deleted file mode 100644
index 50127301371d2a46ff1221664ad739a800772adb..0000000000000000000000000000000000000000
--- a/mojo/services/surfaces/surfaces_service_application.h
+++ /dev/null
@@ -1,54 +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.
-
-#ifndef MOJO_SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_
-#define MOJO_SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_
-
-#include "base/macros.h"
-#include "base/timer/timer.h"
-#include "cc/surfaces/surface_manager.h"
-#include "mojo/public/cpp/application/application_delegate.h"
-#include "mojo/public/cpp/application/interface_factory.h"
-#include "mojo/services/public/interfaces/surfaces/surfaces_service.mojom.h"
-#include "mojo/services/surfaces/surfaces_impl.h"
-
-namespace mojo {
-class ApplicationConnection;
-
-class SurfacesServiceApplication : public ApplicationDelegate,
- public InterfaceFactory<SurfacesService>,
- public SurfacesImpl::Client {
- public:
- SurfacesServiceApplication();
- ~SurfacesServiceApplication() override;
-
- // ApplicationDelegate implementation.
- void Initialize(ApplicationImpl* app) override;
- bool ConfigureIncomingConnection(ApplicationConnection* connection) override;
-
- // InterfaceFactory<SurfacsServicee> implementation.
- void Create(ApplicationConnection* connection,
- InterfaceRequest<SurfacesService> request) override;
-
- // SurfacesImpl::Client implementation.
- void OnVSyncParametersUpdated(base::TimeTicks timebase,
- base::TimeDelta interval) override;
- void FrameSubmitted() override;
- void SetDisplay(cc::Display*) override;
- void OnDisplayBeingDestroyed(cc::Display* display) override;
-
- private:
- base::TimeDelta tick_interval_;
- cc::SurfaceManager manager_;
- uint32_t next_id_namespace_;
- cc::Display* display_;
- // TODO(jamesr): Integrate with real scheduler.
- base::Timer draw_timer_;
-
- DISALLOW_COPY_AND_ASSIGN(SurfacesServiceApplication);
-};
-
-} // namespace mojo
-
-#endif // MOJO_SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_
« no previous file with comments | « mojo/services/surfaces/surfaces_impl.cc ('k') | mojo/services/surfaces/surfaces_service_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698