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

Issue 630903003: Move common GC state update code out of paint-server application (Closed)

Created:
6 years, 2 months ago by fs
Modified:
6 years, 2 months ago
CC:
blink-reviews, blink-reviews-rendering, krit, eae+blinkwatch, ed+blinkwatch_opera.com, f(malita), fs, gyuyoung.kim_webkit.org, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, rune+blink, Stephen Chennney, zoltan1
Project:
blink
Visibility:
Public.

Description

Move common GC state update code out of paint-server application All paint-server RenderSVGResources contain the same code to update the GC state, transferring stroke properties, fill-rule etc. as required by the resource mode. They only deviate in which set{Stroke,Fill}* variant they end up calling. Move the part that updates non-(direct-)paint-server state to a new helper SVGRenderSupport::updateGraphicsContext, and then sink that out of the various applyResource methods. The special case handling of clipping masks in RenderSVGResourceSolidColor is transformed into a single block, leaving the generic path oblivious to this detail. BUG=420022 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183332

Patch Set 1 #

Total comments: 4

Patch Set 2 : Move updateGraphicsContext. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -49 lines) Patch
M Source/core/rendering/svg/RenderSVGResource.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResource.cpp View 1 2 chunks +32 lines, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceGradient.cpp View 1 1 chunk +3 lines, -10 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResourcePattern.cpp View 1 1 chunk +3 lines, -14 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp View 1 1 chunk +5 lines, -25 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
fs
6 years, 2 months ago (2014-10-06 15:51:37 UTC) #2
pdr.
This code is so gross, thank you for cleaning it up. I think you're taking ...
6 years, 2 months ago (2014-10-07 02:57:48 UTC) #3
fs
Code shuffled as suggested, but please read responses below as well. https://codereview.chromium.org/630903003/diff/1/Source/core/rendering/svg/RenderSVGShape.cpp File Source/core/rendering/svg/RenderSVGShape.cpp (right): ...
6 years, 2 months ago (2014-10-07 12:34:20 UTC) #4
pdr.
On 2014/10/07 at 12:34:20, fs wrote: > Code shuffled as suggested, but please read responses ...
6 years, 2 months ago (2014-10-07 13:12:55 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/630903003/20001
6 years, 2 months ago (2014-10-07 13:48:33 UTC) #7
commit-bot: I haz the power
6 years, 2 months ago (2014-10-07 13:53:47 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 183332

Powered by Google App Engine
This is Rietveld 408576698