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

Unified Diff: cc/layers/content_layer.cc

Issue 737943002: Update from https://crrev.com/304715 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « cc/layers/content_layer.h ('k') | cc/layers/content_layer_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/content_layer.cc
diff --git a/cc/layers/content_layer.cc b/cc/layers/content_layer.cc
index 88031e49631cfd77c00c157a9f9931bf2e5f2d65..53c7120c09b11bc1addbb4525290dfe6d27f78f3 100644
--- a/cc/layers/content_layer.cc
+++ b/cc/layers/content_layer.cc
@@ -36,9 +36,7 @@ scoped_refptr<ContentLayer> ContentLayer::Create(ContentLayerClient* client) {
}
ContentLayer::ContentLayer(ContentLayerClient* client)
- : TiledLayer(),
- client_(client),
- can_use_lcd_text_last_frame_(can_use_lcd_text()) {
+ : TiledLayer(), client_(client) {
}
ContentLayer::~ContentLayer() {}
@@ -74,7 +72,6 @@ bool ContentLayer::Update(ResourceUpdateQueue* queue,
true);
CreateUpdaterIfNeeded();
- UpdateCanUseLCDText();
}
bool updated = TiledLayer::Update(queue, occlusion);
@@ -118,15 +115,6 @@ void ContentLayer::SetContentsOpaque(bool opaque) {
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;
}
« no previous file with comments | « cc/layers/content_layer.h ('k') | cc/layers/content_layer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698