summaryrefslogtreecommitdiffstats
path: root/content/public
diff options
context:
space:
mode:
authorskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-13 22:41:24 +0000
committerskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-13 22:41:24 +0000
commit8b1d93f6c21d59608846d23fbb1c69b5bd5f5412 (patch)
treeb79eb7074686dc8b588e5154a7909bcad12d99d1 /content/public
parent10507b335b0dd318390ac7a6c02c4922afb587e3 (diff)
downloadchromium_src-8b1d93f6c21d59608846d23fbb1c69b5bd5f5412.zip
chromium_src-8b1d93f6c21d59608846d23fbb1c69b5bd5f5412.tar.gz
chromium_src-8b1d93f6c21d59608846d23fbb1c69b5bd5f5412.tar.bz2
[Android] Notify ContentViewCore about pending renderer frames
Notify ContentViewCore whenever the renderer has produced a new frame which should be displayed by the browser compositor. The browser compositor will use this information to decide whether to run immediately or at the next vsync interval. Review URL: https://chromiumcodereview.appspot.com/11416357 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172983 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public')
-rw-r--r--content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java12
1 files changed, 12 insertions, 0 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 9dd1fe7..9ad2f95 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
@@ -773,6 +773,16 @@ public class ContentViewCore implements MotionEventDelegate {
false : nativeIsShowingInterstitialPage(mNativeContentViewCore);
}
+ /**
+ * Indicate that the browser compositor has consumed a pending renderer frame.
+ *
+ * @return Whether there was a pending renderer frame.
+ */
+ public boolean consumePendingRendererFrame() {
+ return mNativeContentViewCore == 0 ?
+ false : nativeConsumePendingRendererFrame(mNativeContentViewCore);
+ }
+
@CalledByNative
public int getWidth() {
return mViewportWidth;
@@ -2395,6 +2405,8 @@ public class ContentViewCore implements MotionEventDelegate {
int nativeContentViewCoreImpl, String url, int nativeInterstitialPageDelegateAndroid);
private native boolean nativeIsShowingInterstitialPage(int nativeContentViewCoreImpl);
+ private native boolean nativeConsumePendingRendererFrame(int nativeContentViewCoreImpl);
+
private native boolean nativeIsIncognito(int nativeContentViewCoreImpl);
// Returns true if the native side crashed so that java side can draw a sad tab.