diff options
author | robertphillips <robertphillips@google.com> | 2016-04-05 16:55:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-05 16:55:41 -0700 |
commit | 52b88cc61780425a9f86201bc727558ee08a921a (patch) | |
tree | e3e9c449dda8d14dbfde67409624b15e269b6de8 /src | |
parent | ae8c933ca89315c1256bcf23749b5ee5cbc0d53c (diff) |
"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
Diffstat (limited to 'src')
-rw-r--r-- | src/fonts/SkRandomScalerContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |