Index: webkit/compositor_bindings/web_content_layer_impl.cc |
diff --git a/webkit/compositor_bindings/web_content_layer_impl.cc b/webkit/compositor_bindings/web_content_layer_impl.cc |
index 6f75ee2bfeb57c59e3f9de8cba31c5a3a553679d..1c99ffb00c2fb367de6c258f04204eb1ca0cac11 100644 |
--- a/webkit/compositor_bindings/web_content_layer_impl.cc |
+++ b/webkit/compositor_bindings/web_content_layer_impl.cc |
@@ -72,9 +72,9 @@ void WebContentLayerImpl::setAutomaticallyComputeRasterScale(bool automatic) |
m_layer->layer()->setAutomaticallyComputeRasterScale(automatic); |
} |
+// TODO(alokp): Remove this function from WebContentLayer API. |
void WebContentLayerImpl::setUseLCDText(bool enable) |
{ |
- m_layer->layer()->setUseLCDText(enable); |
} |
void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable) |
@@ -87,11 +87,15 @@ void WebContentLayerImpl::paintContents(SkCanvas* canvas, const gfx::Rect& clip, |
{ |
if (!m_client) |
return; |
+ |
+ bool useLCDText = usingPictureLayer() ? |
+ false : |
+ static_cast<ContentLayer*>(m_layer->layer())->useLCDText(); |
WebFloatRect webOpaque; |
m_client->paintContents(canvas, |
clip, |
#if WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT |
- m_layer->layer()->useLCDText(), |
+ useLCDText, |
#endif // WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT |
webOpaque); |
opaque = webOpaque; |