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

Unified Diff: services/gfx/compositor/scene_state.cc

Issue 1749063002: Mozart: Improve internal scene graph representation. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-0
Patch Set: avoid unnecessary hashtable lookups Created 4 years, 10 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/scene_state.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/scene_state.cc
diff --git a/services/gfx/compositor/scene_state.cc b/services/gfx/compositor/scene_state.cc
index c3b457569e96de86bda81ebfb6614a0aeb06e31d..319d4ed4700b822935727e5820525d2a6f1d9621 100644
--- a/services/gfx/compositor/scene_state.cc
+++ b/services/gfx/compositor/scene_state.cc
@@ -8,7 +8,9 @@ namespace compositor {
SceneState::SceneState(mojo::gfx::composition::SceneTokenPtr scene_token,
const std::string& label)
- : scene_def_(scene_token.Pass(), label), weak_factory_(this) {}
+ : scene_token_(scene_token.Pass()),
+ scene_def_(SceneLabel(scene_token_->value, label)),
+ weak_factory_(this) {}
SceneState::~SceneState() {
// The scene implementation and all of its bindings must be destroyed
@@ -32,7 +34,7 @@ void SceneState::DispatchSceneFrameCallbacks(
std::ostream& operator<<(std::ostream& os, SceneState* scene_state) {
if (!scene_state)
return os << "null";
- return os << scene_state->FormattedLabel();
+ return os << scene_state->scene_def()->FormattedLabel();
}
} // namespace compositor
« no previous file with comments | « services/gfx/compositor/scene_state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698