Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
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< GrDirectContextcontext
 
sk_sp< SkImageimage
 
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 = "" 
)
inline

Definition at line 27 of file snapshot_delegate.h.

31 : texture(p_texture),
32 context(std::move(p_context)),
33 image(std::move(p_image)),
34 error(p_error) {}

Member Data Documentation

◆ context

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

Definition at line 39 of file snapshot_delegate.h.

◆ error

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

Definition at line 46 of file snapshot_delegate.h.

◆ image

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

Definition at line 42 of file snapshot_delegate.h.

◆ texture

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

Definition at line 36 of file snapshot_delegate.h.


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