Flutter Engine
 
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 26 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 27 of file snapshot_delegate.h.

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

References if().

Member Data Documentation

◆ context

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

Definition at line 48 of file snapshot_delegate.h.

◆ error

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

Definition at line 55 of file snapshot_delegate.h.

◆ image

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

Definition at line 51 of file snapshot_delegate.h.

◆ texture

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

Definition at line 44 of file snapshot_delegate.h.


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