bool PlatformContextSkia::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 disabled when we are drawing // onto a layer. if (isDrawingToLayer()) return false; return m_gc->shouldSmoothFonts(); }
bool PlatformContextSkia::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 disabled when we are drawing // onto a layer. if (isDrawingToLayer()) return false; // If this text is not in an image buffer and so won't be externally // composited, then subpixel antialiasing is fine. return !isDrawingToImageBuffer(); }