Index: sky/engine/platform/graphics/GraphicsContext.cpp |
diff --git a/sky/engine/platform/graphics/GraphicsContext.cpp b/sky/engine/platform/graphics/GraphicsContext.cpp |
index 2a7fb3513309db43c60c37a9e355ba61b5a7893f..a0a8870f9ad8ae5f73390d31bcaecf0f543e050b 100644 |
--- a/sky/engine/platform/graphics/GraphicsContext.cpp |
+++ b/sky/engine/platform/graphics/GraphicsContext.cpp |
@@ -385,18 +385,6 @@ void GraphicsContext::adjustTextRenderMode(SkPaint* paint) |
paint->setLCDRenderText(couldUseLCDRenderedText()); |
} |
-bool GraphicsContext::couldUseLCDRenderedText() |
-{ |
- // Our layers only have a single alpha channel. This means that subpixel |
- // rendered text cannot be composited correctly when the layer is |
- // collapsed. Therefore, subpixel text is contextDisabled when we are drawing |
- // onto a layer. |
- if (contextDisabled() || m_canvas->isDrawingToLayer() || !isCertainlyOpaque()) |
- return false; |
- |
- return shouldSmoothFonts(); |
-} |
- |
void GraphicsContext::setCompositeOperation(CompositeOperator compositeOperation, WebBlendMode blendMode) |
{ |
if (contextDisabled()) |