| 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 #pragma once
6
7 #include "flutter/fml/macros.h"
8 #include "impeller/image/compressed_image.h"
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 CompressedImageSkia(std::shared_ptr<const fml::Mapping> allocation);
18
19 ~CompressedImageSkia() override;
20
21 // |CompressedImage|
22 DecompressedImage Decode() const override;
23
24 private:
25 FML_DISALLOW_COPY_AND_ASSIGN(CompressedImageSkia);
26 };
27
28 } // namespace impeller
impeller::DecompressedImage
Definition: decompressed_image.h:16
impeller::CompressedImageSkia::Create
static std::shared_ptr< CompressedImage > Create(std::shared_ptr< const fml::Mapping > allocation)
Definition: compressed_image_skia.cc:18
impeller::CompressedImageSkia::CompressedImageSkia
CompressedImageSkia(std::shared_ptr< const fml::Mapping > allocation)
Definition: compressed_image_skia.cc:27
impeller::CompressedImageSkia::~CompressedImageSkia
~CompressedImageSkia() override
impeller::CompressedImage
Definition: compressed_image.h:18
impeller::CompressedImageSkia
Definition: compressed_image_skia.h:12
impeller::CompressedImageSkia::Decode
DecompressedImage Decode() const override
Definition: compressed_image_skia.cc:34
impeller
Definition: aiks_context.cc:10
compressed_image.h