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

Unified Diff: services/surfaces/surfaces_service_application.h

Issue 940293003: Add a Display and ContextProvider concept to mojom, use to recreate (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « services/surfaces/surfaces_scheduler.cc ('k') | services/surfaces/surfaces_service_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/surfaces/surfaces_service_application.h
diff --git a/services/surfaces/surfaces_service_application.h b/services/surfaces/surfaces_service_application.h
index d3d9fa82c21656f0021bb39a15b5012085458073..092696fa815ffcf6944cd90ea93b09006c1918d5 100644
--- a/services/surfaces/surfaces_service_application.h
+++ b/services/surfaces/surfaces_service_application.h
@@ -6,25 +6,24 @@
#define SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_
#include "base/macros.h"
-#include "base/timer/timer.h"
#include "cc/surfaces/surface_manager.h"
#include "mojo/common/tracing_impl.h"
#include "mojo/public/cpp/application/application_delegate.h"
#include "mojo/public/cpp/application/interface_factory.h"
-#include "services/surfaces/surfaces_impl.h"
-#include "services/surfaces/surfaces_scheduler.h"
+#include "mojo/services/surfaces/public/interfaces/display.mojom.h"
+#include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h"
namespace mojo {
class ApplicationConnection;
}
namespace surfaces {
+class SurfacesScheduler;
class SurfacesServiceApplication
: public mojo::ApplicationDelegate,
- public mojo::InterfaceFactory<mojo::Surface>,
- public SurfacesImpl::Client,
- public SurfacesScheduler::Client {
+ public mojo::InterfaceFactory<mojo::DisplayFactory>,
+ public mojo::InterfaceFactory<mojo::Surface> {
public:
SurfacesServiceApplication();
~SurfacesServiceApplication() override;
@@ -34,24 +33,17 @@ class SurfacesServiceApplication
bool ConfigureIncomingConnection(
mojo::ApplicationConnection* connection) override;
+ // InterfaceFactory<DisplayFactory> implementation.
+ void Create(mojo::ApplicationConnection* connection,
+ mojo::InterfaceRequest<mojo::DisplayFactory> request) override;
+
// InterfaceFactory<Surface> implementation.
void Create(mojo::ApplicationConnection* connection,
mojo::InterfaceRequest<mojo::Surface> 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;
-
- // SurfacesScheduler::Client
- void Draw() override;
-
private:
cc::SurfaceManager manager_;
uint32_t next_id_namespace_;
- cc::Display* display_;
scoped_ptr<SurfacesScheduler> scheduler_;
mojo::TracingImpl tracing_;
« no previous file with comments | « services/surfaces/surfaces_scheduler.cc ('k') | services/surfaces/surfaces_service_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698