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

Issue 1283183003: Use forwarding with SkTLazy::init. (Closed)

Created:
5 years, 4 months ago by bungeman-skia
Modified:
5 years, 4 months ago
Reviewers:
bsalomon, mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Use forwarding with SkTLazy::init. This allows removal the difficult to use (and so currently unused) placement new and related macros to allow any constructor of T to be used to initilize the storage of SkTLazy. This also properly aligns the SkTLazy storage. Committed: https://skia.googlesource.com/skia/+/72440a3785c13b8ec539d7e11bea1124eeddecbd

Patch Set 1 #

Total comments: 2

Patch Set 2 : Also remove no longer needed constructor. #

Patch Set 3 : Add && in deducing context. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -41 lines) Patch
M include/core/SkTLazy.h View 1 2 6 chunks +12 lines, -34 lines 0 comments Download
M src/gpu/GrTraceMarker.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/gpu/GrTracing.h View 3 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1283183003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1283183003/1
5 years, 4 months ago (2015-08-12 19:27:06 UTC) #2
bungeman-skia
5 years, 4 months ago (2015-08-12 19:27:20 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-12 19:36:54 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1283183003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1283183003/20001
5 years, 4 months ago (2015-08-12 19:40:53 UTC) #8
bsalomon
On 2015/08/12 19:40:53, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
5 years, 4 months ago (2015-08-12 19:43:16 UTC) #9
mtklein
https://codereview.chromium.org/1283183003/diff/1/include/core/SkTLazy.h File include/core/SkTLazy.h (right): https://codereview.chromium.org/1283183003/diff/1/include/core/SkTLazy.h#newcode49 include/core/SkTLazy.h:49: template <typename... Args> T* init(Args... args) { make_shared looks ...
5 years, 4 months ago (2015-08-12 19:45:59 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-12 19:48:58 UTC) #12
bungeman-skia
On 2015/08/12 19:45:59, mtklein wrote: > https://codereview.chromium.org/1283183003/diff/1/include/core/SkTLazy.h > File include/core/SkTLazy.h (right): > > https://codereview.chromium.org/1283183003/diff/1/include/core/SkTLazy.h#newcode49 > ...
5 years, 4 months ago (2015-08-12 20:00:29 UTC) #13
mtklein
On 2015/08/12 20:00:29, bungeman1 wrote: > On 2015/08/12 19:45:59, mtklein wrote: > > https://codereview.chromium.org/1283183003/diff/1/include/core/SkTLazy.h > ...
5 years, 4 months ago (2015-08-12 20:05:50 UTC) #14
bungeman-skia
On 2015/08/12 20:00:29, bungeman1 wrote: > On 2015/08/12 19:45:59, mtklein wrote: > > https://codereview.chromium.org/1283183003/diff/1/include/core/SkTLazy.h > ...
5 years, 4 months ago (2015-08-12 20:13:39 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1283183003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1283183003/40001
5 years, 4 months ago (2015-08-12 20:23:42 UTC) #17
bungeman-skia
https://codereview.chromium.org/1283183003/diff/1/include/core/SkTLazy.h File include/core/SkTLazy.h (right): https://codereview.chromium.org/1283183003/diff/1/include/core/SkTLazy.h#newcode49 include/core/SkTLazy.h:49: template <typename... Args> T* init(Args... args) { On 2015/08/12 ...
5 years, 4 months ago (2015-08-12 20:25:43 UTC) #18
mtklein
lgtm
5 years, 4 months ago (2015-08-12 20:26:40 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-12 20:30:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1283183003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1283183003/40001
5 years, 4 months ago (2015-08-12 20:36:51 UTC) #24
commit-bot: I haz the power
5 years, 4 months ago (2015-08-12 20:37:20 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/72440a3785c13b8ec539d7e11bea1124eeddecbd

Powered by Google App Engine
This is Rietveld 408576698