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

Unified Diff: webkit/compositor_bindings/web_content_layer_impl.cc

Issue 11360093: Mark layers that can use LCD text based on layer transform and opacity. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reverted whitespace change Created 8 years 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 | « cc/occlusion_tracker_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « cc/occlusion_tracker_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698