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

Unified Diff: src/core/SkScalerContext.h

Issue 411313002: Colored Emoji not drawn in Chrome if font style is set as Bold (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixing typo error Created 6 years, 5 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 | « no previous file | src/ports/SkFontHost_FreeType.cpp » ('j') | src/ports/SkFontHost_FreeType.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkScalerContext.h
diff --git a/src/core/SkScalerContext.h b/src/core/SkScalerContext.h
index be5d3b555eb51ebae1681e69e126db22c8ad910c..e2207fefe2acba34d1ee2d3030330c60de6fec4a 100644
--- a/src/core/SkScalerContext.h
+++ b/src/core/SkScalerContext.h
@@ -266,6 +266,11 @@ protected:
*/
virtual SkUnichar generateGlyphToChar(uint16_t glyphId);
+ /** In case of Bitmap font like Colored Emoji font we need to disable
+ * fGenerateImageFromPath as generating image from path is not possible.
+ */
+ void updateImageFromPath(bool value) { fGenerateImageFromPath = value; }
reed1 2014/09/05 13:29:42 can we combine these two, and only have one method
h.joshi 2014/09/05 14:06:31 Done.
+
void forceGenerateImageFromPath() { fGenerateImageFromPath = true; }
private:
« no previous file with comments | « no previous file | src/ports/SkFontHost_FreeType.cpp » ('j') | src/ports/SkFontHost_FreeType.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698