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

Issue 1561683002: Start using <type_traits> and <utility> (C++11). (Closed)

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

Description

Start using <type_traits> and <utility> (C++11). SkUtility.h and SkTLogic.h implement a number of type traits now available through <type_traits> and <utility>. This removes SkUtility.h, replacing it with <utility>, and moves a number of traits in SkTLogic.h to use the std:: equivelents. This change only uses C++11 parts of the standard library; SkTLogic.h will continue to provide C++14 and beyond for now in the skstd namespace. The changes to SkTLogic.h are being done gradually so that safe changes may be landed confidently, with more risky changes in the future. Committed: https://skia.googlesource.com/skia/+/221524de3be1fc343ad328c5e99562f32b5cad9c

Patch Set 1 #

Total comments: 8

Patch Set 2 : Additional includes and whitespace. #

Total comments: 1

Patch Set 3 : Fix skstd::unique_ptr::compressed_pair. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -174 lines) Patch
M gyp/core.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M include/core/SkTArray.h View 2 chunks +2 lines, -1 line 0 comments Download
M include/core/SkTLazy.h View 2 chunks +2 lines, -1 line 0 comments Download
M include/private/SkTLogic.h View 5 chunks +49 lines, -89 lines 0 comments Download
M include/private/SkTemplates.h View 1 chunk +0 lines, -1 line 0 comments Download
M include/private/SkUniquePtr.h View 1 2 18 chunks +24 lines, -23 lines 0 comments Download
D include/private/SkUtility.h View 1 chunk +0 lines, -32 lines 0 comments Download
M src/animator/SkMemberInfo.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M src/core/SkDraw.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M src/core/SkFindAndPlaceGlyph.h View 1 5 chunks +5 lines, -4 lines 0 comments Download
M src/gpu/effects/GrPorterDuffXferProcessor.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download
M src/pdf/SkPDFMetadata.cpp View 1 5 chunks +5 lines, -4 lines 0 comments Download
M src/utils/SkTFitsIn.h View 1 6 chunks +6 lines, -5 lines 0 comments Download
M tests/CPlusPlusEleven.cpp View 1 8 chunks +9 lines, -8 lines 0 comments Download
M tools/BUILD.public.expected View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 27 (15 generated)
bungeman-skia
https://codereview.chromium.org/1561683002/diff/1/include/private/SkUniquePtr.h File include/private/SkUniquePtr.h (right): https://codereview.chromium.org/1561683002/diff/1/include/private/SkUniquePtr.h#newcode99 include/private/SkUniquePtr.h:99: /*constexpr*/ unique_ptr(std::nullptr_t) /*noexcept*/ : unique_ptr() { } std::nullptr_t is ...
4 years, 11 months ago (2016-01-05 18:54:43 UTC) #3
mtklein
lgtm lgtm lgtm lgtm!!!
4 years, 11 months ago (2016-01-05 18:56:08 UTC) #5
bungeman-skia
https://codereview.chromium.org/1561683002/diff/1/include/private/SkUniquePtr.h File include/private/SkUniquePtr.h (right): https://codereview.chromium.org/1561683002/diff/1/include/private/SkUniquePtr.h#newcode99 include/private/SkUniquePtr.h:99: /*constexpr*/ unique_ptr(std::nullptr_t) /*noexcept*/ : unique_ptr() { } On 2016/01/05 ...
4 years, 11 months ago (2016-01-05 18:59:41 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1561683002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1561683002/20001
4 years, 11 months ago (2016-01-05 18:59:57 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/5081)
4 years, 11 months ago (2016-01-05 19:02:23 UTC) #12
reed1
I need a book/tutorial lgtm
4 years, 11 months ago (2016-01-05 20:17:49 UTC) #14
bungeman-skia
I can reproduce the vc++12 issue (with vs2013). Of course with vc++14 (vs2015) everything works ...
4 years, 11 months ago (2016-01-05 21:26:08 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/1561683002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1561683002/40001
4 years, 11 months ago (2016-01-05 22:34:37 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-05 22:50:53 UTC) #21
bungeman-skia
I dunno, even if you've read the book/tutorial there a subtle things like this... https://codereview.chromium.org/1561683002/diff/20001/include/private/SkUniquePtr.h ...
4 years, 11 months ago (2016-01-05 22:56:53 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1561683002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1561683002/40001
4 years, 11 months ago (2016-01-05 22:58:51 UTC) #25
commit-bot: I haz the power
4 years, 11 months ago (2016-01-05 22:59:44 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/221524de3be1fc343ad328c5e99562f32b5cad9c

Powered by Google App Engine
This is Rietveld 408576698