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

Unified Diff: chrome/browser/android/compositor/layer/toolbar_layer.h

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/toolbar_layer.h
diff --git a/chrome/browser/android/compositor/layer/toolbar_layer.h b/chrome/browser/android/compositor/layer/toolbar_layer.h
index 50e2bb962955f160421a516017a667e57cb209ba..c1a515a6e490b648121cc87ca1e535e2f911e3c8 100644
--- a/chrome/browser/android/compositor/layer/toolbar_layer.h
+++ b/chrome/browser/android/compositor/layer/toolbar_layer.h
@@ -31,13 +31,14 @@ class ToolbarLayer : public Layer {
scoped_refptr<cc::Layer> layer() override;
void PushResource(int toolbar_resource_id,
+ int toolbar_shadow_resource_id,
int toolbar_background_color,
bool anonymize,
int toolbar_textbox_background_color,
int url_bar_background_resource_id,
float url_bar_alpha,
bool show_debug,
- bool clip_shadow);
+ bool needs_toolbar_shadow);
void UpdateProgressBar(int progress_bar_x,
int progress_bar_y,
@@ -59,6 +60,7 @@ class ToolbarLayer : public Layer {
scoped_refptr<cc::Layer> layer_;
scoped_refptr<cc::SolidColorLayer> toolbar_background_layer_;
+ scoped_refptr<cc::UIResourceLayer> toolbar_shadow_layer_;
scoped_refptr<cc::NinePatchLayer> url_bar_background_layer_;
scoped_refptr<cc::UIResourceLayer> bitmap_layer_;
scoped_refptr<cc::SolidColorLayer> progress_bar_layer_;
« no previous file with comments | « chrome/browser/android/compositor/layer/tab_layer.cc ('k') | chrome/browser/android/compositor/layer/toolbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698