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 #ifndef FLUTTER_IMPELLER_AIKS_IMAGE_H_
6 #define FLUTTER_IMPELLER_AIKS_IMAGE_H_
7 
8 #include <memory>
9 
10 #include "flutter/fml/macros.h"
11 #include "impeller/core/texture.h"
12 
13 namespace impeller {
14 
15 class Image {
16  public:
17  explicit Image(std::shared_ptr<Texture> texture);
18 
19  ~Image();
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_
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:15
impeller::Image::~Image
~Image()
texture.h
impeller
Definition: aiks_blur_unittests.cc:20