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

Unified Diff: services/gfx/compositor/graph/node_def.cc

Issue 1778793002: Mozart: Make Snapshot immutable. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-2
Patch Set: Created 4 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
« no previous file with comments | « services/gfx/compositor/compositor_engine.cc ('k') | services/gfx/compositor/graph/snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/graph/node_def.cc
diff --git a/services/gfx/compositor/graph/node_def.cc b/services/gfx/compositor/graph/node_def.cc
index c743e5dae5ed15215a795fecdb951d493560be5a..6a1dfc9a974083244d8bf59ee8bcbe6a2a86f066 100644
--- a/services/gfx/compositor/graph/node_def.cc
+++ b/services/gfx/compositor/graph/node_def.cc
@@ -144,7 +144,7 @@ void NodeDef::TraverseSnapshottedChildren(const SceneContent* content,
for (uint32_t child_node_id : child_node_ids_) {
const NodeDef* child_node = content->GetNode(child_node_id);
DCHECK(child_node);
- DCHECK(!snapshot->IsBlocked(child_node));
+ DCHECK(!snapshot->IsNodeBlocked(child_node));
if (!func(child_node))
return;
}
@@ -156,7 +156,7 @@ void NodeDef::TraverseSnapshottedChildren(const SceneContent* content,
for (uint32_t child_node_id : child_node_ids_) {
const NodeDef* child_node = content->GetNode(child_node_id);
DCHECK(child_node);
- if (!snapshot->IsBlocked(child_node) && !func(child_node))
+ if (!snapshot->IsNodeBlocked(child_node) && !func(child_node))
return;
}
return;
@@ -169,7 +169,7 @@ void NodeDef::TraverseSnapshottedChildren(const SceneContent* content,
for (uint32_t child_node_id : child_node_ids_) {
const NodeDef* child_node = content->GetNode(child_node_id);
DCHECK(child_node);
- if (!snapshot->IsBlocked(child_node)) {
+ if (!snapshot->IsNodeBlocked(child_node)) {
func(child_node); // don't care about the result because we
return; // always stop after the first one
}
« no previous file with comments | « services/gfx/compositor/compositor_engine.cc ('k') | services/gfx/compositor/graph/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698