| Index: cc/layers/content_layer.cc
|
| diff --git a/cc/layers/content_layer.cc b/cc/layers/content_layer.cc
|
| index 53c7120c09b11bc1addbb4525290dfe6d27f78f3..88031e49631cfd77c00c157a9f9931bf2e5f2d65 100644
|
| --- a/cc/layers/content_layer.cc
|
| +++ b/cc/layers/content_layer.cc
|
| @@ -36,7 +36,9 @@
|
| }
|
|
|
| ContentLayer::ContentLayer(ContentLayerClient* client)
|
| - : TiledLayer(), client_(client) {
|
| + : TiledLayer(),
|
| + client_(client),
|
| + can_use_lcd_text_last_frame_(can_use_lcd_text()) {
|
| }
|
|
|
| ContentLayer::~ContentLayer() {}
|
| @@ -72,6 +74,7 @@
|
| true);
|
|
|
| CreateUpdaterIfNeeded();
|
| + UpdateCanUseLCDText();
|
| }
|
|
|
| bool updated = TiledLayer::Update(queue, occlusion);
|
| @@ -115,6 +118,15 @@
|
| updater_->SetOpaque(opaque);
|
| }
|
|
|
| +void ContentLayer::UpdateCanUseLCDText() {
|
| + if (can_use_lcd_text_last_frame_ == can_use_lcd_text())
|
| + return;
|
| +
|
| + can_use_lcd_text_last_frame_ = can_use_lcd_text();
|
| + if (client_)
|
| + client_->DidChangeLayerCanUseLCDText();
|
| +}
|
| +
|
| bool ContentLayer::SupportsLCDText() const {
|
| return true;
|
| }
|
|
|