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

Unified Diff: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp

Issue 2266223002: cc: Compute draw transforms dynamically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase! Created 4 years, 2 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/trees/property_tree_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
index 66a8962baec090b66a1eb61e1dcf1c401cc411db..6da762ae5c812bafc5220e027c91f8b02def466e 100644
--- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
+++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
@@ -521,6 +521,7 @@ int PropertyTreeManager::compositorIdForClipNode(
compositorNode.transform_id =
compositorIdForTransformNode(clipNode->localTransformSpace());
compositorNode.target_transform_id = kRealRootNodeId;
+ compositorNode.target_effect_id = kSecondaryRootNodeId;
compositorNode.applies_local_clip = true;
compositorNode.layers_are_clipped = true;
compositorNode.layers_are_clipped_when_surfaces_disabled = true;
@@ -673,6 +674,7 @@ void PropertyTreeManager::buildEffectNodesRecursively(
dummyClip.owner_id = dummyLayer->id();
dummyClip.transform_id = kRealRootNodeId;
dummyClip.target_transform_id = kRealRootNodeId;
+ dummyClip.target_effect_id = kSecondaryRootNodeId;
cc::EffectNode& effectNode = *effectTree().Node(effectTree().Insert(
cc::EffectNode(), compositorIdForCurrentEffectNode()));
@@ -765,6 +767,7 @@ void PaintArtifactCompositor::update(
// Mark the property trees as having been rebuilt.
layerTree->property_trees()->sequence_number = kPropertyTreeSequenceNumber;
layerTree->property_trees()->needs_rebuild = false;
+ layerTree->property_trees()->ResetCachedData();
}
} // namespace blink
« no previous file with comments | « cc/trees/property_tree_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698