diff options
Diffstat (limited to 'chromium/third_party/skia/src/core')
-rw-r--r-- | chromium/third_party/skia/src/core/SkGlyphRunPainter.cpp | 3 | ||||
-rw-r--r-- | chromium/third_party/skia/src/core/SkScalerContext.h | 10 |
2 files changed, 7 insertions, 6 deletions
diff --git a/chromium/third_party/skia/src/core/SkGlyphRunPainter.cpp b/chromium/third_party/skia/src/core/SkGlyphRunPainter.cpp index 9ef9c05287f..4e497abc72d 100644 --- a/chromium/third_party/skia/src/core/SkGlyphRunPainter.cpp +++ b/chromium/third_party/skia/src/core/SkGlyphRunPainter.cpp @@ -266,7 +266,8 @@ void SkGlyphRunListPainter::processARGBFallback( // If the situation that the matrix is simple, and all the glyphs are small enough. Go fast! bool useFastPath = - viewMatrix.isScaleTranslate() && conservativeMaxGlyphDimension <= maxGlyphDimension; + viewMatrix.isScaleTranslate() + && conservativeMaxGlyphDimension <= SkStrikeCommon::kSkSideTooBigForAtlas; auto glyphIDs = SkSpan<const SkGlyphID>{fARGBGlyphsIDs}; diff --git a/chromium/third_party/skia/src/core/SkScalerContext.h b/chromium/third_party/skia/src/core/SkScalerContext.h index 06ccce2ebb3..36fc882df70 100644 --- a/chromium/third_party/skia/src/core/SkScalerContext.h +++ b/chromium/third_party/skia/src/core/SkScalerContext.h @@ -96,6 +96,7 @@ public: } SkScalar getContrast() const { + sk_ignore_unused_variable(fReservedAlign); return SkIntToScalar(fContrast) / ((1 << 8) - 1); } void setContrast(SkScalar c) { @@ -206,11 +207,6 @@ public: return static_cast<SkMask::Format>(fMaskFormat); } -private: - // TODO: get rid of these bad friends. - friend class SkScalerContext; - friend class SkScalerContext_DW; - SkColor getLuminanceColor() const { return fLumBits; } @@ -219,6 +215,10 @@ private: void setLuminanceColor(SkColor c) { fLumBits = c; } + +private: + // TODO: remove + friend class SkScalerContext; }; SK_END_REQUIRE_DENSE |