| Index: src/gpu/SkGpuDevice.cpp
|
| diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
|
| index 0008540cb57defbc420f583e1f26383b43fc3581..90e53a0b1020cf3b36df9e6847944dee2c6f16bf 100644
|
| --- a/src/gpu/SkGpuDevice.cpp
|
| +++ b/src/gpu/SkGpuDevice.cpp
|
| @@ -1659,25 +1659,14 @@ void SkGpuDevice::drawTextBlob(const SkDraw& draw, const SkTextBlob* blob, SkSca
|
|
|
| SkDEBUGCODE(this->validate();)
|
|
|
| - fTextContext->drawTextBlob(this, fRenderTarget, fClip, paint, *draw.fMatrix,
|
| + fTextContext->drawTextBlob(fRenderTarget, fClip, paint, *draw.fMatrix,
|
| blob, x, y, drawFilter, draw.fClip->getBounds());
|
| }
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| bool SkGpuDevice::onShouldDisableLCD(const SkPaint& paint) const {
|
| - if (paint.getShader() ||
|
| - !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode) ||
|
| - paint.getMaskFilter() ||
|
| - paint.getRasterizer() ||
|
| - paint.getColorFilter() ||
|
| - paint.getPathEffect() ||
|
| - paint.isFakeBoldText() ||
|
| - paint.getStyle() != SkPaint::kFill_Style)
|
| - {
|
| - return true;
|
| - }
|
| - return false;
|
| + return GrTextContext::ShouldDisableLCD(paint);
|
| }
|
|
|
| void SkGpuDevice::flush() {
|
|
|