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

Unified Diff: src/gpu/GrTextStrike_impl.h

Issue 43383006: Clean up the GrTHashTable API. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add comment back Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrTextStrike.cpp ('k') | tests/HashCacheTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTextStrike_impl.h
diff --git a/src/gpu/GrTextStrike_impl.h b/src/gpu/GrTextStrike_impl.h
index 7f087fe05d18d07ef43b7e7979019bb895e1a1cc..abc2b8d114c625be19529e00af8a5050b9f2ff6a 100644
--- a/src/gpu/GrTextStrike_impl.h
+++ b/src/gpu/GrTextStrike_impl.h
@@ -13,9 +13,12 @@
class GrFontCache::Key {
public:
- Key(GrFontScaler* scaler) {
+ explicit Key(GrFontScaler* scaler) {
fFontScalerKey = scaler->getKey();
}
+ explicit Key(const GrKey* fontScalarKey) {
bsalomon 2013/10/25 20:48:47 does it make sense to have the GrFontScaler cons i
mtklein 2013/10/25 21:08:21 Nope. Gone.
+ fFontScalerKey = fontScalarKey;
+ }
intptr_t getHash() const { return fFontScalerKey->getHash(); }
« no previous file with comments | « src/gpu/GrTextStrike.cpp ('k') | tests/HashCacheTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698