Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
image_decoder_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_LIB_UI_PAINTING_IMAGE_DECODER_SKIA_H_
6#define FLUTTER_LIB_UI_PAINTING_IMAGE_DECODER_SKIA_H_
7
8#include "flutter/fml/macros.h"
9#include "flutter/lib/ui/painting/image_decoder.h"
10
11namespace flutter {
12
13class ImageDecoderSkia final : public ImageDecoder {
14 public:
16 const TaskRunners& runners,
17 std::shared_ptr<fml::ConcurrentTaskRunner> concurrent_task_runner,
18 fml::WeakPtr<IOManager> io_manager);
19
21
22 // |ImageDecoder|
24 uint32_t target_width,
25 uint32_t target_height,
26 const ImageResult& result) override;
27
29 ImageDescriptor* descriptor,
30 uint32_t target_width,
31 uint32_t target_height,
32 const fml::tracing::TraceFlow& flow);
33
34 private:
36};
37
38} // namespace flutter
39
40#endif // FLUTTER_LIB_UI_PAINTING_IMAGE_DECODER_SKIA_H_
void Decode(fml::RefPtr< ImageDescriptor > descriptor, uint32_t target_width, uint32_t target_height, const ImageResult &result) override
static sk_sp< SkImage > ImageFromCompressedData(ImageDescriptor *descriptor, uint32_t target_width, uint32_t target_height, const fml::tracing::TraceFlow &flow)
std::function< void(sk_sp< DlImage >, std::string)> ImageResult
Creates an image descriptor for encoded or decoded image data, describing the width,...
GAsyncResult * result
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27