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

Unified Diff: chrome/browser/android/compositor/compositor_view.cc

Issue 1268483004: Plumb the anonymize rect color to toolbar_layer from Tab#getThemeColor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tabHasThemeColor
Patch Set: Created 5 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: 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 b4d0f6f1f8cd8c71e05f0cd8bf5c12124f6647c7..71934589a687aaf3c9bd474c8421967d3403599b 100644
--- a/chrome/browser/android/compositor/compositor_view.cc
+++ b/chrome/browser/android/compositor/compositor_view.cc
@@ -258,7 +258,7 @@ void CompositorView::UpdateToolbarLayer(JNIEnv* env,
toolbar_layer_->layer()->SetHideLayerAndSubtree(!visible);
if (visible) {
toolbar_layer_->layer()->SetPosition(gfx::PointF(0, top_offset));
- toolbar_layer_->PushResource(resource, false, false, false);
+ toolbar_layer_->PushResource(resource, false, SK_ColorWHITE, false);
// If we're at rest, hide the shadow. The Android view should be drawing.
toolbar_layer_->layer()->SetMasksToBounds(top_offset >= 0.f);

Powered by Google App Engine
This is Rietveld 408576698