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

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
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..8ab60d0e0cc66d3bf2e2bafb8376dda045fcc8d1 100644
--- a/services/surfaces/surfaces_service_application.h
+++ b/services/surfaces/surfaces_service_application.h
@@ -11,6 +11,8 @@
#include "mojo/common/tracing_impl.h"
#include "mojo/public/cpp/application/application_delegate.h"
#include "mojo/public/cpp/application/interface_factory.h"
+#include "mojo/services/surfaces/public/interfaces/display.mojom.h"
+#include "services/surfaces/display_impl.h"
#include "services/surfaces/surfaces_impl.h"
#include "services/surfaces/surfaces_scheduler.h"
@@ -22,7 +24,9 @@ namespace surfaces {
class SurfacesServiceApplication
: public mojo::ApplicationDelegate,
+ public mojo::InterfaceFactory<mojo::DisplayFactory>,
public mojo::InterfaceFactory<mojo::Surface>,
+ public DisplayImpl::Client,
public SurfacesImpl::Client,
public SurfacesScheduler::Client {
public:
@@ -34,11 +38,15 @@ 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.
+ // DisplayImpl::Client implementation.
void OnVSyncParametersUpdated(base::TimeTicks timebase,
base::TimeDelta interval) override;
void FrameSubmitted() override;

Powered by Google App Engine
This is Rietveld 408576698