| Flutter Impeller |

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 #pragma once
6
7 #include <memory>
8
9 #include "flutter/fml/macros.h"
10 #include "impeller/core/texture.h"
11
12 namespace impeller {
13
14 class Image {
15 public:
16 Image(std::shared_ptr<Texture> texture);
17
18 ~Image();
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 FML_DISALLOW_COPY_AND_ASSIGN(Image);
28 };
29
30 } // namespace impeller
impeller::Image::GetSize
ISize GetSize() const
Definition: image.cc:13
impeller::TSize< int64_t >
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
Definition: image.h:14
impeller::Image::~Image
~Image()
texture.h
impeller
Definition: aiks_context.cc:10