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

Issue 402693003: Replace GrTHash with SkTDynamicHash (Closed)

Created:
6 years, 5 months ago by robertphillips
Modified:
6 years, 5 months ago
Reviewers:
mtklein, bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Replace GrTHash with SkTDynamicHash Mike: SkTDynamicHash changes Brian: Ganesh changes This removes three instances of GrTHash leaving the ones in GrTextStrike.h Committed: https://skia.googlesource.com/skia/+/3d533ac917eaadf2fb3561f57d7266d8c0e665fd

Patch Set 1 #

Patch Set 2 : Update to ToT #

Patch Set 3 : Cleanup #

Patch Set 4 : Fix initializer order #

Total comments: 15

Patch Set 5 : Fix misplaced ',' #

Patch Set 6 : Address code review comments #

Patch Set 7 : Remove mutateAll entry point #

Total comments: 2

Patch Set 8 : Cleanup #

Patch Set 9 : Adjusted hash function #

Patch Set 10 : Fix compiler complaints #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -158 lines) Patch
M src/core/SkTDynamicHash.h View 1 2 3 4 5 6 2 chunks +44 lines, -1 line 0 comments Download
M src/gpu/GrBinHashKey.h View 1 2 3 4 5 6 7 8 1 chunk +58 lines, -0 lines 2 comments Download
M src/gpu/GrLayerCache.h View 1 2 3 4 5 6 7 8 9 5 chunks +42 lines, -19 lines 0 comments Download
M src/gpu/GrLayerCache.cpp View 1 2 3 4 5 6 7 8 chunks +36 lines, -95 lines 0 comments Download
M src/gpu/effects/GrTextureStripAtlas.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -20 lines 0 comments Download
M src/gpu/effects/GrTextureStripAtlas.cpp View 4 chunks +9 lines, -9 lines 0 comments Download
M src/gpu/gl/GrGpuGL.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M tests/DynamicHashTest.cpp View 1 2 3 4 5 6 4 chunks +48 lines, -5 lines 0 comments Download
M tests/GrBinHashKeyTest.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -8 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
robertphillips
6 years, 5 months ago (2014-07-17 19:18:38 UTC) #1
mtklein
https://codereview.chromium.org/402693003/diff/60001/src/core/SkTDynamicHash.h File src/core/SkTDynamicHash.h (right): https://codereview.chromium.org/402693003/diff/60001/src/core/SkTDynamicHash.h#newcode139 src/core/SkTDynamicHash.h:139: template<class Functor> I'd add a space between template and ...
6 years, 5 months ago (2014-07-17 19:36:21 UTC) #2
bsalomon
I defer to Mike
6 years, 5 months ago (2014-07-17 19:51:30 UTC) #3
robertphillips
https://codereview.chromium.org/402693003/diff/60001/src/core/SkTDynamicHash.h File src/core/SkTDynamicHash.h (right): https://codereview.chromium.org/402693003/diff/60001/src/core/SkTDynamicHash.h#newcode139 src/core/SkTDynamicHash.h:139: template<class Functor> On 2014/07/17 19:36:20, mtklein wrote: > I'd ...
6 years, 5 months ago (2014-07-17 20:02:47 UTC) #4
robertphillips
removed mutateAll entry point
6 years, 5 months ago (2014-07-17 20:16:27 UTC) #5
mtklein
lgtm https://codereview.chromium.org/402693003/diff/110001/src/gpu/GrLayerCache.cpp File src/gpu/GrLayerCache.cpp (right): https://codereview.chromium.org/402693003/diff/110001/src/gpu/GrLayerCache.cpp#newcode70 src/gpu/GrLayerCache.cpp:70: UnlockAndDeleteFunctor(GrLayerCache* cache) : fCache(cache) {} Dead code now?
6 years, 5 months ago (2014-07-17 20:23:30 UTC) #6
robertphillips
PTAL. I had to adjust the hash function to achieve performance parity in the TextureStripAtlas. ...
6 years, 5 months ago (2014-07-18 15:00:36 UTC) #7
mtklein
Still LGTM. https://codereview.chromium.org/402693003/diff/170001/src/gpu/GrBinHashKey.h File src/gpu/GrBinHashKey.h (right): https://codereview.chromium.org/402693003/diff/170001/src/gpu/GrBinHashKey.h#newcode46 src/gpu/GrBinHashKey.h:46: if (fHash != other.fHash) { I've always ...
6 years, 5 months ago (2014-07-19 14:38:57 UTC) #8
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 5 months ago (2014-07-20 16:12:21 UTC) #9
robertphillips
https://codereview.chromium.org/402693003/diff/170001/src/gpu/GrBinHashKey.h File src/gpu/GrBinHashKey.h (right): https://codereview.chromium.org/402693003/diff/170001/src/gpu/GrBinHashKey.h#newcode46 src/gpu/GrBinHashKey.h:46: if (fHash != other.fHash) { I think it is ...
6 years, 5 months ago (2014-07-20 16:12:30 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/402693003/170001
6 years, 5 months ago (2014-07-20 16:12:56 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-20 16:40:05 UTC) #12
Message was sent while issue was closed.
Change committed as 3d533ac917eaadf2fb3561f57d7266d8c0e665fd

Powered by Google App Engine
This is Rietveld 408576698