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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.cc

Issue 2230513005: Move visual rect unioning between paired items to cc::DisplayItemList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review feedback. Created 4 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/ui/views/tabs/tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
index 0df1f6f8db610b94a44a8bddb29d9d089c30813c..db9b3711f215daed7ab85fc966ae500055ce532b 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -1474,8 +1474,8 @@ void TabStrip::PaintChildren(const ui::PaintContext& context) {
// We pass false for |lcd_text_requires_opaque_layer| so that background
// tab titles will get LCD AA. These are rendered opaquely on an opaque tab
// background before the layer is composited, so this is safe.
- ui::CompositingRecorder opacity_recorder(context, size(),
- GetInactiveAlpha(false), false);
+ ui::CompositingRecorder opacity_recorder(context, GetInactiveAlpha(false),
+ false);
PaintClosingTabs(tab_count(), context);
@@ -1534,8 +1534,8 @@ void TabStrip::PaintChildren(const ui::PaintContext& context) {
// NewTabButton::PaintFill() for why we don't do this for the pressed state.
// This call doesn't need to set |lcd_text_requires_opaque_layer| to false
// because no text will be drawn.
- ui::CompositingRecorder opacity_recorder(context, size(),
- GetInactiveAlpha(true), true);
+ ui::CompositingRecorder opacity_recorder(context, GetInactiveAlpha(true),
+ true);
newtab_button_->Paint(context);
} else {
newtab_button_->Paint(context);

Powered by Google App Engine
This is Rietveld 408576698