Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
display_list_image_gpu.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_DISPLAY_LIST_IMAGE_GPU_H_
6#define FLUTTER_LIB_UI_PAINTING_DISPLAY_LIST_IMAGE_GPU_H_
7
11#include "flutter/fml/macros.h"
12
13namespace flutter {
14
15class DlImageGPU final : public DlImageSkia {
16 public:
17 static sk_sp<DlImageGPU> Make(SkiaGPUObject<SkImage> image);
18
19 // |DlImage|
20 ~DlImageGPU() override;
21
22 // |DlImageSkia|
23 sk_sp<SkImage> skia_image() const override;
24
25 // |DlImage|
26 bool isOpaque() const override;
27
28 // |DlImage|
29 bool isUIThreadSafe() const override;
30
31 // |DlImage|
32 DlISize GetSize() const override;
33
34 // |DlImage|
35 virtual size_t GetApproximateByteSize() const override;
36
37 private:
39
41
43};
44
45} // namespace flutter
46
47#endif // FLUTTER_LIB_UI_PAINTING_DISPLAY_LIST_IMAGE_GPU_H_
sk_sp< SkImage > skia_image() const override
virtual size_t GetApproximateByteSize() const override
bool isUIThreadSafe() const override
If the underlying platform image held by this object has no threading requirements for the release of...
bool isOpaque() const override
If the pixel format of this image ignores alpha, this returns true. This method might conservatively ...
DlISize GetSize() const override
static sk_sp< DlImageGPU > Make(SkiaGPUObject< SkImage > image)
FlutterVulkanImage * image
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27