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 27 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 28 of file snapshot_delegate.h.

35 :
36#if !SLIMPELLER
37 texture(p_texture),
38#endif // !SLIMPELLER
39 context(std::move(p_context)),
40 image(std::move(p_image)),
41 error(p_error) {
42 }

References if().

Member Data Documentation

◆ context

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

Definition at line 49 of file snapshot_delegate.h.

◆ error

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

Definition at line 56 of file snapshot_delegate.h.

◆ image

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

Definition at line 52 of file snapshot_delegate.h.

◆ texture

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

Definition at line 45 of file snapshot_delegate.h.


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