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

Unified Diff: ui/android/java/src/org/chromium/ui/base/WindowAndroid.java

Issue 239963002: Android: Move scheduling logic to CompositorImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | « content/public/browser/android/compositor_client.h ('k') | ui/base/android/window_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
diff --git a/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java b/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
index 8be2dd075572f4c8cb7bbf7adab808f6b9d9f7c0..4a68dea73363a0aeaf0eb46ead8c000781be06ea 100644
--- a/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
+++ b/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
@@ -32,7 +32,6 @@ public class WindowAndroid {
// Native pointer to the c++ WindowAndroid object.
private long mNativeWindowAndroid = 0;
private final VSyncMonitor mVSyncMonitor;
- private VSyncClient mVSyncClient = null;
// A string used as a key to store intent errors in a bundle
static final String WINDOW_CALLBACK_ERRORS = "window_callback_errors";
@@ -51,9 +50,6 @@ public class WindowAndroid {
private final VSyncMonitor.Listener mVSyncListener = new VSyncMonitor.Listener() {
@Override
public void onVSync(VSyncMonitor monitor, long vsyncTimeMicros) {
- if (mVSyncClient != null) {
- mVSyncClient.onVSync(vsyncTimeMicros);
- }
if (mNativeWindowAndroid != 0) {
nativeOnVSync(mNativeWindowAndroid, vsyncTimeMicros);
}
@@ -231,34 +227,9 @@ public class WindowAndroid {
return false;
}
- /**
- * An interface to receive VSync notifications from the window.
- * The one and only client is set with setVSyncClient(client).
- */
- public interface VSyncClient {
- /**
- * Called very soon after the start of the display's vertical sync period.
- * @param vsyncTimeMicros Absolute frame time in microseconds.
- */
- void onVSync(long vsyncTimeMicros);
- }
-
- /**
- * Sets the VSyncClient.
- * @param client The client receiving VSync notifications.
- */
- public void setVSyncClient(VSyncClient client) {
- assert mVSyncClient == null || client == null;
- mVSyncClient = client;
- }
-
- /**
- * Request a VSync callback.
- * VSyncClient.onVSync() will be called at least once.
- */
@CalledByNative
- public void requestVSyncUpdate() {
- mVSyncMonitor.requestUpdate();
+ private void requestVSyncUpdate() {
+ mVSyncMonitor.requestUpdate();
}
/**
« no previous file with comments | « content/public/browser/android/compositor_client.h ('k') | ui/base/android/window_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698