Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
10#include "flutter/fml/macros.h"
12
13namespace impeller {
14
15class Image {
16 public:
17 explicit Image(std::shared_ptr<Texture> texture);
18
20
21 ISize GetSize() const;
22
23 std::shared_ptr<Texture> GetTexture() const;
24
25 private:
26 const std::shared_ptr<Texture> texture_;
27
28 Image(const Image&) = delete;
29
30 Image& operator=(const Image&) = delete;
31};
32
33} // namespace impeller
34
35#endif // FLUTTER_IMPELLER_AIKS_IMAGE_H_
std::shared_ptr< Texture > GetTexture() const
Definition image.cc:17
ISize GetSize() const
Definition image.cc:13
FlTexture * texture