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

Issue 1062293003: tabstrip: Use a PaintRecorder to access the Canvas for painting. (Closed)

Created:
5 years, 8 months ago by danakj
Modified:
5 years, 8 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, kalyank, Ian Vollick, tfarina, sievers+watch_chromium.org, jbauman+watch_chromium.org, estade+watch_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org, rouslan+autofillwatch_chromium.org, enne (OOO), piman, sadrul, sky
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

tabstrip: Use a PaintRecorder to access the Canvas for painting. Don't use the canvas() from the PaintContext so that we can have the PaintContext be backed by a DisplayItemList instead in the future. Access to the Canvas should be done through a PaintRecorder. For compositing effects (opacity) we use a CompositingRecorder to provide a scoped opacity change. R=pkasting BUG=466426 Committed: https://crrev.com/5729f982048935b2b702181d0b349589d607f34b Cr-Commit-Position: refs/heads/master@{#324173}

Patch Set 1 : tabstrip-recorder: . #

Total comments: 14

Patch Set 2 : tabstrip-recorder: . #

Patch Set 3 : tabstrip-recorder: . #

Patch Set 4 : tabstrip-recorder: missing8 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -65 lines) Patch
M chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 7 chunks +57 lines, -56 lines 0 comments Download
M ui/compositor/compositing_recorder.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M ui/compositor/compositing_recorder.cc View 1 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
danakj
Hi Peter, PTAL https://codereview.chromium.org/1062293003/diff/80001/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (left): https://codereview.chromium.org/1062293003/diff/80001/chrome/browser/ui/views/tabs/tab_strip.cc#oldcode1306 chrome/browser/ui/views/tabs/tab_strip.cc:1306: canvas->Restore(); This goes away thanks to ...
5 years, 8 months ago (2015-04-07 20:51:43 UTC) #6
Peter Kasting
https://codereview.chromium.org/1062293003/diff/80001/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc File chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc (right): https://codereview.chromium.org/1062293003/diff/80001/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc#newcode466 chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc:466: int alpha = static_cast<int>(255 * opacity_); Probably not very ...
5 years, 8 months ago (2015-04-07 21:32:39 UTC) #7
danakj
https://codereview.chromium.org/1062293003/diff/80001/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc File chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc (right): https://codereview.chromium.org/1062293003/diff/80001/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc#newcode466 chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc:466: int alpha = static_cast<int>(255 * opacity_); On 2015/04/07 21:32:39, ...
5 years, 8 months ago (2015-04-07 21:36:26 UTC) #8
danakj
https://codereview.chromium.org/1062293003/diff/80001/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc File chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc (right): https://codereview.chromium.org/1062293003/diff/80001/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc#newcode466 chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc:466: int alpha = static_cast<int>(255 * opacity_); On 2015/04/07 21:36:25, ...
5 years, 8 months ago (2015-04-07 21:43:38 UTC) #9
Peter Kasting
https://codereview.chromium.org/1062293003/diff/80001/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc File chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc (right): https://codereview.chromium.org/1062293003/diff/80001/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc#newcode466 chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc:466: int alpha = static_cast<int>(255 * opacity_); On 2015/04/07 21:36:25, ...
5 years, 8 months ago (2015-04-07 21:45:59 UTC) #10
danakj
PTAL using uint8_t > You're welcome to do it either way, though I think the ...
5 years, 8 months ago (2015-04-07 21:52:52 UTC) #11
Peter Kasting
LGTM
5 years, 8 months ago (2015-04-07 21:58:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062293003/140001
5 years, 8 months ago (2015-04-07 21:59:29 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:140001)
5 years, 8 months ago (2015-04-08 01:51:39 UTC) #15
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 01:52:31 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5729f982048935b2b702181d0b349589d607f34b
Cr-Commit-Position: refs/heads/master@{#324173}

Powered by Google App Engine
This is Rietveld 408576698