DescriptionMake 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 #
Messages
Total messages: 18 (4 generated)
|