diff options
author | jvanverth <jvanverth@google.com> | 2014-07-22 13:25:26 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-07-22 13:25:26 -0700 |
commit | dd6d22751a1ec858daaf78c3929c22737483e3db (patch) | |
tree | c336f0a593044a91810d6cf49db16f8d82562267 /src/core/SkDescriptor.h | |
parent | 1c63bf6e90f160c9a0d7484dedfaf87c0aa341e9 (diff) |
Replace use of GrTHashTable in GrFontCache with SkTDynamicHash.
Searching the font cache for existing text strikes was showing up
as a hotspot on Android. This change reduces that cost.
R=bsalomon@google.com, robertphillips@google.com, mtklein@google.com
Author: jvanverth@google.com
Review URL: https://codereview.chromium.org/390103002
Diffstat (limited to 'src/core/SkDescriptor.h')
-rw-r--r-- | src/core/SkDescriptor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkDescriptor.h b/src/core/SkDescriptor.h index c526451af5..d550863568 100644 --- a/src/core/SkDescriptor.h +++ b/src/core/SkDescriptor.h @@ -123,7 +123,7 @@ private: static uint32_t ComputeChecksum(const SkDescriptor* desc) { const uint32_t* ptr = (const uint32_t*)desc + 1; // skip the checksum field size_t len = desc->fLength - sizeof(uint32_t); - return SkChecksum::Compute(ptr, len); + return SkChecksum::Murmur3(ptr, len); } // private so no one can create one except our factories |