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

Unified Diff: services/gfx/compositor/graph/scene_content.h

Issue 1874593002: Mozart: Rename scene graph classes. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-2
Patch Set: Created 4 years, 8 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/graph/resources.cc ('k') | services/gfx/compositor/graph/scene_content.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/graph/scene_content.h
diff --git a/services/gfx/compositor/graph/scene_content.h b/services/gfx/compositor/graph/scene_content.h
index c0967ffd2ee4b43aa67c68b39eef51c5fc00afd0..314811b85319319b0f539e7bba9b834a1db26609 100644
--- a/services/gfx/compositor/graph/scene_content.h
+++ b/services/gfx/compositor/graph/scene_content.h
@@ -13,8 +13,8 @@
#include "base/memory/weak_ptr.h"
#include "mojo/services/gfx/composition/interfaces/hit_tests.mojom.h"
#include "mojo/services/gfx/composition/interfaces/scenes.mojom.h"
-#include "services/gfx/compositor/graph/node_def.h"
-#include "services/gfx/compositor/graph/resource_def.h"
+#include "services/gfx/compositor/graph/nodes.h"
+#include "services/gfx/compositor/graph/resources.h"
#include "services/gfx/compositor/graph/scene_label.h"
class SkCanvas;
@@ -69,14 +69,14 @@ class SceneContent : public base::RefCounted<SceneContent> {
mojo::gfx::composition::SceneHitPtr* out_scene_hit) const;
// Gets the requested resource, never null because it must be present.
- const ResourceDef* GetResource(uint32_t resource_id,
- ResourceDef::Type resource_type) const;
+ const Resource* GetResource(uint32_t resource_id,
+ Resource::Type resource_type) const;
// Gets the requested node, never null because it must be present.
- const NodeDef* GetNode(uint32_t node_id) const;
+ const Node* GetNode(uint32_t node_id) const;
// Gets the root node if it exists, otherwise returns nullptr.
- const NodeDef* GetRootNodeIfExists() const;
+ const Node* GetRootNodeIfExists() const;
private:
friend class base::RefCounted<SceneContent>;
@@ -89,8 +89,8 @@ class SceneContent : public base::RefCounted<SceneContent> {
const SceneLabel label_;
const uint32_t version_;
- std::unordered_map<uint32_t, scoped_refptr<const ResourceDef>> resources_;
- std::unordered_map<uint32_t, scoped_refptr<const NodeDef>> nodes_;
+ std::unordered_map<uint32_t, scoped_refptr<const Resource>> resources_;
+ std::unordered_map<uint32_t, scoped_refptr<const Node>> nodes_;
DISALLOW_COPY_AND_ASSIGN(SceneContent);
};
@@ -111,20 +111,20 @@ class SceneContentBuilder {
// Ensures the requested resource is part of the retained scene graph and
// returns a reference to it, or nullptr if an error occurred.
- const ResourceDef* RequireResource(uint32_t resource_id,
- ResourceDef::Type resource_type,
- uint32_t referrer_node_id);
+ const Resource* RequireResource(uint32_t resource_id,
+ Resource::Type resource_type,
+ uint32_t referrer_node_id);
// Ensures the requested node is part of the retained scene graph and
// returns a reference to it, or nullptr if an error occurred.
- const NodeDef* RequireNode(uint32_t node_id, uint32_t referrer_node_id);
+ const Node* RequireNode(uint32_t node_id, uint32_t referrer_node_id);
// Builds the content graph.
// Returns nullptr if an error occurred.
scoped_refptr<const SceneContent> Build();
private:
- bool AddNode(const NodeDef* node);
+ bool AddNode(const Node* node);
scoped_refptr<SceneContent> content_;
const SceneDef* scene_;
« no previous file with comments | « services/gfx/compositor/graph/resources.cc ('k') | services/gfx/compositor/graph/scene_content.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698