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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 1479883002: cc: Fix draw transform computation for non-drawn layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove LayerImpl::draw_transform() Created 5 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
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 596476081d1b175e64dcaf8246c6b47f83d837ad..757283acaf7781d862d3c3f526f234ba1cd8462c 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -721,7 +721,7 @@ bool LayerTreeImpl::UpdateDrawProperties(bool update_lcd_text) {
Occlusion occlusion =
inside_replica ? Occlusion()
: occlusion_tracker.GetCurrentOcclusionForLayer(
- it->draw_transform());
+ it->DrawTransform());
it->draw_properties().occlusion_in_content_space = occlusion;
}
@@ -741,7 +741,7 @@ bool LayerTreeImpl::UpdateDrawProperties(bool update_lcd_text) {
? Occlusion()
: occlusion_tracker.GetCurrentOcclusionForContributingSurface(
it->render_surface()->draw_transform() *
- it->draw_transform());
+ it->DrawTransform());
mask->draw_properties().occlusion_in_content_space = mask_occlusion;
}
if (LayerImpl* replica = it->replica_layer()) {
@@ -812,6 +812,10 @@ void LayerTreeImpl::BuildPropertyTreesForTesting() {
layer_tree_host_impl_->DrawTransform(), &property_trees_);
}
+void LayerTreeImpl::IncrementRenderSurfaceListIdForTesting() {
+ render_surface_layer_list_id_++;
+}
+
const LayerImplList& LayerTreeImpl::RenderSurfaceLayerList() const {
// If this assert triggers, then the list is dirty.
DCHECK(!needs_update_draw_properties_);

Powered by Google App Engine
This is Rietveld 408576698