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

Issue 1053143002: Make View::Paint use ui::PaintRecorder to access PaintContext's canvas (Closed)

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

Description

Make View::Paint use ui::PaintRecorder to access PaintContext's canvas This adds a ui::PaintRecorder that will be the gateway to the PaintContext internals. The rules are: 1) Make a PaintRecorder when you want to access the canvas. 2) Can not nest PaintRecorders. In the future PaintRecorder will also know how to deal with a DisplayItemList and provider a Canvas that records to a DisplayItem and each scoped PaintRecorder will produce DisplayItems to be cached. For now, just restructuring code to go through PaintRecorder and not nest recording. R=sadrul, sky BUG=466426 Committed: https://crrev.com/318e9c81d83a6862634b87b28e91fa1d4c4f8726 Cr-Commit-Position: refs/heads/master@{#323936}

Patch Set 1 #

Patch Set 2 : paintrecorder: /. #

Patch Set 3 : paintrecorder: . #

Total comments: 6

Patch Set 4 : paintrecorder: explicit #

Total comments: 1

Patch Set 5 : paintrecorder: headerorder #

Patch Set 6 : paintrecorder: rebase #

Patch Set 7 : paintrecorder: cliptransformrecorder #

Patch Set 8 : paintrecorder: . #

Patch Set 9 : paintrecorder: . #

Patch Set 10 : paintrecorder: rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -10 lines) Patch
M ui/compositor/BUILD.gn View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
A ui/compositor/clip_transform_recorder.h View 1 2 3 4 5 6 7 1 chunk +44 lines, -0 lines 0 comments Download
A ui/compositor/clip_transform_recorder.cc View 1 2 3 4 5 6 1 chunk +41 lines, -0 lines 0 comments Download
M ui/compositor/compositor.gyp View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M ui/compositor/paint_context.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
A ui/compositor/paint_recorder.h View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A ui/compositor/paint_recorder.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download
M ui/views/view.cc View 1 2 3 4 5 6 7 8 3 chunks +20 lines, -10 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
danakj
Depends on: https://codereview.chromium.org/1055473003/ to avoid awkward early outs.
5 years, 8 months ago (2015-04-02 22:59:24 UTC) #1
sky
Are there any interesting changes here other than view.*? https://codereview.chromium.org/1053143002/diff/40001/ui/compositor/paint_recorder.h File ui/compositor/paint_recorder.h (right): https://codereview.chromium.org/1053143002/diff/40001/ui/compositor/paint_recorder.h#newcode24 ui/compositor/paint_recorder.h:24: ...
5 years, 8 months ago (2015-04-02 23:43:09 UTC) #2
danakj
> Are there any interesting changes here other than view.*? Oops, this included https://codereview.chromium.org/1057873004/ by ...
5 years, 8 months ago (2015-04-03 00:27:36 UTC) #3
sky
https://codereview.chromium.org/1053143002/diff/40001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/1053143002/diff/40001/ui/views/view.cc#newcode825 ui/views/view.cc:825: ui::PaintRecorder recorder(context); On 2015/04/03 00:27:36, danakj wrote: > On ...
5 years, 8 months ago (2015-04-03 14:53:59 UTC) #4
danakj
https://codereview.chromium.org/1053143002/diff/40001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/1053143002/diff/40001/ui/views/view.cc#newcode825 ui/views/view.cc:825: ui::PaintRecorder recorder(context); On 2015/04/03 14:53:59, sky wrote: > On ...
5 years, 8 months ago (2015-04-03 16:15:35 UTC) #5
danakj
On 2015/04/03 16:15:35, danakj wrote: > https://codereview.chromium.org/1053143002/diff/40001/ui/views/view.cc > File ui/views/view.cc (right): > > https://codereview.chromium.org/1053143002/diff/40001/ui/views/view.cc#newcode825 > ...
5 years, 8 months ago (2015-04-03 16:19:53 UTC) #6
danakj
On 2015/04/03 16:19:53, danakj wrote: > On 2015/04/03 16:15:35, danakj wrote: > > https://codereview.chromium.org/1053143002/diff/40001/ui/views/view.cc > ...
5 years, 8 months ago (2015-04-03 17:45:04 UTC) #7
danakj
PTAL, added a ClipTransformRecorder.
5 years, 8 months ago (2015-04-03 18:28:56 UTC) #8
sky
LGTM
5 years, 8 months ago (2015-04-03 20:46:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1053143002/160001
5 years, 8 months ago (2015-04-04 01:25:43 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/11975) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 8 months ago (2015-04-04 01:30:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1053143002/180001
5 years, 8 months ago (2015-04-06 17:27:25 UTC) #16
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 8 months ago (2015-04-06 19:52:51 UTC) #17
commit-bot: I haz the power
5 years, 8 months ago (2015-04-06 20:05:23 UTC) #18
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/318e9c81d83a6862634b87b28e91fa1d4c4f8726
Cr-Commit-Position: refs/heads/master@{#323936}

Powered by Google App Engine
This is Rietveld 408576698