Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
6
7namespace impeller {
8
9Image::Image(std::shared_ptr<Texture> texture) : texture_(std::move(texture)) {}
10
11Image::~Image() = default;
12
14 return texture_ ? texture_->GetSize() : ISize{};
15}
16
17std::shared_ptr<Texture> Image::GetTexture() const {
18 return texture_;
19}
20
21} // namespace impeller
std::shared_ptr< Texture > GetTexture() const
Definition image.cc:17
ISize GetSize() const
Definition image.cc:13
Image(std::shared_ptr< Texture > texture)
Definition image.cc:9
FlTexture * texture
Definition ref_ptr.h:256