Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1378)

Unified Diff: Source/platform/graphics/GraphicsContext.cpp

Issue 724063004: Simplify GraphicsContext::couldUseLCDRenderedText() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: let's cut deeper Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/graphics/GraphicsContext.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContext.cpp
diff --git a/Source/platform/graphics/GraphicsContext.cpp b/Source/platform/graphics/GraphicsContext.cpp
index eb7f45712d580d03000b4ab6cf538b52f9f6aab8..3baa92ff0c32abab523a7540a7aee2b122fc4499 100644
--- a/Source/platform/graphics/GraphicsContext.cpp
+++ b/Source/platform/graphics/GraphicsContext.cpp
@@ -419,19 +419,6 @@ void GraphicsContext::adjustTextRenderMode(SkPaint* paint) const
paint->setLCDRenderText(couldUseLCDRenderedText());
}
-bool GraphicsContext::couldUseLCDRenderedText() const
-{
- ASSERT(m_canvas);
- // 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())
« no previous file with comments | « Source/platform/graphics/GraphicsContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698