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

Unified Diff: chrome/browser/android/compositor/layer/tab_layer.cc

Issue 2158853004: Do not include toolbar shadow for UIResourceLayer snapshot (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comment Created 4 years, 5 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/layer/tab_layer.cc
diff --git a/chrome/browser/android/compositor/layer/tab_layer.cc b/chrome/browser/android/compositor/layer/tab_layer.cc
index dc16d07239bcfdbcf9fde71e229230081aba8db1..ee2804f00cdab879fd202c67e14eb2ce1b575534 100644
--- a/chrome/browser/android/compositor/layer/tab_layer.cc
+++ b/chrome/browser/android/compositor/layer/tab_layer.cc
@@ -97,6 +97,7 @@ static void PositionPadding(scoped_refptr<cc::SolidColorLayer> padding_layer,
void TabLayer::SetProperties(int id,
bool can_use_live_layer,
int toolbar_resource_id,
+ int toolbar_shadow_resource_id,
int close_button_resource_id,
int shadow_resource_id,
int contour_resource_id,
@@ -144,7 +145,8 @@ void TabLayer::SetProperties(int id,
float toolbar_y_offset,
float side_border_scale,
bool attach_content,
- bool inset_border) {
+ bool inset_border,
+ bool needs_toolbar_shadow) {
if (alpha <= 0) {
layer_->SetHideLayerAndSubtree(true);
return;
@@ -231,13 +233,14 @@ void TabLayer::SetProperties(int id,
// TODO(kkimlabs): Tab switcher doesn't show the progress bar.
toolbar_layer_->PushResource(toolbar_resource_id,
+ toolbar_shadow_resource_id,
toolbar_background_color,
anonymize_toolbar,
toolbar_textbox_background_color,
toolbar_textbox_resource_id,
toolbar_textbox_alpha,
false,
- false);
+ needs_toolbar_shadow);
toolbar_layer_->UpdateProgressBar(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
float toolbar_impact_height = 0;
« no previous file with comments | « chrome/browser/android/compositor/layer/tab_layer.h ('k') | chrome/browser/android/compositor/layer/toolbar_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698