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(); } |