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

Unified Diff: cc/test/tiled_layer_test_common.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: fixed compile error Created 8 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
Index: cc/test/tiled_layer_test_common.cc
diff --git a/cc/test/tiled_layer_test_common.cc b/cc/test/tiled_layer_test_common.cc
index 12172f1d6cb23ed7f9825dafc7a3821e51a9682e..648a80366cca86c5887d30eb984984ba3d9677d5 100644
--- a/cc/test/tiled_layer_test_common.cc
+++ b/cc/test/tiled_layer_test_common.cc
@@ -107,6 +107,15 @@ void FakeTiledLayer::setNeedsDisplayRect(const gfx::RectF& rect)
TiledLayer::setNeedsDisplayRect(rect);
}
+void FakeTiledLayer::setCanUseLCDText(bool useLCDText)
+{
+ // FIXME: Do not call TiledLayer::setCanUseLCDText, which changes border-texel option.
+ // Otherwise tests that rely on NoBorderTexels data and count the number of commits/updates will fail.
+ // This will be fixed once we decouple using LCD text and border texels on tiles.
+ // crbug.com/160072
+ Layer::setCanUseLCDText(useLCDText);
+}
+
void FakeTiledLayer::setTexturePriorities(const PriorityCalculator& calculator)
{
// Ensure there is always a target render surface available. If none has been

Powered by Google App Engine
This is Rietveld 408576698