| Flutter Impeller |

image.cc
Go to the documentation of this file.
1 // Copyright 2013 The Flutter 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 "impeller/aiks/image.h"
6
7 namespace impeller {
8
9 Image::Image(std::shared_ptr<Texture> texture) : texture_(std::move(texture)) {}
10
11 Image::~Image() = default;
12
13 ISize Image::GetSize() const {
14 return texture_ ? texture_->GetSize() : ISize{};
15 }
16
17 std::shared_ptr<Texture> Image::GetTexture() const {
18 return texture_;
19 }
20
21 } // namespace impeller
impeller::Image::GetSize
ISize GetSize() const
Definition: image.cc:13
impeller::TSize
Definition: size.h:19
impeller::Image::Image
Image(std::shared_ptr< Texture > texture)
Definition: image.cc:9
impeller::Image::GetTexture
std::shared_ptr< Texture > GetTexture() const
Definition: image.cc:17
impeller::Image::~Image
~Image()
image.h
std
Definition: comparable.h:95
impeller
Definition: aiks_blend_unittests.cc:18