Flutter Engine
The Flutter Engine
|
#include "include/core/SkRefCnt.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkMalloc.h"
#include "src/core/SkCachedData.h"
#include "src/lazy/SkDiscardableMemoryPool.h"
#include "tests/Test.h"
#include <cstring>
Go to the source code of this file.
Enumerations | |
enum | LockedState { kUnlocked , kLocked , kUnlocked , kLocked , kNotLocked , kLocked , kUnlocked , kLocked } |
enum | CachedState { kNotInCache , kInCache , kNotInCache , kInCache , kNotInCache , kInCache , kNotInCache , kInCache } |
Functions | |
static void | check_data (skiatest::Reporter *reporter, SkCachedData *data, int refcnt, CachedState cacheState, LockedState lockedState) |
static SkCachedData * | make_data (size_t size, SkDiscardableMemoryPool *pool) |
static SkCachedData * | test_locking (skiatest::Reporter *reporter, size_t size, SkDiscardableMemoryPool *pool) |
DEF_TEST (CachedData, reporter) | |
enum CachedState |
Enumerator | |
---|---|
kNotInCache | |
kInCache | |
kNotInCache | |
kInCache | |
kNotInCache | |
kInCache | |
kNotInCache | |
kInCache |
Definition at line 24 of file CachedDataTest.cpp.
enum LockedState |
Enumerator | |
---|---|
kUnlocked | |
kLocked | |
kUnlocked | |
kLocked | |
kNotLocked | |
kLocked | |
kUnlocked | |
kLocked |
Definition at line 19 of file CachedDataTest.cpp.
|
static |
Definition at line 29 of file CachedDataTest.cpp.
DEF_TEST | ( | CachedData | , |
reporter | |||
) |
Definition at line 81 of file CachedDataTest.cpp.
|
static |
Definition at line 36 of file CachedDataTest.cpp.
|
static |
Definition at line 48 of file CachedDataTest.cpp.