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
3 // found in the LICENSE file.
5 #include "mojo/services/surfaces/surfaces_service_application.h"
7 #include "cc/surfaces/display.h"
11 SurfacesServiceApplication::SurfacesServiceApplication()
12 : next_id_namespace_(1u), display_(NULL) {
15 SurfacesServiceApplication::~SurfacesServiceApplication() {
18 bool SurfacesServiceApplication::ConfigureIncomingConnection(
19 ApplicationConnection* connection) {
20 connection->AddService(this);
24 void SurfacesServiceApplication::Create(ApplicationConnection* connection,
25 InterfaceRequest<Surface> request) {
26 BindToRequest(new SurfacesImpl(&manager_, next_id_namespace_++, this),
30 void SurfacesServiceApplication::FrameSubmitted() {
35 void SurfacesServiceApplication::SetDisplay(cc::Display* display) {
40 ApplicationDelegate* ApplicationDelegate::Create() {
41 return new SurfacesServiceApplication;