Flutter Engine
The Flutter Engine
Public Member Functions | Friends | List of all members
GrTextureProxyPriv Class Reference

#include <GrTextureProxyPriv.h>

Public Member Functions

void setDeferredUploader (std::unique_ptr< GrDeferredProxyUploader >)
 
bool isDeferred () const
 
void scheduleUpload (GrOpFlushState *)
 
void resetDeferredUploader ()
 

Friends

class GrTextureProxy
 

Detailed Description

This class hides the more specialized capabilities of GrTextureProxy.

Definition at line 19 of file GrTextureProxyPriv.h.

Member Function Documentation

◆ isDeferred()

bool GrTextureProxyPriv::isDeferred ( ) const
inline

Definition at line 23 of file GrTextureProxyPriv.h.

23{ return SkToBool(fTextureProxy->fDeferredUploader.get()); }
static constexpr bool SkToBool(const T &x)
Definition: SkTo.h:35

◆ resetDeferredUploader()

void GrTextureProxyPriv::resetDeferredUploader ( )

Definition at line 161 of file GrTextureProxy.cpp.

161 {
162 SkASSERT(fTextureProxy->fDeferredUploader);
163 fTextureProxy->fDeferredUploader.reset();
164}
#define SkASSERT(cond)
Definition: SkAssert.h:116

◆ scheduleUpload()

void GrTextureProxyPriv::scheduleUpload ( GrOpFlushState flushState)

Definition at line 154 of file GrTextureProxy.cpp.

154 {
155 // The texture proxy's contents may already have been uploaded or instantiation may have failed
156 if (fTextureProxy->fDeferredUploader && fTextureProxy->isInstantiated()) {
157 fTextureProxy->fDeferredUploader->scheduleUpload(flushState, fTextureProxy);
158 }
159}
bool isInstantiated() const

◆ setDeferredUploader()

void GrTextureProxyPriv::setDeferredUploader ( std::unique_ptr< GrDeferredProxyUploader uploader)

Definition at line 149 of file GrTextureProxy.cpp.

149 {
150 SkASSERT(!fTextureProxy->fDeferredUploader);
151 fTextureProxy->fDeferredUploader = std::move(uploader);
152}

Friends And Related Function Documentation

◆ GrTextureProxy

friend class GrTextureProxy
friend

Definition at line 41 of file GrTextureProxyPriv.h.


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