From 52b88cc61780425a9f86201bc727558ee08a921a Mon Sep 17 00:00:00 2001 From: robertphillips Date: Tue, 5 Apr 2016 16:55:41 -0700 Subject: "Fix" compiler issue in SkRandomScalerContext BUG=skia:5164 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1862643002 Review URL: https://codereview.chromium.org/1862643002 --- src/fonts/SkRandomScalerContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fonts') diff --git a/src/fonts/SkRandomScalerContext.cpp b/src/fonts/SkRandomScalerContext.cpp index 1f6fbe041e..c555dd2294 100644 --- a/src/fonts/SkRandomScalerContext.cpp +++ b/src/fonts/SkRandomScalerContext.cpp @@ -60,7 +60,7 @@ void SkRandomScalerContext::generateAdvance(SkGlyph* glyph) { void SkRandomScalerContext::generateMetrics(SkGlyph* glyph) { // Here we will change the mask format of the glyph // NOTE this is being overridden by the base class - SkMask::Format format; + SkMask::Format format = SkMask::kARGB32_Format; // init to handle defective compilers switch (glyph->getGlyphID() % 4) { case 0: format = SkMask::kLCD16_Format; -- cgit v1.2.3