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

Unified Diff: chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc

Issue 1062293003: tabstrip: Use a PaintRecorder to access the Canvas for painting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tabstrip-recorder: . Created 5 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | chrome/browser/ui/views/tabs/tab_strip.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc
diff --git a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc
index a7af6502ee5e157670546370f86bfe63effd8fdb..5d7a6c0980a4ed647dd463a3de4e474efde2f593 100644
--- a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc
+++ b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc
@@ -463,10 +463,8 @@ CardUnmaskPromptViews::FadeOutView::~FadeOutView() {
void CardUnmaskPromptViews::FadeOutView::PaintChildren(
const ui::PaintContext& context) {
- if (opacity_ > 0.99)
- return views::View::PaintChildren(context);
-
- ui::CompositingRecorder recorder(context, opacity_);
+ int alpha = static_cast<int>(255 * opacity_);
Peter Kasting 2015/04/07 21:32:39 Probably not very important, but it seems like thi
danakj 2015/04/07 21:36:25 Sure, I was just maintaining what this did before,
danakj 2015/04/07 21:43:38 Here's a followup: https://codereview.chromium.org
Peter Kasting 2015/04/07 21:45:59 You're welcome to do it either way, though I think
+ ui::CompositingRecorder recorder(context, alpha);
views::View::PaintChildren(context);
}
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | chrome/browser/ui/views/tabs/tab_strip.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698