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

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

Issue 11362177: Replace VSyncMonitor with compositor's VSyncPulseMonitor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: findbugs Created 8 years, 1 month 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/ContentViewCore.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
index 97a72d57e7b2640f1491f85086cd13a52475c000..aa5956950fb1d677ff1cc82fe91b35127d6515a9 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
@@ -535,7 +535,7 @@ public class ContentViewCore implements MotionEventDelegate {
mImeAdapter = createImeAdapter(mContext);
mKeyboardConnected = mContainerView.getResources().getConfiguration().keyboard
!= Configuration.KEYBOARD_NOKEYS;
- mVSyncMonitor = new VSyncMonitor(mContext, mContainerView, mVSyncListener);
+ mVSyncMonitor = new VSyncMonitor(mContext, mVSyncListener);
TraceEvent.end();
}
@@ -588,12 +588,12 @@ public class ContentViewCore implements MotionEventDelegate {
*/
public void destroy() {
hidePopupDialog();
+ if (mVSyncMonitor != null) mVSyncMonitor.unregisterListener();
if (mNativeContentViewCore != 0) {
nativeOnJavaContentViewCoreDestroyed(mNativeContentViewCore);
}
mNativeContentViewCore = 0;
mContentSettings = null;
- mVSyncMonitor.stop();
}
/**

Powered by Google App Engine
This is Rietveld 408576698