Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
A Class Reference
Inheritance diagram for A:
B C E dart::BaseDirectChainedHashMap< CStringIntMapKeyValueTrait, B, Allocator > dart::BaseDirectChainedHashMap< CStringSetKeyValueTrait, B, Allocator > dart::BaseDirectChainedHashMap< KeyValueTrait, B, Allocator > dart::BaseGrowableArray< T, B, Allocator > dart::BaseGrowableHandlePtrArray< T, B > dart::SplayTree< Config, B, Allocator > dart::SplayTree< Config, B, Allocator >::Locator dart::SplayTree< Config, B, Allocator >::Node

Public Member Functions

 A ()
 
virtual void setValues (int v)
 
virtual bool checkValues (int v)
 
virtual ~A ()
 
void * operator new (size_t size)
 
void operator delete (void *p)
 

Static Public Member Functions

static ACreate (SkRandom *r)
 
static void SetAllocator (size_t preallocSize, size_t minAllocSize)
 
static void ResetAllocator ()
 
static void ValidatePool ()
 

Detailed Description

Definition at line 24 of file GrMemoryPoolTest.cpp.

Constructor & Destructor Documentation

◆ A()

A::A ( )
inline

Definition at line 26 of file GrMemoryPoolTest.cpp.

26{}

◆ ~A()

virtual A::~A ( )
inlinevirtual

Definition at line 33 of file GrMemoryPoolTest.cpp.

33{}

Member Function Documentation

◆ checkValues()

virtual bool A::checkValues ( int  v)
inlinevirtual

Reimplemented in B, C, and E.

Definition at line 30 of file GrMemoryPoolTest.cpp.

30 {
31 return fChar == static_cast<char>(v & 0xFF);
32 }

◆ Create()

A * A::Create ( SkRandom r)
static

Definition at line 158 of file GrMemoryPoolTest.cpp.

158 {
159 switch (r->nextRangeU(0, 4)) {
160 case 0:
161 return new A;
162 case 1:
163 return new B;
164 case 2:
165 return new C;
166 case 3:
167 return new D;
168 case 4:
169 return new E;
170 default:
171 // suppress warning
172 return nullptr;
173 }
174}
uint32_t nextRangeU(uint32_t min, uint32_t max)
Definition: SkRandom.h:80
#define C(TEST_CATEGORY)
Definition: colrv1.cpp:248
#define B

◆ operator delete()

void A::operator delete ( void *  p)
inline

Definition at line 43 of file GrMemoryPoolTest.cpp.

43 {
44 if (!gPool) {
45 ::operator delete(p);
46 } else {
47 return gPool->release(p);
48 }
49 }

◆ operator new()

void * A::operator new ( size_t  size)
inline

Definition at line 35 of file GrMemoryPoolTest.cpp.

35 {
36 if (!gPool) {
37 return ::operator new(size);
38 } else {
39 return gPool->allocate(size);
40 }
41 }
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259

◆ ResetAllocator()

static void A::ResetAllocator ( )
inlinestatic

Definition at line 57 of file GrMemoryPoolTest.cpp.

57{ gPool.reset(); }

◆ SetAllocator()

static void A::SetAllocator ( size_t  preallocSize,
size_t  minAllocSize 
)
inlinestatic

Definition at line 53 of file GrMemoryPoolTest.cpp.

53 {
54 gPool = GrMemoryPool::Make(preallocSize, minAllocSize);
55 }
static std::unique_ptr< GrMemoryPool > Make(size_t preallocSize, size_t minAllocSize)

◆ setValues()

virtual void A::setValues ( int  v)
inlinevirtual

Reimplemented in B, C, and E.

Definition at line 27 of file GrMemoryPoolTest.cpp.

27 {
28 fChar = static_cast<char>(v & 0xFF);
29 }

◆ ValidatePool()

static void A::ValidatePool ( )
inlinestatic

Definition at line 59 of file GrMemoryPoolTest.cpp.

59 {
60#ifdef SK_DEBUG
61 gPool->validate();
62#endif
63 }

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