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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 1013273003: cc: Force an update on tile size after viewport resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: attempt 3? Created 5 years, 9 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
Index: cc/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index 93d658159516549e0164c2e55790fea982a05370..da042ff2c72406310544b761be54e7f12ee12123 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -568,6 +568,17 @@ void PictureLayerImpl::UpdateCanUseLCDTextAfterCommit() {
DCHECK(!RasterSourceUsesLCDText());
}
+void PictureLayerImpl::UpdateViewportAfterCommit() {
+ // When we are using GPU rasterization, the tiling texture size is dependant
+ // on the viewport size. Here we update the raster source, which in turn
+ // updates the tiling texture size.
+ DCHECK(layer_tree_impl()->IsPendingTree());
enne (OOO) 2015/03/19 17:55:24 IsSyncTree. Please make sure you have a commit to
danakj 2015/03/19 18:43:38 (Any single thread LayerTreeTest would)
+ DCHECK(layer_tree_impl()->use_gpu_rasterization());
+ tilings_->UpdateTilingsToCurrentRasterSource(
+ raster_source_, nullptr, invalidation_, MinimumContentsScale(),
+ MaximumContentsScale());
+}
+
bool PictureLayerImpl::RasterSourceUsesLCDText() const {
return raster_source_ ? raster_source_->CanUseLCDText()
: layer_tree_impl()->settings().can_use_lcd_text;

Powered by Google App Engine
This is Rietveld 408576698