Flutter Impeller
compressed_image_skia.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_PLAYGROUND_IMAGE_BACKENDS_SKIA_COMPRESSED_IMAGE_SKIA_H_
6 #define FLUTTER_IMPELLER_PLAYGROUND_IMAGE_BACKENDS_SKIA_COMPRESSED_IMAGE_SKIA_H_
7 
9 
10 namespace impeller {
11 
12 class CompressedImageSkia final : public CompressedImage {
13  public:
14  static std::shared_ptr<CompressedImage> Create(
15  std::shared_ptr<const fml::Mapping> allocation);
16 
17  explicit CompressedImageSkia(std::shared_ptr<const fml::Mapping> allocation);
18 
20 
21  // |CompressedImage|
22  DecompressedImage Decode() const override;
23 
24  private:
26 
27  CompressedImageSkia& operator=(const CompressedImageSkia&) = delete;
28 };
29 
30 } // namespace impeller
31 
32 #endif // FLUTTER_IMPELLER_PLAYGROUND_IMAGE_BACKENDS_SKIA_COMPRESSED_IMAGE_SKIA_H_
CompressedImageSkia(std::shared_ptr< const fml::Mapping > allocation)
static std::shared_ptr< CompressedImage > Create(std::shared_ptr< const fml::Mapping > allocation)
DecompressedImage Decode() const override