Flutter Engine
The Flutter Engine
image_encoding_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_ENCODING_SKIA_H_
6#define FLUTTER_LIB_UI_PAINTING_IMAGE_ENCODING_SKIA_H_
7
8#if !SLIMPELLER
9
10#include "flutter/common/task_runners.h"
11#include "flutter/display_list/image/dl_image.h"
12#include "flutter/fml/synchronization/sync_switch.h"
13#include "flutter/lib/ui/snapshot_delegate.h"
14
15namespace flutter {
16
18 const sk_sp<DlImage>& dl_image,
19 std::function<void(sk_sp<SkImage>)> encode_task,
20 const fml::RefPtr<fml::TaskRunner>& raster_task_runner,
21 const fml::RefPtr<fml::TaskRunner>& io_task_runner,
22 const fml::WeakPtr<GrDirectContext>& resource_context,
24 const std::shared_ptr<const fml::SyncSwitch>& is_gpu_disabled_sync_switch);
25
26} // namespace flutter
27
28#endif // !SLIMPELLER
29
30#endif // FLUTTER_LIB_UI_PAINTING_IMAGE_ENCODING_SKIA_H_
Dart_NativeFunction function
Definition: fuchsia.cc:51
void ConvertImageToRasterSkia(const sk_sp< DlImage > &dl_image, std::function< void(sk_sp< SkImage >)> encode_task, const fml::RefPtr< fml::TaskRunner > &raster_task_runner, const fml::RefPtr< fml::TaskRunner > &io_task_runner, const fml::WeakPtr< GrDirectContext > &resource_context, const fml::TaskRunnerAffineWeakPtr< SnapshotDelegate > &snapshot_delegate, const std::shared_ptr< const fml::SyncSwitch > &is_gpu_disabled_sync_switch)