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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "services/gfx/compositor/graph/resource_def.h"
6
7 #include "base/logging.h"
8
9 namespace compositor {
10
11 SceneResourceDef::SceneResourceDef(SceneDef* referenced_scene)
12 : referenced_scene_(referenced_scene) {}
13
14 SceneResourceDef::~SceneResourceDef() {}
15
16 ResourceDef::Type SceneResourceDef::type() const {
17 return Type::kScene;
18 }
19
20 ImageResourceDef::ImageResourceDef(const std::shared_ptr<RenderImage>& image)
21 : image_(image) {
22 DCHECK(image);
23 }
24
25 ImageResourceDef::~ImageResourceDef() {}
26
27 ResourceDef::Type ImageResourceDef::type() const {
28 return Type::kImage;
29 }
30
31 } // namespace compositor
OLDNEW
« 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