Flutter Engine
The Flutter Engine
impeller
aiks
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::~Image
~Image()
impeller::Image::GetTexture
std::shared_ptr< Texture > GetTexture() const
Definition:
image.cc:17
impeller::Image::GetSize
ISize GetSize() const
Definition:
image.cc:13
impeller::Image::Image
Image(std::shared_ptr< Texture > texture)
Definition:
image.cc:9
image.h
texture
FlTexture * texture
Definition:
mock_texture_registrar.cc:24
impeller
Definition:
texture.h:18
std
Definition:
ref_ptr.h:256
impeller::TSize
Definition:
size.h:19
Generated on Sun Jun 23 2024 21:55:05 for Flutter Engine by
1.9.4