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

Issue 291243007: Make several functions in SVGRenderSupport templated for performance (Closed)

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

Description

Make several functions in SVGRenderSupport templated for performance Make several functions in SVGRenderSupport templated for performance: - layoutChildren() - computeContainerBoundingBoxes() This way, the implementation knows the exact render type and can use faster firstChild() from RenderSVGRoot / RenderSVGContainer instead of the generic RenderObject::slowFirstChild(). This CL also makes SVGRenderSupport a class instead of a namespace so that we can make the private utility functions private (now that they need to be defined in the header). The impact on the release binary size is minimal: +560 bytes. R=pdr Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174548

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -183 lines) Patch
M Source/core/rendering/svg/RenderSVGContainer.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGHiddenContainer.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGImage.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGModelObject.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGModelObject.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceClipper.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGRoot.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGRoot.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGShape.cpp View 2 chunks +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGViewportContainer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/SVGInlineTextBox.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/svg/SVGRenderSupport.h View 2 chunks +189 lines, -44 lines 0 comments Download
M Source/core/rendering/svg/SVGRenderSupport.cpp View 5 chunks +0 lines, -134 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Inactive
6 years, 7 months ago (2014-05-21 19:37:02 UTC) #1
pdr.
The change here is a good one but it comes at a pretty large cost ...
6 years, 7 months ago (2014-05-21 20:38:19 UTC) #2
Inactive
On 2014/05/21 20:38:19, pdr wrote: > The change here is a good one but it ...
6 years, 7 months ago (2014-05-21 20:42:56 UTC) #3
pdr.
On 2014/05/21 20:42:56, Chris Dumez wrote: > On 2014/05/21 20:38:19, pdr wrote: > > The ...
6 years, 7 months ago (2014-05-21 21:50:10 UTC) #4
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 7 months ago (2014-05-21 21:50:14 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/291243007/1
6 years, 7 months ago (2014-05-21 22:04:17 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 04:06:59 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 04:09:08 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/9546)
6 years, 7 months ago (2014-05-22 04:09:09 UTC) #9
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-22 12:20:41 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/291243007/1
6 years, 7 months ago (2014-05-22 12:21:31 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 12:22:36 UTC) #12
Message was sent while issue was closed.
Change committed as 174548

Powered by Google App Engine
This is Rietveld 408576698