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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 252293003: cc: Make LTHI::NotifyTileInitialized more generic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « cc/layers/picture_layer_impl.h ('k') | cc/trees/layer_tree_host_impl.cc » ('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 8d08bbc48e123cdf15b2d350a226411eb5bb5adb..a61ed129884335c57cf8ad137a3b2394e3f86181 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -402,6 +402,14 @@ void PictureLayerImpl::UpdateTilePriorities() {
layer_tree_impl()->DidModifyTilePriorities();
}
+void PictureLayerImpl::NotifyTileInitialized(const Tile* tile) {
+ if (layer_tree_impl()->IsActiveTree()) {
+ gfx::RectF layer_damage_rect =
+ gfx::ScaleRect(tile->content_rect(), 1.f / tile->contents_scale());
+ AddDamageRect(layer_damage_rect);
+ }
+}
+
void PictureLayerImpl::DidBecomeActive() {
LayerImpl::DidBecomeActive();
tilings_->DidBecomeActive();
« no previous file with comments | « cc/layers/picture_layer_impl.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698