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

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

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.h ('k') | services/gfx/compositor/graph/scene_content.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/graph/resources.cc
diff --git a/services/gfx/compositor/graph/resources.cc b/services/gfx/compositor/graph/resources.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9c97f3b129240aaf234d88c085dd1f5ed0d12d30
--- /dev/null
+++ b/services/gfx/compositor/graph/resources.cc
@@ -0,0 +1,41 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "services/gfx/compositor/graph/resources.h"
+
+#include "base/logging.h"
+
+namespace compositor {
+
+Resource::Resource() {}
+
+Resource::~Resource() {}
+
+SceneResource::SceneResource(
+ const mojo::gfx::composition::SceneToken& scene_token,
+ const base::WeakPtr<SceneDef>& referenced_scene)
+ : scene_token_(scene_token), referenced_scene_(referenced_scene) {}
+
+SceneResource::~SceneResource() {}
+
+scoped_refptr<const SceneResource> SceneResource::Unlink() const {
+ return new SceneResource(scene_token_, base::WeakPtr<SceneDef>());
+}
+
+Resource::Type SceneResource::type() const {
+ return Type::kScene;
+}
+
+ImageResource::ImageResource(const scoped_refptr<RenderImage>& image)
+ : image_(image) {
+ DCHECK(image);
+}
+
+ImageResource::~ImageResource() {}
+
+Resource::Type ImageResource::type() const {
+ return Type::kImage;
+}
+
+} // namespace compositor
« no previous file with comments | « services/gfx/compositor/graph/resources.h ('k') | services/gfx/compositor/graph/scene_content.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698