Skip to content

Commit

Permalink
Remove only use of SkPaint::kGenA8FromLCD (flutter#4994)
Browse files Browse the repository at this point in the history
Skia is removing SkPaint::kGenA8FromLCD (this information is now part of the SkPixelGeometry on SkSurface). This flag never appears to be mentioned anywhere else in the code and appears to be left over from being copied from blink (this code in blink used to set this flag conditionally).
  • Loading branch information
brianosman authored Apr 13, 2018
1 parent b7358b3 commit 37e5df0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sky/engine/platform/fonts/win/FontPlatformDataWin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ void FontPlatformData::setupPaint(SkPaint* paint,
uint32_t textFlags = paintTextFlags();
uint32_t flags = paint->getFlags();
static const uint32_t textFlagsMask = SkPaint::kAntiAlias_Flag |
SkPaint::kLCDRenderText_Flag |
SkPaint::kGenA8FromLCD_Flag;
SkPaint::kLCDRenderText_Flag;
flags &= ~textFlagsMask;

if (ts <= kMaxSizeForEmbeddedBitmap)
Expand Down

0 comments on commit 37e5df0

Please sign in to comment.