diff options
author | Behdad Esfahbod <behdad@google.com> | 2014-08-20 17:41:51 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@google.com> | 2014-08-21 14:00:25 -0400 |
commit | 288c915963b3500c7efb958ba613650e2ecdfdfa (patch) | |
tree | 78cc7881807605f278d6ffbd75e8e688f97fe6d9 /include/minikin/Layout.h | |
parent | f952161b874fd2e9af474b9fd2ebcca1f3bb4555 (diff) | |
download | android_frameworks_minikin-288c915963b3500c7efb958ba613650e2ecdfdfa.tar.gz android_frameworks_minikin-288c915963b3500c7efb958ba613650e2ecdfdfa.tar.bz2 android_frameworks_minikin-288c915963b3500c7efb958ba613650e2ecdfdfa.zip |
Speed up cache lookup
Avoid copying the string for cache lookup.
Bug: 17111260
Change-Id: Ic220bfc991fc6b3dada197304aabdf72a8941bd7
Diffstat (limited to 'include/minikin/Layout.h')
-rw-r--r-- | include/minikin/Layout.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/minikin/Layout.h b/include/minikin/Layout.h index 1a0df99..c88d087 100644 --- a/include/minikin/Layout.h +++ b/include/minikin/Layout.h @@ -97,6 +97,8 @@ public: static void purgeCaches(); private: + friend class LayoutCacheKey; + // Find a face in the mFaces vector, or create a new entry int findFace(FakedFont face, LayoutContext* ctx); |