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

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

Issue 1552963002: Initial checkin of the new Mozart compositor. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-11
Patch Set: fix android build Created 4 years, 11 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/resource_def.h ('k') | services/gfx/compositor/graph/scene_def.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/graph/resource_def.cc
diff --git a/services/gfx/compositor/graph/resource_def.cc b/services/gfx/compositor/graph/resource_def.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f837f1e84312621da55ec525a15c07087f2d6731
--- /dev/null
+++ b/services/gfx/compositor/graph/resource_def.cc
@@ -0,0 +1,31 @@
+// 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/resource_def.h"
+
+#include "base/logging.h"
+
+namespace compositor {
+
+SceneResourceDef::SceneResourceDef(SceneDef* referenced_scene)
+ : referenced_scene_(referenced_scene) {}
+
+SceneResourceDef::~SceneResourceDef() {}
+
+ResourceDef::Type SceneResourceDef::type() const {
+ return Type::kScene;
+}
+
+ImageResourceDef::ImageResourceDef(const std::shared_ptr<RenderImage>& image)
+ : image_(image) {
+ DCHECK(image);
+}
+
+ImageResourceDef::~ImageResourceDef() {}
+
+ResourceDef::Type ImageResourceDef::type() const {
+ return Type::kImage;
+}
+
+} // namespace compositor
« no previous file with comments | « services/gfx/compositor/graph/resource_def.h ('k') | services/gfx/compositor/graph/scene_def.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698