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

Issue 925613002: Spin off SkTHashTable, SkTHashMap, SkTHashSet (Closed)

Created:
5 years, 10 months ago by mtklein_C
Modified:
5 years, 10 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Spin off SkTHashTable, SkTHashMap, SkTHashSet SkTHashTable is very similar to SkTDynamicHash, except it's generalized to support non-pointer value types. It doesn't support remove(), just to keep things simple (it's not hard to add). Instead of an iterator, it has foreach(), again, to keep things simple. SkTHashMap<K,V> and SkTHashSet<T> build a friendlier experience on top of SkTHashTable. BUG=skia: Committed: https://skia.googlesource.com/skia/+/979e0eacbd59327654d0c8d4216d6732413ef2a0

Patch Set 1 #

Total comments: 8

Patch Set 2 : florin #

Total comments: 2

Patch Set 3 : spelling #

Total comments: 1

Patch Set 4 : windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -0 lines) Patch
M gyp/tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkTemplates.h View 1 chunk +5 lines, -0 lines 0 comments Download
A src/core/SkTHash.h View 1 2 3 1 chunk +206 lines, -0 lines 0 comments Download
A tests/HashTest.cpp View 1 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
mtklein_C
We are sorely lacking in easy-to-use maps and sets. See if this works for you? ...
5 years, 10 months ago (2015-02-12 18:46:08 UTC) #2
f(malita)
Thanks, SkTHashSet is exactly what I need atm. https://codereview.chromium.org/925613002/diff/1/src/core/SkTHash.h File src/core/SkTHash.h (right): https://codereview.chromium.org/925613002/diff/1/src/core/SkTHash.h#newcode28 src/core/SkTHash.h:28: T* ...
5 years, 10 months ago (2015-02-12 19:37:11 UTC) #4
reed1
SkTemplates.h seems good https://codereview.chromium.org/925613002/diff/1/src/core/SkTHash.h File src/core/SkTHash.h (right): https://codereview.chromium.org/925613002/diff/1/src/core/SkTHash.h#newcode28 src/core/SkTHash.h:28: T* set(T val) { When is ...
5 years, 10 months ago (2015-02-12 19:49:15 UTC) #6
mtklein
https://codereview.chromium.org/925613002/diff/1/src/core/SkTHash.h File src/core/SkTHash.h (right): https://codereview.chromium.org/925613002/diff/1/src/core/SkTHash.h#newcode28 src/core/SkTHash.h:28: T* set(T val) { On 2015/02/12 19:49:15, reed1 wrote: ...
5 years, 10 months ago (2015-02-12 20:09:52 UTC) #8
f(malita)
The value params make me nervous, but I trust your template-fu :) lgtm https://codereview.chromium.org/925613002/diff/20001/src/core/SkTHash.h File ...
5 years, 10 months ago (2015-02-12 20:39:02 UTC) #9
mtklein
On 2015/02/12 20:39:02, f(malita) wrote: > The value params make me nervous, but I trust ...
5 years, 10 months ago (2015-02-12 20:40:24 UTC) #11
mtklein
https://codereview.chromium.org/925613002/diff/20001/src/core/SkTHash.h File src/core/SkTHash.h (right): https://codereview.chromium.org/925613002/diff/20001/src/core/SkTHash.h#newcode117 src/core/SkTHash.h:117: // Both of these stragegies are valid: On 2015/02/12 ...
5 years, 10 months ago (2015-02-12 20:40:30 UTC) #12
reed1
lgtm https://codereview.chromium.org/925613002/diff/40001/src/core/SkTHash.h File src/core/SkTHash.h (right): https://codereview.chromium.org/925613002/diff/40001/src/core/SkTHash.h#newcode10 src/core/SkTHash.h:10: // T and K are treated as ordinary ...
5 years, 10 months ago (2015-02-12 20:42:57 UTC) #13
f(malita)
On 2015/02/12 20:40:24, mtklein wrote: > On 2015/02/12 20:39:02, f(malita) wrote: > > The value ...
5 years, 10 months ago (2015-02-12 20:44:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/925613002/40001
5 years, 10 months ago (2015-02-12 20:47:35 UTC) #16
mtklein
> https://codereview.chromium.org/925613002/diff/40001/src/core/SkTHash.h#newcode10 > src/core/SkTHash.h:10: // T and K are treated as ordinary copyable C++ types. ...
5 years, 10 months ago (2015-02-12 20:47:45 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-VS2013-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-VS2013-x86-Debug-Trybot/builds/2434)
5 years, 10 months ago (2015-02-12 20:59:16 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/925613002/60001
5 years, 10 months ago (2015-02-12 21:03:45 UTC) #22
commit-bot: I haz the power
5 years, 10 months ago (2015-02-12 21:20:11 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/979e0eacbd59327654d0c8d4216d6732413ef2a0

Powered by Google App Engine
This is Rietveld 408576698