Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
skgpu::graphite::ImageUploadContext Class Reference

#include <UploadTask.h>

Inheritance diagram for skgpu::graphite::ImageUploadContext:
skgpu::graphite::ConditionalUploadContext

Public Member Functions

 ~ImageUploadContext () override
 
bool needsUpload (Context *) override
 
bool uploadSubmitted () override
 
- Public Member Functions inherited from skgpu::graphite::ConditionalUploadContext
virtual ~ConditionalUploadContext ()
 

Detailed Description

ImageUploadContext is an implementation of ConditionalUploadContext that returns true on the first call to needsUpload() and then returns false on subsequent calls. This is used to upload an image once and then avoid redundant uploads after that.

Definition at line 55 of file UploadTask.h.

Constructor & Destructor Documentation

◆ ~ImageUploadContext()

skgpu::graphite::ImageUploadContext::~ImageUploadContext ( )
inlineoverride

Definition at line 57 of file UploadTask.h.

57{}

Member Function Documentation

◆ needsUpload()

bool skgpu::graphite::ImageUploadContext::needsUpload ( Context )
inlineoverridevirtual

Implements skgpu::graphite::ConditionalUploadContext.

Definition at line 60 of file UploadTask.h.

60{ return true; }

◆ uploadSubmitted()

bool skgpu::graphite::ImageUploadContext::uploadSubmitted ( )
inlineoverridevirtual

Reimplemented from skgpu::graphite::ConditionalUploadContext.

Definition at line 63 of file UploadTask.h.

63{ return false; }

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