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

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

Issue 687433002: Remove mojo/shell and (most) service implementations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove mojo/gles2, disable mojo apps in component build Created 6 years, 2 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: mojo/services/surfaces/surfaces_service_application.cc
diff --git a/mojo/services/surfaces/surfaces_service_application.cc b/mojo/services/surfaces/surfaces_service_application.cc
deleted file mode 100644
index 8677be475f884db3336303ddf61190153d0cb3a9..0000000000000000000000000000000000000000
--- a/mojo/services/surfaces/surfaces_service_application.cc
+++ /dev/null
@@ -1,53 +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 "mojo/services/surfaces/surfaces_service_application.h"
-
-#include "cc/surfaces/display.h"
-
-#include "mojo/application/application_runner_chromium.h"
-#include "mojo/public/c/system/main.h"
-#include "mojo/services/surfaces/surfaces_service_impl.h"
-
-namespace mojo {
-
-SurfacesServiceApplication::SurfacesServiceApplication()
- : next_id_namespace_(1u), display_(NULL), draw_timer_(false, false) {
-}
-
-SurfacesServiceApplication::~SurfacesServiceApplication() {
-}
-
-bool SurfacesServiceApplication::ConfigureIncomingConnection(
- ApplicationConnection* connection) {
- connection->AddService(this);
- return true;
-}
-
-void SurfacesServiceApplication::Create(
- ApplicationConnection* connection,
- InterfaceRequest<SurfacesService> request) {
- BindToRequest(new SurfacesServiceImpl(&manager_, &next_id_namespace_, this),
- &request);
-}
-
-void SurfacesServiceApplication::FrameSubmitted() {
- if (!draw_timer_.IsRunning() && display_) {
- draw_timer_.Start(FROM_HERE,
- base::TimeDelta::FromMilliseconds(17),
- base::Bind(base::IgnoreResult(&cc::Display::Draw),
- base::Unretained(display_)));
- }
-}
-
-void SurfacesServiceApplication::SetDisplay(cc::Display* display) {
- display_ = display;
-}
-
-} // namespace mojo
-
-MojoResult MojoMain(MojoHandle shell_handle) {
- mojo::ApplicationRunnerChromium runner(new mojo::SurfacesServiceApplication);
- return runner.Run(shell_handle);
-}
« no previous file with comments | « mojo/services/surfaces/surfaces_service_application.h ('k') | mojo/services/surfaces/surfaces_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698