Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
GrOnFlushResourceProvider Class Reference

#include <GrOnFlushResourceProvider.h>

Public Member Functions

 GrOnFlushResourceProvider (GrDrawingManager *drawingMgr)
 
bool instantiateProxy (GrSurfaceProxy *)
 
const GrCapscaps () const
 

Detailed Description

Definition at line 52 of file GrOnFlushResourceProvider.h.

Constructor & Destructor Documentation

◆ GrOnFlushResourceProvider()

GrOnFlushResourceProvider::GrOnFlushResourceProvider ( GrDrawingManager drawingMgr)
inlineexplicit

Definition at line 54 of file GrOnFlushResourceProvider.h.

54: fDrawingMgr(drawingMgr) {}

Member Function Documentation

◆ caps()

const GrCaps * GrOnFlushResourceProvider::caps ( ) const

Definition at line 39 of file GrOnFlushResourceProvider.cpp.

39 {
40 return fDrawingMgr->getContext()->priv().caps();
41}
const GrCaps * caps() const
GrRecordingContext * getContext()
GrRecordingContextPriv priv()

◆ instantiateProxy()

bool GrOnFlushResourceProvider::instantiateProxy ( GrSurfaceProxy proxy)

Definition at line 21 of file GrOnFlushResourceProvider.cpp.

21 {
23
24 // TODO: this class should probably just get a GrDirectContext
25 auto direct = fDrawingMgr->getContext()->asDirectContext();
26 if (!direct) {
27 return false;
28 }
29
30 auto resourceProvider = direct->priv().resourceProvider();
31
32 if (proxy->isLazy()) {
33 return proxy->priv().doLazyInstantiation(resourceProvider);
34 }
35
36 return proxy->instantiate(resourceProvider);
37}
#define SkASSERT(cond)
Definition SkAssert.h:116
virtual GrDirectContext * asDirectContext()
GrResourceProvider * resourceProvider()
GrDirectContextPriv priv()
bool doLazyInstantiation(GrResourceProvider *)
virtual bool instantiate(GrResourceProvider *)=0
GrSurfaceProxyPriv priv()
bool isLazy() const
bool canSkipResourceAllocator() const

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