Index: content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java |
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 97949f36abf62a6c78666b22d6058a7ece1f929d..63c6c04fcacb41d9e7d386a8557a14de9b065dd9 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); |
} |