Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(5)

Issue 1129793005: Replace OwnPtr with WTF::Optional for optional recorders. (Closed)

Created:
4 years, 12 months ago by jbroman
Modified:
4 years, 11 months ago
Reviewers:
chrishtr, esprehn, Nico, pdr.
CC:
aandrey+blink_chromium.org, blink-reviews, blink-reviews-paint_chromium.org, blink-reviews-wtf_chromium.org, dshwang, krit, f(malita), fs, gyuyoung2, kouhei+svg_chromium.org, Mikhail, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Replace OwnPtr with WTF::Optional for optional recorders. Also implement WTF::Optional, using an aligned buffer. BUG=492743 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196267

Patch Set 1 #

Patch Set 2 : aligned buffer #

Patch Set 3 : TypeTraits.h not used #

Patch Set 4 : merge with master #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -57 lines) Patch
M Source/core/paint/BlockPainter.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/paint/BoxPainter.cpp View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M Source/core/paint/DeprecatedPaintLayerPainter.cpp View 1 2 3 13 chunks +35 lines, -35 lines 0 comments Download
M Source/core/paint/FileUploadControlPainter.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/paint/InlineTextBoxPainter.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/paint/PartPainter.cpp View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M Source/core/paint/ReplacedPainter.cpp View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M Source/core/paint/SVGContainerPainter.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/paint/SVGForeignObjectPainter.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/paint/SVGRootPainter.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/paint/SVGShapePainter.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/svg/graphics/SVGImage.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
A Source/wtf/Optional.h View 1 2 1 chunk +70 lines, -0 lines 2 comments Download
A Source/wtf/OptionalTest.cpp View 1 chunk +63 lines, -0 lines 0 comments Download
M Source/wtf/TypeTraits.h View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/wtf/TypeTraits.cpp View 1 chunk +1 line, -0 lines 0 comments Download
A Source/wtf/Utility.h View 1 chunk +23 lines, -0 lines 0 comments Download
M Source/wtf/wtf.gypi View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
jbroman
It's a little silly to do heap allocation for this, so let's not. Ideally I'd ...
4 years, 11 months ago (2015-05-08 15:13:28 UTC) #2
chrishtr
Ping on review. Jeremy if you'd like I can also review this. My inclination is ...
4 years, 11 months ago (2015-05-18 23:17:48 UTC) #4
Nico
This is "[chromium-dev] Should we add something like value_ptr<> to base/?" / https://code.google.com/p/chromium/issues/detail?id=428934 , right?
4 years, 11 months ago (2015-05-18 23:38:15 UTC) #5
esprehn
I'd much rather we went with a simpler on stack scope object, and that scope ...
4 years, 11 months ago (2015-05-19 02:27:37 UTC) #6
jbroman
On 2015/05/18 23:17:48, chrishtr wrote: > Ping on review. > > Jeremy if you'd like ...
4 years, 11 months ago (2015-05-21 17:05:57 UTC) #7
jbroman
(this paragraph was somehow lost from my previous message) That said, if there's still 2xNotLGTM, ...
4 years, 11 months ago (2015-05-21 17:09:28 UTC) #8
pdr.
On 2015/05/21 at 17:09:28, jbroman wrote: > (this paragraph was somehow lost from my previous ...
4 years, 11 months ago (2015-05-22 18:00:46 UTC) #9
jbroman
On 2015/05/22 18:00:46, pdr wrote: > On 2015/05/21 at 17:09:28, jbroman wrote: > > (this ...
4 years, 11 months ago (2015-05-26 17:31:25 UTC) #10
jbroman
Reopening for further discussion.
4 years, 11 months ago (2015-05-29 17:45:49 UTC) #11
pdr.
On 2015/05/29 at 17:45:49, jbroman wrote: > Reopening for further discussion. LGTM, the perf numbers ...
4 years, 11 months ago (2015-05-29 17:52:14 UTC) #12
chrishtr
lgtm I discussed offline with Jeremy, and also reviewed the comments on the related bug ...
4 years, 11 months ago (2015-05-29 17:57:58 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129793005/40001
4 years, 11 months ago (2015-06-01 18:28:05 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/57141)
4 years, 11 months ago (2015-06-01 18:32:01 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129793005/60001
4 years, 11 months ago (2015-06-01 19:51:34 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/64250)
4 years, 11 months ago (2015-06-01 23:35:50 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129793005/60001
4 years, 11 months ago (2015-06-02 00:25:02 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=196267
4 years, 11 months ago (2015-06-02 01:23:41 UTC) #25
esprehn
https://codereview.chromium.org/1129793005/diff/60001/Source/wtf/Optional.h File Source/wtf/Optional.h (right): https://codereview.chromium.org/1129793005/diff/60001/Source/wtf/Optional.h#newcode45 Source/wtf/Optional.h:45: T& operator*() { ASSERT(m_engaged); return *storage(); } These should ...
4 years, 11 months ago (2015-06-02 02:00:23 UTC) #27
jbroman
4 years, 11 months ago (2015-06-02 14:13:49 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/1129793005/diff/60001/Source/wtf/Optional.h
File Source/wtf/Optional.h (right):

https://codereview.chromium.org/1129793005/diff/60001/Source/wtf/Optional.h#n...
Source/wtf/Optional.h:45: T& operator*() { ASSERT(m_engaged); return *storage();
}
On 2015/06/02 02:00:23, esprehn wrote:
> These should all be ASSERT_WITH_SECURITY_IMPLICATION since this uses garbage
> memory if you get here.

Right you are. https://codereview.chromium.org/1159623012

Powered by Google App Engine
This is Rietveld 408576698