Flutter Engine
The Flutter Engine
image.h
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#ifndef FLUTTER_IMPELLER_AIKS_IMAGE_H_
6#define FLUTTER_IMPELLER_AIKS_IMAGE_H_
7
8#include <memory>
9
11
12namespace impeller {
13
14class Image {
15 public:
16 explicit Image(std::shared_ptr<Texture> texture);
17
19
20 ISize GetSize() const;
21
22 std::shared_ptr<Texture> GetTexture() const;
23
24 private:
25 const std::shared_ptr<Texture> texture_;
26
27 Image(const Image&) = delete;
28
29 Image& operator=(const Image&) = delete;
30};
31
32} // namespace impeller
33
34#endif // FLUTTER_IMPELLER_AIKS_IMAGE_H_
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