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

Unified Diff: cc/TiledLayerChromium.cpp

Issue 11027045: Mark layers whether they can use LCD text depending on content-opacity, draw-opacity, and draw-tran… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Renamed useLCDText to canUseLCDText Created 8 years, 2 months 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/TiledLayerChromium.h ('k') | webkit/compositor_bindings/WebContentLayerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/TiledLayerChromium.cpp
diff --git a/cc/TiledLayerChromium.cpp b/cc/TiledLayerChromium.cpp
index 3b72f19b7f70ce5f8ebedd71c4adc910fcfa0dc8..9a9b566411dea3949e414dc2cf4a95bfb753d1fe 100644
--- a/cc/TiledLayerChromium.cpp
+++ b/cc/TiledLayerChromium.cpp
@@ -301,16 +301,16 @@ void TiledLayerChromium::setNeedsDisplayRect(const FloatRect& dirtyRect)
LayerChromium::setNeedsDisplayRect(dirtyRect);
}
-void TiledLayerChromium::setUseLCDText(bool useLCDText)
+void TiledLayerChromium::setCanUseLCDText(bool canUseLCDText)
{
- LayerChromium::setUseLCDText(useLCDText);
+ LayerChromium::setCanUseLCDText(canUseLCDText);
CCLayerTilingData::BorderTexelOption borderTexelOption;
#if OS(ANDROID)
// Always want border texels and GL_LINEAR due to pinch zoom.
borderTexelOption = CCLayerTilingData::HasBorderTexels;
#else
- borderTexelOption = useLCDText ? CCLayerTilingData::NoBorderTexels : CCLayerTilingData::HasBorderTexels;
+ borderTexelOption = canUseLCDText ? CCLayerTilingData::NoBorderTexels : CCLayerTilingData::HasBorderTexels;
#endif
setBorderTexelOption(borderTexelOption);
}
« no previous file with comments | « cc/TiledLayerChromium.h ('k') | webkit/compositor_bindings/WebContentLayerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698