Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
LazyProxyTest Class Referencefinal
Inheritance diagram for LazyProxyTest:
GrOnFlushCallbackObject

Classes

class  Clip
 
class  ClipFP
 
class  Op
 

Public Member Functions

 LazyProxyTest (skiatest::Reporter *reporter)
 
 ~LazyProxyTest () override
 
bool preFlush (GrOnFlushResourceProvider *onFlushRP) override
 
void postFlush (skgpu::AtlasToken) override
 
- Public Member Functions inherited from GrOnFlushCallbackObject
virtual ~GrOnFlushCallbackObject ()
 
virtual bool retainOnFreeGpuResources ()
 

Detailed Description

Definition at line 65 of file LazyProxyTest.cpp.

Constructor & Destructor Documentation

◆ LazyProxyTest()

LazyProxyTest::LazyProxyTest ( skiatest::Reporter reporter)
inline

Definition at line 67 of file LazyProxyTest.cpp.

68 : fReporter(reporter)
69 , fHasOpTexture(false)
70 , fHasClipTexture(false) {
71 }
reporter

◆ ~LazyProxyTest()

LazyProxyTest::~LazyProxyTest ( )
inlineoverride

Definition at line 73 of file LazyProxyTest.cpp.

73 {
74 REPORTER_ASSERT(fReporter, fHasOpTexture);
75 REPORTER_ASSERT(fReporter, fHasClipTexture);
76 }
#define REPORTER_ASSERT(r, cond,...)
Definition Test.h:286

Member Function Documentation

◆ postFlush()

void LazyProxyTest::postFlush ( skgpu::AtlasToken  startTokenForNextFlush)
inlineoverridevirtual

Called once flushing is complete. startTokenForNextFlush can be used to track resources used in the current flush.

Reimplemented from GrOnFlushCallbackObject.

Definition at line 90 of file LazyProxyTest.cpp.

90 {
91 REPORTER_ASSERT(fReporter, fHasOpTexture);
92 REPORTER_ASSERT(fReporter, fHasClipTexture);
93 }

◆ preFlush()

bool LazyProxyTest::preFlush ( GrOnFlushResourceProvider onFlushRP)
inlineoverridevirtual

Implements GrOnFlushCallbackObject.

Definition at line 78 of file LazyProxyTest.cpp.

78 {
79#if defined(GR_TEST_UTILS)
80 if (onFlushRP->failFlushTimeCallbacks()) {
81 return false;
82 }
83#endif
84
85 REPORTER_ASSERT(fReporter, !fHasOpTexture);
86 REPORTER_ASSERT(fReporter, !fHasClipTexture);
87 return true;
88 }

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