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

Issue 1054783003: views: Access the Canvas through recorders not through PaintContext. (Closed)

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

Description

views: Access the Canvas through recorders not through PaintContext. The PaintContext may be backed by a DisplayItemList in the future so it will not have a canvas(). Instead invoke a PaintRecorder to use a canvas or another Recorder to do other operations such as clip or opacity. This adds a CompositingRecorder for compositing operations like opacity. It could also support effects like blend modes, and will generate cc::CompositingDisplayItems in the future. R=sky BUG=466426 Committed: https://crrev.com/38125cee3b20bcad023fcf96786951d36c091727 Cr-Commit-Position: refs/heads/master@{#323981}

Patch Set 1 #

Total comments: 4

Patch Set 2 : uiviews-recorder: whitespace #

Patch Set 3 : uiviews-recorder: . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -24 lines) Patch
M chrome/browser/ui/views/autofill/autofill_dialog_views.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.cc View 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_image_view.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc View 2 chunks +10 lines, -6 lines 0 comments Download
M ui/compositor/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A ui/compositor/compositing_recorder.h View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
A ui/compositor/compositing_recorder.cc View 1 chunk +22 lines, -0 lines 0 comments Download
M ui/compositor/compositor.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
danakj
5 years, 8 months ago (2015-04-06 19:00:45 UTC) #2
Peter Kasting
c/b/ui/views LGTM assuming there's a good reason for my question below. https://codereview.chromium.org/1054783003/diff/1/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): ...
5 years, 8 months ago (2015-04-06 19:24:36 UTC) #4
danakj
https://codereview.chromium.org/1054783003/diff/1/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc File chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc (right): https://codereview.chromium.org/1054783003/diff/1/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc#newcode428 chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc:428: ui::PaintRecorder recorder(context); On 2015/04/06 19:24:36, Peter Kasting wrote: > ...
5 years, 8 months ago (2015-04-06 19:29:07 UTC) #5
danakj
https://codereview.chromium.org/1054783003/diff/1/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): https://codereview.chromium.org/1054783003/diff/1/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode1016 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc:1016: On 2015/04/06 19:24:36, Peter Kasting wrote: > Nit: Blank ...
5 years, 8 months ago (2015-04-06 19:29:59 UTC) #6
piman
lgtm
5 years, 8 months ago (2015-04-06 20:16:38 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1054783003/30001
5 years, 8 months ago (2015-04-06 23:03:32 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:30001)
5 years, 8 months ago (2015-04-07 00:00:14 UTC) #11
commit-bot: I haz the power
5 years, 8 months ago (2015-04-07 00:01:37 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/38125cee3b20bcad023fcf96786951d36c091727
Cr-Commit-Position: refs/heads/master@{#323981}

Powered by Google App Engine
This is Rietveld 408576698