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

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

Issue 1873573003: Mozart: Ensure time always runs forward. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-3
Patch Set: fix build error on Android 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/nodes.cc ('k') | services/gfx/compositor/graph/resources.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/graph/resources.h
diff --git a/services/gfx/compositor/graph/resources.h b/services/gfx/compositor/graph/resources.h
index 88e920e727ebe5450483d3292e270aaf0e55ec0e..fd7e90cbd6c68fe1faa504c21704be298747a2bc 100644
--- a/services/gfx/compositor/graph/resources.h
+++ b/services/gfx/compositor/graph/resources.h
@@ -7,14 +7,11 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
#include "mojo/services/gfx/composition/interfaces/resources.mojom.h"
#include "services/gfx/compositor/render/render_image.h"
namespace compositor {
-class SceneDef;
-
// Base class for resources in a scene graph.
//
// Instances of this class are immutable and reference counted so they may
@@ -39,8 +36,7 @@ class Resource : public base::RefCounted<Resource> {
// A resource which represents a reference to a specified scene.
class SceneResource : public Resource {
public:
- SceneResource(const mojo::gfx::composition::SceneToken& scene_token,
- const base::WeakPtr<SceneDef>& referenced_scene);
+ explicit SceneResource(const mojo::gfx::composition::SceneToken& scene_token);
Type type() const override;
@@ -48,20 +44,11 @@ class SceneResource : public Resource {
return scene_token_;
}
- // The referenced scene, may be null if the scene is unavailable.
- const base::WeakPtr<SceneDef>& referenced_scene() const {
- return referenced_scene_;
- }
-
- // Returns a copy of the resource without its referenced scene.
- scoped_refptr<const SceneResource> Unlink() const;
-
protected:
~SceneResource() override;
private:
mojo::gfx::composition::SceneToken scene_token_;
- base::WeakPtr<SceneDef> referenced_scene_;
DISALLOW_COPY_AND_ASSIGN(SceneResource);
};
« no previous file with comments | « services/gfx/compositor/graph/nodes.cc ('k') | services/gfx/compositor/graph/resources.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698