Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Unified Diff: content/browser/android/content_view_render_view.cc

Issue 504553002: [Android] Expose method for UI to force composites (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/android/content_view_render_view.cc
diff --git a/content/browser/android/content_view_render_view.cc b/content/browser/android/content_view_render_view.cc
index 06590fa7513c75d2319d10ff27c163cab691f560..c72c706b11ae75cf4e17881578b1f6bc3741eb7a 100644
--- a/content/browser/android/content_view_render_view.cc
+++ b/content/browser/android/content_view_render_view.cc
@@ -120,6 +120,11 @@ void ContentViewRenderView::SurfaceChanged(JNIEnv* env, jobject obj,
void ContentViewRenderView::SetOverlayVideoMode(
JNIEnv* env, jobject obj, bool enabled) {
compositor_->SetHasTransparentBackground(enabled);
+ SetNeedsComposite(env, obj);
Ted C 2014/08/23 00:47:11 was this missing from before?
no sievers 2014/08/25 17:20:42 am also wondering why this is needed
David Trainor- moved to gerrit 2014/08/25 17:30:05 I saw we had this in CompositorView and assumed us
+}
+
+void ContentViewRenderView::SetNeedsComposite(JNIEnv* env, jobject obj) {
+ compositor_->SetNeedsComposite();
}
void ContentViewRenderView::Layout() {

Powered by Google App Engine
This is Rietveld 408576698