OLD | NEW |
(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 |
OLD | NEW |