Flutter Engine
The Flutter Engine
Functions
SkDiscardableMemoryPool.cpp File Reference
#include "include/private/base/SkMalloc.h"
#include "include/private/base/SkMutex.h"
#include "include/private/base/SkTemplates.h"
#include "include/private/chromium/SkDiscardableMemory.h"
#include "src/base/SkTInternalLList.h"
#include "src/lazy/SkDiscardableMemoryPool.h"

Go to the source code of this file.

Functions

SkDiscardableMemoryPoolSkGetGlobalDiscardableMemoryPool ()
 

Function Documentation

◆ SkGetGlobalDiscardableMemoryPool()

SkDiscardableMemoryPool * SkGetGlobalDiscardableMemoryPool ( )

Returns (and creates if needed) a threadsafe global SkDiscardableMemoryPool.

Definition at line 237 of file SkDiscardableMemoryPool.cpp.

237 {
238 // Intentionally leak this global pool.
239 static SkDiscardableMemoryPool* global =
240 new DiscardableMemoryPool(SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE);
241 return global;
242}
#define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE