aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-04-05 16:55:41 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-05 16:55:41 -0700
commit52b88cc61780425a9f86201bc727558ee08a921a (patch)
treee3e9c449dda8d14dbfde67409624b15e269b6de8
parentae8c933ca89315c1256bcf23749b5ee5cbc0d53c (diff)
"Fix" compiler issue in SkRandomScalerContext
-rw-r--r--src/fonts/SkRandomScalerContext.cpp2
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;