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(sk_sp<SkPicture> picture,
16  SkISize picture_size) = 0;
17 
18  virtual sk_sp<SkImage> ConvertToRasterImage(sk_sp<SkImage> image) = 0;
19 };
20 
21 } // namespace flutter
22 
23 #endif // FLUTTER_LIB_UI_SNAPSHOT_DELEGATE_H_
virtual sk_sp< SkImage > MakeRasterSnapshot(sk_sp< SkPicture > picture, SkISize picture_size)=0
virtual sk_sp< SkImage > ConvertToRasterImage(sk_sp< SkImage > image)=0