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..238e7e6b05cb159fc4703593f7b854b2d8e6f70d 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,14 @@ public class ContentViewRenderView extends FrameLayout { |
} |
/** |
+ * This method should only be called if something in the UI requires a redraw of the compositor. |
Ted C
2014/08/23 00:47:11
Hmm...I would phrase this more as:
"Trigger a red
David Trainor- moved to gerrit
2014/08/25 17:30:05
Done.
|
+ */ |
+ 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 +224,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); |
} |