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

Issue 541913002: Create a GraphicsContext from a DisplayList. (Closed)

Created:
6 years, 3 months ago by Stephen Chennney
Modified:
6 years, 3 months ago
Reviewers:
chrishtr, esprehn, pdr.
CC:
blink-reviews, Rik, danakj, krit, jamesr, jbroman, pdr., rwlbuis, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@display-list-changes
Project:
blink
Visibility:
Public.

Description

Create a GraphicsContext from a DisplayList. And switch LinkHighlight over to using DisplayList. The GraphicsContext change is needed for cases when we wish to record a DisplayList without an existing GraphicsContext. The LinkHighlight case demonstrates that. R=pdr@chromium.org,chrishtr@chromium.org,esprehn@chromium.org BUG=410019 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181835

Patch Set 1 #

Patch Set 2 : LinkHighlght changes #

Patch Set 3 : Rebased #

Total comments: 2

Patch Set 4 : Merged in previous patch. #

Patch Set 5 : Forward declare per comment #

Patch Set 6 : Right base this time. #

Patch Set 7 : Use 0 canvas, and add asserts. #

Patch Set 8 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -20 lines) Patch
M Source/core/rendering/svg/RenderSVGResourceFilter.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M Source/platform/graphics/DisplayList.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/graphics/GraphicsContext.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M Source/platform/graphics/GraphicsContext.cpp View 1 2 3 4 5 6 7 41 chunks +55 lines, -13 lines 0 comments Download
M Source/web/LinkHighlight.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M Source/web/LinkHighlight.cpp View 1 2 3 4 5 6 3 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (7 generated)
Stephen Chennney
This depends on https://codereview.chromium.org/536573002/ For future use, such as LinkHighlight where we create the DisplayList ...
6 years, 3 months ago (2014-09-04 21:19:53 UTC) #1
Stephen Chennney
CC test.
6 years, 3 months ago (2014-09-04 21:23:04 UTC) #2
chrishtr
Can you do it along with the use case? That makes it easier to see ...
6 years, 3 months ago (2014-09-05 01:09:15 UTC) #3
Stephen Chennney
Updated patch. Need Source/web review for LinkHighlight.
6 years, 3 months ago (2014-09-05 14:16:23 UTC) #5
chrishtr
The use case here is to create a GraphicsContext with no canvas, right? Because all ...
6 years, 3 months ago (2014-09-05 16:18:44 UTC) #6
esprehn
https://codereview.chromium.org/541913002/diff/40001/Source/web/LinkHighlight.h File Source/web/LinkHighlight.h (right): https://codereview.chromium.org/541913002/diff/40001/Source/web/LinkHighlight.h#newcode31 Source/web/LinkHighlight.h:31: #include "platform/graphics/DisplayList.h" Can we forward declare this instead?
6 years, 3 months ago (2014-09-06 01:29:17 UTC) #7
esprehn
lgtm
6 years, 3 months ago (2014-09-06 05:18:11 UTC) #8
Stephen Chennney
Chris, does this address your comment? https://codereview.chromium.org/541913002/diff/40001/Source/web/LinkHighlight.h File Source/web/LinkHighlight.h (right): https://codereview.chromium.org/541913002/diff/40001/Source/web/LinkHighlight.h#newcode31 Source/web/LinkHighlight.h:31: #include "platform/graphics/DisplayList.h" On ...
6 years, 3 months ago (2014-09-08 17:42:09 UTC) #12
chrishtr
On 2014/09/08 at 17:42:09, schenney wrote: > Chris, does this address your comment? My suggestion ...
6 years, 3 months ago (2014-09-08 17:47:47 UTC) #13
Stephen Chennney
On 2014/09/08 17:47:47, chrishtr wrote: > On 2014/09/08 at 17:42:09, schenney wrote: > > Chris, ...
6 years, 3 months ago (2014-09-08 17:49:19 UTC) #14
chrishtr
On 2014/09/08 at 17:49:19, schenney wrote: > On 2014/09/08 17:47:47, chrishtr wrote: > > On ...
6 years, 3 months ago (2014-09-08 17:56:13 UTC) #15
Stephen Chennney
On 2014/09/08 17:56:13, chrishtr wrote: > On 2014/09/08 at 17:49:19, schenney wrote: > > On ...
6 years, 3 months ago (2014-09-08 18:02:37 UTC) #16
chrishtr
Doesn't the same risk occur when creating a GraphicsContext in the way you're proposing? You're ...
6 years, 3 months ago (2014-09-08 18:08:48 UTC) #17
Stephen Chennney
On 2014/09/08 18:08:48, chrishtr wrote: > Doesn't the same risk occur when creating a GraphicsContext ...
6 years, 3 months ago (2014-09-08 18:30:44 UTC) #18
Stephen Chennney
I'll fix these too. On 2014/09/08 19:51:01, Stephen White wrote: > Vacation-delayed comments. > > ...
6 years, 3 months ago (2014-09-08 20:01:08 UTC) #19
chrishtr
Ok ping me when it's ready for re-review.
6 years, 3 months ago (2014-09-08 20:25:53 UTC) #20
Stephen Chennney
New version now with null canvas support.
6 years, 3 months ago (2014-09-10 17:31:47 UTC) #21
chrishtr
lgtm
6 years, 3 months ago (2014-09-10 20:21:45 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/541913002/120001
6 years, 3 months ago (2014-09-11 16:10:09 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_chromium_gn_rel/builds/10229) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/54704)
6 years, 3 months ago (2014-09-11 16:13:53 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/541913002/140001
6 years, 3 months ago (2014-09-11 16:53:19 UTC) #28
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 18:14:20 UTC) #29
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as 181835

Powered by Google App Engine
This is Rietveld 408576698