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 |