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

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: 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') | skia/ext/analysis_canvas.h » ('J')
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 e69d3217044ca3e7e47f36ad1cc4e230948a73ed..db85a34b3b834583be9d5d1423ed644e68c0e10d 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -853,10 +853,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') | skia/ext/analysis_canvas.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698