summaryrefslogtreecommitdiffstats
path: root/content/public
diff options
context:
space:
mode:
authordtrainor <dtrainor@chromium.org>2014-08-26 14:15:08 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-26 21:16:34 +0000
commite3ed0e0a71cff087bb2a9a082c16ca3617966d7c (patch)
tree53889400ad2de9a85a5887efe11388c80500a9fb /content/public
parent22317f423d71cce75c689fcd184e58d4169188d5 (diff)
downloadchromium_src-e3ed0e0a71cff087bb2a9a082c16ca3617966d7c.zip
chromium_src-e3ed0e0a71cff087bb2a9a082c16ca3617966d7c.tar.gz
chromium_src-e3ed0e0a71cff087bb2a9a082c16ca3617966d7c.tar.bz2
[Android] Expose method for UI to force composites
Allow the ContentViewRenderView to request composites if UX components require it. BUG=387177 Review URL: https://codereview.chromium.org/504553002 Cr-Commit-Position: refs/heads/master@{#291982}
Diffstat (limited to 'content/public')
-rw-r--r--content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
index 97949f3..63c6c04 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
@@ -148,6 +148,15 @@ public class ContentViewRenderView extends FrameLayout {
}
/**
+ * Trigger a redraw of the compositor. This is only needed if the UI changes something that
+ * does not trigger a redraw itself by updating the layer tree.
+ */
+ public void setNeedsComposite() {
+ if (mNativeContentViewRenderView == 0) return;
+ nativeSetNeedsComposite(mNativeContentViewRenderView);
+ }
+
+ /**
* This method should be subclassed to provide actions to be performed once the view is ready to
* render.
*/
@@ -216,4 +225,5 @@ public class ContentViewRenderView extends FrameLayout {
int format, int width, int height, Surface surface);
private native void nativeSetOverlayVideoMode(long nativeContentViewRenderView,
boolean enabled);
+ private native void nativeSetNeedsComposite(long nativeContentViewRenderView);
}