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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/VSyncManager.java

Issue 236193013: Android: Consolidate and simplify VSync logic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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: content/public/android/java/src/org/chromium/content/browser/VSyncManager.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/VSyncManager.java b/content/public/android/java/src/org/chromium/content/browser/VSyncManager.java
deleted file mode 100644
index a152b41a32a56569c79ef2765c57d8c43d229677..0000000000000000000000000000000000000000
--- a/content/public/android/java/src/org/chromium/content/browser/VSyncManager.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2013 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.content.browser;
-
-public abstract class VSyncManager {
- /**
- * Interface for requesting notification of the display vsync signal. The provider will call
- * Listener.onVSync() to notify about vsync. The number of registrations and unregistrations of
- * a given listener must be balanced.
- */
- public static interface Provider {
- void registerVSyncListener(Listener listener);
- void unregisterVSyncListener(Listener listener);
- }
-
- /**
- * Interface for receiving vsync notifications and information about the display refresh
- * interval.
- */
- public static interface Listener {
- /**
- * Notification of a vsync event.
- * @param frameTimeMicros The latest vsync frame time in microseconds.
- */
- void onVSync(long frameTimeMicros);
-
- /**
- * Update with the latest vsync parameters.
- * @param tickTimeMicros The latest vsync tick time in microseconds.
- * @param intervalMicros The vsync interval in microseconds.
- */
- void updateVSync(long tickTimeMicros, long intervalMicros);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698