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

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

Issue 2032213002: cc: Put to_target and to_screen behind an accessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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 af75f19ae4cee735565b981a2c21ef5f7c72c9dd..6697d998c17a2e0d98a38a7637b7fe3ae7f284c5 100644
--- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
+++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
@@ -272,8 +272,8 @@ void setMinimalPropertyTrees(cc::PropertyTrees* propertyTrees, int ownerId)
if (transformTree.size() < 2) {
transformTree.Insert(cc::TransformNode(), kRealRootNodeId);
cc::TransformNode& transformNode = *transformTree.back();
- transformNode.data.target_id = kRealRootNodeId;
- transformNode.data.content_target_id = kSecondaryRootNodeId;
+ transformTree.SetTargetId(transformNode.id, kRealRootNodeId);
+ transformTree.SetContentTargetId(transformNode.id, kSecondaryRootNodeId);
transformNode.data.source_node_id = kRealRootNodeId;
transformNode.data.needs_local_transform_update = true;
transformNode.owner_id = ownerId;
« 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