Chromium Code Reviews| Index: ui/android/java/src/org/chromium/ui/VSyncMonitor.java |
| diff --git a/content/public/android/java/src/org/chromium/content/browser/VSyncMonitor.java b/ui/android/java/src/org/chromium/ui/VSyncMonitor.java |
| similarity index 95% |
| rename from content/public/android/java/src/org/chromium/content/browser/VSyncMonitor.java |
| rename to ui/android/java/src/org/chromium/ui/VSyncMonitor.java |
| index ce9f36dfd45b08e18b8ff184894575ac105f6f47..df907a16fc6679a954d04f8190e77b14e80e4422 100644 |
| --- a/content/public/android/java/src/org/chromium/content/browser/VSyncMonitor.java |
| +++ b/ui/android/java/src/org/chromium/ui/VSyncMonitor.java |
| @@ -1,8 +1,8 @@ |
| -// Copyright 2012 The Chromium Authors. All rights reserved. |
| +// 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. |
| -package org.chromium.content.browser; |
| +package org.chromium.ui; |
| import android.content.Context; |
| import android.os.Build; |
| @@ -65,7 +65,7 @@ public class VSyncMonitor { |
| this(context, listener, true); |
| } |
| - VSyncMonitor(Context context, VSyncMonitor.Listener listener, boolean enableJBVSync) { |
| + public VSyncMonitor(Context context, VSyncMonitor.Listener listener, boolean enableJBVSync) { |
|
David Trainor- moved to gerrit
2014/04/16 06:18:20
want to take a stab at these constructor javadocs?
no sievers
2014/04/25 22:23:33
Done.
|
| mListener = listener; |
| float refreshRate = ((WindowManager) context.getSystemService(Context.WINDOW_SERVICE)) |
| .getDefaultDisplay().getRefreshRate(); |
| @@ -123,7 +123,7 @@ public class VSyncMonitor { |
| /** |
| * Determine whether a true vsync signal is available on this platform. |
| */ |
| - public boolean isVSyncSignalAvailable() { |
| + private boolean isVSyncSignalAvailable() { |
| return mChoreographer != null; |
| } |
| @@ -136,15 +136,6 @@ public class VSyncMonitor { |
| } |
| /** |
| - * Unregister the listener. |
| - * No vsync events will be reported afterwards. |
| - */ |
| - public void unregisterListener() { |
| - stop(); |
| - mListener = null; |
| - } |
| - |
| - /** |
| * Request to be notified of the closest display vsync events. |
| * Listener.onVSync() will be called soon after the upcoming vsync pulses. |
| * It will be called at most MAX_AUTO_ONVSYNC_COUNT times unless requestUpdate() is called. |