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

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

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/render/render_layer.cc ('k') | services/gfx/compositor/scene_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/scene_state.h
diff --git a/services/gfx/compositor/scene_state.h b/services/gfx/compositor/scene_state.h
index 3b6743f2c4e4d1608fc8472905b2c2b4cd942446..47526e301267979b6e6f255646b1f9b8258d9895 100644
--- a/services/gfx/compositor/scene_state.h
+++ b/services/gfx/compositor/scene_state.h
@@ -34,8 +34,8 @@ class SceneState {
// Gets the token used to refer to this scene globally.
// Caller does not obtain ownership of the token.
- mojo::gfx::composition::SceneToken* scene_token() {
- return scene_def_.scene_token();
+ const mojo::gfx::composition::SceneToken* scene_token() {
+ return scene_token_.get();
}
// Gets or sets the scene listener interface.
@@ -58,10 +58,8 @@ class SceneState {
void DispatchSceneFrameCallbacks(
const mojo::gfx::composition::FrameInfo& frame_info);
- const std::string& label() { return scene_def_.label(); }
- std::string FormattedLabel() { return scene_def_.FormattedLabel(); }
-
private:
+ mojo::gfx::composition::SceneTokenPtr scene_token_;
std::unique_ptr<mojo::gfx::composition::Scene> scene_impl_;
mojo::gfx::composition::SceneListenerPtr scene_listener_;
std::vector<SceneFrameCallback> pending_frame_callbacks_;
« no previous file with comments | « services/gfx/compositor/render/render_layer.cc ('k') | services/gfx/compositor/scene_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698