Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
GrSurface::RefCntedReleaseProc Class Reference

#include <GrSurface.h>

Inheritance diagram for GrSurface::RefCntedReleaseProc:
SkNVRefCnt< RefCntedReleaseProc >

Public Member Functions

 RefCntedReleaseProc (sk_sp< skgpu::RefCntedCallback > callback, sk_sp< GrDirectContext > directContext)
 
 ~RefCntedReleaseProc ()
 
- Public Member Functions inherited from SkNVRefCnt< RefCntedReleaseProc >
 SkNVRefCnt ()
 
 ~SkNVRefCnt ()
 
bool unique () const
 
void ref () const
 
void unref () const
 
void deref () const
 
bool refCntGreaterThan (int32_t threadIsolatedTestCnt) const
 

Detailed Description

Definition at line 94 of file GrSurface.h.

Constructor & Destructor Documentation

◆ RefCntedReleaseProc()

GrSurface::RefCntedReleaseProc::RefCntedReleaseProc ( sk_sp< skgpu::RefCntedCallback callback,
sk_sp< GrDirectContext directContext 
)

Definition at line 68 of file GrSurface.cpp.

70 : fCallback(std::move(callback))
71 , fDirectContext(std::move(directContext)) {
72 SkASSERT(fCallback && fDirectContext);
73 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback

◆ ~RefCntedReleaseProc()

GrSurface::RefCntedReleaseProc::~RefCntedReleaseProc ( )

Definition at line 75 of file GrSurface.cpp.

75 {
76 fDirectContext->priv().setInsideReleaseProc(true);
77 fCallback.reset();
78 fDirectContext->priv().setInsideReleaseProc(false);
79}
void setInsideReleaseProc(bool inside)
GrDirectContextPriv priv()
void reset(T *ptr=nullptr)
Definition: SkRefCnt.h:310

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