Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
flutter::SnapshotDelegate::GpuImageResult Struct Reference

A data structure used by the Skia implementation of deferred GPU based images. More...

#include <snapshot_delegate.h>

Public Member Functions

 GpuImageResult (const GrBackendTexture &p_texture, sk_sp< GrDirectContext > p_context, sk_sp< SkImage > p_image=nullptr, const std::string &p_error="")
 

Public Attributes

const GrBackendTexture texture
 
sk_sp< GrDirectContext > context
 
sk_sp< SkImage > image
 
const std::string error
 

Detailed Description

A data structure used by the Skia implementation of deferred GPU based images.

Definition at line 33 of file snapshot_delegate.h.

Constructor & Destructor Documentation

◆ GpuImageResult()

flutter::SnapshotDelegate::GpuImageResult::GpuImageResult ( const GrBackendTexture &  p_texture,
sk_sp< GrDirectContext >  p_context,
sk_sp< SkImage >  p_image = nullptr,
const std::string &  p_error = "" 
)
inlineexplicit

Definition at line 34 of file snapshot_delegate.h.

41 :
42#if !SLIMPELLER
43 texture(p_texture),
44#endif // !SLIMPELLER
45 context(std::move(p_context)),
46 image(std::move(p_image)),
47 error(p_error) {
48 }

References if().

Member Data Documentation

◆ context

sk_sp<GrDirectContext> flutter::SnapshotDelegate::GpuImageResult::context

Definition at line 55 of file snapshot_delegate.h.

◆ error

const std::string flutter::SnapshotDelegate::GpuImageResult::error

Definition at line 62 of file snapshot_delegate.h.

◆ image

sk_sp<SkImage> flutter::SnapshotDelegate::GpuImageResult::image

Definition at line 58 of file snapshot_delegate.h.

◆ texture

const GrBackendTexture flutter::SnapshotDelegate::GpuImageResult::texture

Definition at line 51 of file snapshot_delegate.h.


The documentation for this struct was generated from the following file: