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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 13726013: Smart layer invalidation for LCD text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed compile error Created 7 years, 8 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 | « no previous file | cc/resources/picture_layer_tiling.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index a2c951c5275a8952f1c595ec8d6104deab995393..728c8f7d9fe14adca077a090218cb896e411e5c5 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -854,10 +854,7 @@ void PictureLayerImpl::UpdateLCDTextStatus() {
pending_layer->is_using_lcd_text_ = is_using_lcd_text_;
pending_layer->pile_ = PicturePileImpl::CreateFromOther(pending_layer->pile_,
is_using_lcd_text_);
-
- // TODO(enne): if we tracked text regions, we could just invalidate those
- // directly rather than tossing away every tile.
- pending_layer->tilings_->Invalidate(gfx::Rect(bounds()));
+ pending_layer->tilings_->InvalidateTilesWithText();
}
void PictureLayerImpl::ResetRasterScale() {
« no previous file with comments | « no previous file | cc/resources/picture_layer_tiling.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698