Index: chrome/browser/android/compositor/compositor_view.cc |
diff --git a/chrome/browser/android/compositor/compositor_view.cc b/chrome/browser/android/compositor/compositor_view.cc |
index 4b525711cbc5f59c6f6a1e0f101bafb52872234a..c02579198e6f9569d6092069d0e2a72dc9a9b1a9 100644 |
--- a/chrome/browser/android/compositor/compositor_view.cc |
+++ b/chrome/browser/android/compositor/compositor_view.cc |
@@ -185,10 +185,10 @@ void CompositorView::SetLayoutBounds(JNIEnv* env, |
} |
void CompositorView::SetBackground(bool visible, SkColor color) { |
- if (overlay_video_mode_) |
- visible = false; |
root_layer_->SetBackgroundColor(color); |
root_layer_->SetIsDrawable(visible); |
+ compositor_->SetHasTransparentBackground(SkColorGetA(color) == |
+ SK_AlphaTRANSPARENT); |
} |
void CompositorView::SetOverlayVideoMode(JNIEnv* env, |
@@ -197,7 +197,6 @@ void CompositorView::SetOverlayVideoMode(JNIEnv* env, |
if (overlay_video_mode_ == enabled) |
return; |
overlay_video_mode_ = enabled; |
- compositor_->SetHasTransparentBackground(enabled); |
SetNeedsComposite(env, object); |
} |