diff options
author | aruslan@chromium.org <aruslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-07 00:16:57 +0000 |
---|---|---|
committer | aruslan@chromium.org <aruslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-07 00:16:57 +0000 |
commit | f416753deb25830b2bfd1b4bc8fb55adeb13ee38 (patch) | |
tree | a3665e1f62ff1a324e19f4815c7ee4b877861694 /content/public | |
parent | da06d1d49dec2c655db70f8cd3346d67ad66be1f (diff) | |
download | chromium_src-f416753deb25830b2bfd1b4bc8fb55adeb13ee38.zip chromium_src-f416753deb25830b2bfd1b4bc8fb55adeb13ee38.tar.gz chromium_src-f416753deb25830b2bfd1b4bc8fb55adeb13ee38.tar.bz2 |
Remove VSyncMonitor from ContentViewCore
The true VSyncMonitor is hosted by CompositorViewHolder.
BUG=164616
Review URL: https://chromiumcodereview.appspot.com/11476002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public')
-rw-r--r-- | content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java | 30 |
1 files changed, 0 insertions, 30 deletions
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 ec22ebd..a5677d1 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 @@ -150,15 +150,6 @@ public class ContentViewCore implements MotionEventDelegate { private boolean mAttachedToWindow = false; - // The vsync monitor is used to lock the compositor to the display refresh rate. - private VSyncMonitor mVSyncMonitor; - - // The VSyncMonitor gives the timebase for the actual vsync, but we don't want render until - // we have had a chance for input events to propagate to the compositor thread. This takes - // 3 ms typically, so we adjust the vsync timestamps forward by a bit to give input events a - // chance to arrive. - private static final long INPUT_EVENT_LAG_FROM_VSYNC_MICROSECONDS = 3200; - private ContentViewGestureHandler mContentViewGestureHandler; private ZoomManager mZoomManager; @@ -211,23 +202,6 @@ public class ContentViewCore implements MotionEventDelegate { // Whether a physical keyboard is connected. private boolean mKeyboardConnected; - private final VSyncMonitor.Listener mVSyncListener = new VSyncMonitor.Listener() { - @Override - public void onVSync(VSyncMonitor monitor, long vsyncTimeMicros) { - TraceEvent.instant("VSync"); - if (mNativeContentViewCore == 0 || mVSyncMonitor == null) { - return; - } - // Compensate for input event lag. Input events are delivered immediately on pre-JB - // releases, so this adjustment is only done for later versions. - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { - vsyncTimeMicros += INPUT_EVENT_LAG_FROM_VSYNC_MICROSECONDS; - } - nativeUpdateVSyncParameters(mNativeContentViewCore, vsyncTimeMicros, - mVSyncMonitor.getVSyncPeriodInMicroseconds()); - } - }; - // The AccessibilityInjector that handles loading Accessibility scripts into the web page. private AccessibilityInjector mAccessibilityInjector; @@ -561,7 +535,6 @@ public class ContentViewCore implements MotionEventDelegate { mImeAdapter = createImeAdapter(mContext); mKeyboardConnected = mContainerView.getResources().getConfiguration().keyboard != Configuration.KEYBOARD_NOKEYS; - mVSyncMonitor = new VSyncMonitor(mContext, mVSyncListener); TraceEvent.end(); } @@ -614,7 +587,6 @@ public class ContentViewCore implements MotionEventDelegate { */ public void destroy() { hidePopupDialog(); - if (mVSyncMonitor != null) mVSyncMonitor.unregisterListener(); if (mNativeContentViewCore != 0) { nativeOnJavaContentViewCoreDestroyed(mNativeContentViewCore); } @@ -1051,7 +1023,6 @@ public class ContentViewCore implements MotionEventDelegate { nativeOnHide(mNativeContentViewCore); setAccessibilityState(false); TraceEvent.end(); - mVSyncMonitor.stop(); } /** @@ -1077,7 +1048,6 @@ public class ContentViewCore implements MotionEventDelegate { hidePopupDialog(); setAccessibilityState(false); nativeOnHide(mNativeContentViewCore); - mVSyncMonitor.stop(); } /** |