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

Unified Diff: shell/android/apk/src/org/chromium/mojo/shell/VsyncFactory.java

Issue 1977503005: Remove android vsync service on the Android mojo shell. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 | « shell/android/apk/src/org/chromium/mojo/shell/JavaApplicationRegistry.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/android/apk/src/org/chromium/mojo/shell/VsyncFactory.java
diff --git a/shell/android/apk/src/org/chromium/mojo/shell/VsyncFactory.java b/shell/android/apk/src/org/chromium/mojo/shell/VsyncFactory.java
deleted file mode 100644
index c050af31be37a1de98c4b0c45a2c914d4a2205e7..0000000000000000000000000000000000000000
--- a/shell/android/apk/src/org/chromium/mojo/shell/VsyncFactory.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2015 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.
-
-package org.chromium.mojo.shell;
-
-import android.os.Handler;
-import android.os.Looper;
-
-import org.chromium.mojo.application.ServiceFactoryBinder;
-import org.chromium.mojo.bindings.InterfaceRequest;
-import org.chromium.mojo.vsync.VSyncProviderImpl;
-import org.chromium.mojom.vsync.VSyncProvider;
-
-/**
- * A ServiceFactoryBinder for the vsync service.
- */
-final class VsyncFactory implements ServiceFactoryBinder<VSyncProvider> {
- private final Handler mHandler;
-
- public VsyncFactory(Looper looper) {
- mHandler = new Handler(looper);
- }
-
- @Override
- public void bind(final InterfaceRequest<VSyncProvider> request) {
- mHandler.post(new Runnable() {
- @Override
- public void run() {
- VSyncProviderImpl implementation = new VSyncProviderImpl();
- implementation.setBinding(VSyncProvider.MANAGER.bind(implementation, request));
- }
- });
- }
-
- @Override
- public String getInterfaceName() {
- return VSyncProvider.MANAGER.getName();
- }
-}
« no previous file with comments | « shell/android/apk/src/org/chromium/mojo/shell/JavaApplicationRegistry.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698