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

Issue 1939503002: remove non-static uses of SkOncePtr (Closed)

Created:
4 years, 7 months ago by mtklein_C
Modified:
4 years, 7 months ago
Reviewers:
herb_g, 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

remove non-static uses of SkOncePtr Still slowly working through all the SK_DECLARE_STATIC_FOO macros. SkOncePtr is complicating things by having SkOncePtr delete its pointer and SkBaseOncePtr not. Simplify things by removing SkOncePtr, leaving only the leaky SkBaseOncePtr. We replace SkOncePtr<T> instead with SkOnce and T. In most cases this did not need to be a pointer, and in some cases here we're even saving a few bytes by replacing SkOncePtr<T> with SkOnce and a T. The dependency map of SK_DECLARE_STATIC_FOO is: SkBaseMutex -> SkBaseSemaphore -> SkBaseOncePtr They're intertwined enough that I think I've got to do all three in one next CL. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1939503002 Committed: https://skia.googlesource.com/skia/+/59c12e3f0071acfa685346487e54a2a311066dac

Patch Set 1 #

Patch Set 2 : small stuff #

Patch Set 3 : leave it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -81 lines) Patch
M include/core/SkColorTable.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M include/core/SkTypeface.h View 2 chunks +3 lines, -2 lines 0 comments Download
M include/gpu/GrProcessor.h View 1 chunk +1 line, -0 lines 0 comments Download
M include/private/SkOncePtr.h View 1 1 chunk +0 lines, -42 lines 0 comments Download
M src/core/SkBigPicture.h View 3 chunks +4 lines, -3 lines 0 comments Download
M src/core/SkBigPicture.cpp View 2 chunks +4 lines, -3 lines 0 comments Download
M src/core/SkColorTable.cpp View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M src/core/SkTypeface.cpp View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M src/image/SkSurface.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M tests/OncePtrTest.cpp View 1 2 2 chunks +2 lines, -19 lines 0 comments Download

Messages

Total messages: 23 (12 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/1939503002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939503002/20001
4 years, 7 months ago (2016-04-29 21:48:00 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/8229)
4 years, 7 months ago (2016-04-29 21:59:43 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/1939503002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939503002/40001
4 years, 7 months ago (2016-05-01 21:49:08 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-01 22:03:22 UTC) #12
mtklein_C
4 years, 7 months ago (2016-05-02 13:17:30 UTC) #14
reed1
Is there value in encapsulating this non-ptr pairing in a different helper class? struct { ...
4 years, 7 months ago (2016-05-02 13:26:59 UTC) #16
mtklein
On 2016/05/02 at 13:26:59, reed wrote: > Is there value in encapsulating this non-ptr pairing ...
4 years, 7 months ago (2016-05-02 13:35:42 UTC) #17
reed1
lgtm I'm not disagreeing, mostly because I don't really understand all the details, but we ...
4 years, 7 months ago (2016-05-02 13:45:06 UTC) #18
mtklein
On 2016/05/02 at 13:45:06, reed wrote: > lgtm > > I also see that, so ...
4 years, 7 months ago (2016-05-02 13:58:14 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939503002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939503002/40001
4 years, 7 months ago (2016-05-02 14:18:43 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-02 14:19:44 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/59c12e3f0071acfa685346487e54a2a311066dac

Powered by Google App Engine
This is Rietveld 408576698