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

Issue 1144203004: Allow certain SP recorder classes to defer their "begin" operation. (Closed)

Created:
5 years, 7 months ago by jbroman
Modified:
5 years, 7 months ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-paint_chromium.org, Rik, danakj, dshwang, krit, f(malita), fs, gyuyoung2, Justin Novosad, kouhei+svg_chromium.org, pdr+graphicswatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Allow certain SP recorder classes to defer their "begin" operation. This replaces OwnPtr<...> as a pattern when we're uncertain whether we want to do this. Heap allocation for this case is unnecessary. DO NOT SUBMIT: I think this hurts clarity too much. I think this makes it much less clear at the call site whether the begin will happen immediately or not, and changing all recorders to defer their begin will be yet more invasive and noisy. It also makes the recorders themselves more confusing. There's also a weird split between parameters supplied at construction and at begin. If we supplied all at construction, we'd have to do extra work to compute arguments that don't even apply. If we supplied all at begin, then all the references would become pointers, and would be null for much of the lifetime of the object.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -166 lines) Patch
M Source/core/paint/BlockPainter.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/paint/BoxPainter.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/paint/CompositingRecorder.h View 2 chunks +5 lines, -2 lines 0 comments Download
M Source/core/paint/CompositingRecorder.cpp View 1 chunk +17 lines, -3 lines 0 comments Download
M Source/core/paint/DeprecatedPaintLayerPainter.cpp View 13 chunks +31 lines, -33 lines 0 comments Download
M Source/core/paint/FileUploadControlPainter.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/paint/FloatClipRecorder.h View 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/paint/FloatClipRecorder.cpp View 1 chunk +25 lines, -9 lines 0 comments Download
M Source/core/paint/InlineTextBoxPainter.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/paint/LayerClipRecorder.h View 1 chunk +6 lines, -3 lines 0 comments Download
M Source/core/paint/LayerClipRecorder.cpp View 2 chunks +34 lines, -16 lines 0 comments Download
M Source/core/paint/PartPainter.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/paint/ReplacedPainter.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/paint/RoundedInnerRectClipper.h View 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/paint/RoundedInnerRectClipper.cpp View 2 chunks +40 lines, -20 lines 0 comments Download
M Source/core/paint/SVGContainerPainter.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/paint/SVGForeignObjectPainter.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/paint/SVGRootPainter.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/paint/SVGShapePainter.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/paint/ScopeRecorder.h View 1 chunk +5 lines, -1 line 0 comments Download
M Source/core/paint/ScopeRecorder.cpp View 1 chunk +17 lines, -5 lines 0 comments Download
M Source/core/paint/ScrollRecorder.h View 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/paint/ScrollRecorder.cpp View 1 chunk +26 lines, -9 lines 0 comments Download
M Source/core/svg/graphics/SVGImage.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/graphics/paint/ClipRecorder.h View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/platform/graphics/paint/ClipRecorder.cpp View 1 chunk +26 lines, -9 lines 0 comments Download
M Source/platform/graphics/paint/DrawingRecorder.h View 2 chunks +4 lines, -0 lines 0 comments Download
M Source/platform/graphics/paint/DrawingRecorder.cpp View 2 chunks +48 lines, -32 lines 0 comments Download

Messages

Total messages: 3 (1 generated)
chrishtr
Could you run this version or the other version of the patch through the (Android) ...
5 years, 7 months ago (2015-05-26 18:33:08 UTC) #2
jbroman
5 years, 7 months ago (2015-05-26 18:35:49 UTC) #3
Message was sent while issue was closed.
On 2015/05/26 18:33:08, chrishtr wrote:
> Could you run this version or the other version of the patch through the
> (Android) cluster telemetry bot and see a possible impact? If there is a
> significant impact we should commit one version or anther IMO.

Other one is in CT now at pdr's request.

I suspect that, like the measurements I mentioned on the original CL indicated,
it is currently dwarfed by the DisplayItem allocations. But we'll see if CT
gives a more definitive result.

Powered by Google App Engine
This is Rietveld 408576698