Flutter Engine
snapshot_delegate.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_SNAPSHOT_DELEGATE_H_
6 #define FLUTTER_LIB_UI_SNAPSHOT_DELEGATE_H_
7 
8 #include "third_party/skia/include/core/SkImage.h"
9 #include "third_party/skia/include/core/SkPicture.h"
10 
11 namespace flutter {
12 
14  public:
15  virtual sk_sp<SkImage> MakeRasterSnapshot(
16  std::function<void(SkCanvas*)> draw_callback,
17  SkISize picture_size) = 0;
18 
19  virtual sk_sp<SkImage> MakeRasterSnapshot(sk_sp<SkPicture> picture,
20  SkISize picture_size) = 0;
21 
22  virtual sk_sp<SkImage> ConvertToRasterImage(sk_sp<SkImage> image) = 0;
23 };
24 
25 } // namespace flutter
26 
27 #endif // FLUTTER_LIB_UI_SNAPSHOT_DELEGATE_H_
Dart_NativeFunction function
Definition: fuchsia.cc:51
virtual sk_sp< SkImage > MakeRasterSnapshot(std::function< void(SkCanvas *)> draw_callback, SkISize picture_size)=0
virtual sk_sp< SkImage > ConvertToRasterImage(sk_sp< SkImage > image)=0