Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
GrTDeferredProxyUploader< T > Class Template Reference

#include <GrDeferredProxyUploader.h>

Inheritance diagram for GrTDeferredProxyUploader< T >:
GrDeferredProxyUploader SkNoncopyable

Public Member Functions

template<typename... Args>
 GrTDeferredProxyUploader (Args &&... args)
 
 ~GrTDeferredProxyUploader () override
 
Tdata ()
 
- Public Member Functions inherited from GrDeferredProxyUploader
 GrDeferredProxyUploader ()
 
virtual ~GrDeferredProxyUploader ()
 
void scheduleUpload (GrOpFlushState *flushState, GrTextureProxy *proxy)
 
void signalAndFreeData ()
 
SkAutoPixmapStoragegetPixels ()
 
- Public Member Functions inherited from SkNoncopyable
 SkNoncopyable ()=default
 
 SkNoncopyable (SkNoncopyable &&)=default
 
SkNoncopyableoperator= (SkNoncopyable &&)=default
 

Additional Inherited Members

- Protected Member Functions inherited from GrDeferredProxyUploader
void wait ()
 

Detailed Description

template<typename T>
class GrTDeferredProxyUploader< T >

Definition at line 99 of file GrDeferredProxyUploader.h.

Constructor & Destructor Documentation

◆ GrTDeferredProxyUploader()

template<typename T >
template<typename... Args>
GrTDeferredProxyUploader< T >::GrTDeferredProxyUploader ( Args &&...  args)
inline

Definition at line 102 of file GrDeferredProxyUploader.h.

103 : fData(std::make_unique<T>(std::forward<Args>(args)...)) {
104 }
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args

◆ ~GrTDeferredProxyUploader()

template<typename T >
GrTDeferredProxyUploader< T >::~GrTDeferredProxyUploader ( )
inlineoverride

Definition at line 106 of file GrDeferredProxyUploader.h.

106 {
107 // We need to wait here, so that we don't free fData before the worker thread is done
108 // with it. (This happens if the proxy is deleted early due to a full clear or failure
109 // of an op list to instantiate).
110 this->wait();
111 }

Member Function Documentation

◆ data()

template<typename T >
T & GrTDeferredProxyUploader< T >::data ( )
inline

Definition at line 113 of file GrDeferredProxyUploader.h.

113{ return *fData; }

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