Flutter Engine
The Flutter Engine
|
#include "include/core/SkTypes.h"
#include "include/private/base/SkDebug.h"
#include "src/base/SkBlockAllocator.h"
#include "tests/Test.h"
#include <cstdint>
#include <cstring>
#include <new>
#include <vector>
Go to the source code of this file.
Classes | |
class | BlockAllocatorTestAccess |
struct | TestMeta |
struct | TestMetaBig |
Typedefs | |
using | Block = SkBlockAllocator::Block |
using | GrowthPolicy = SkBlockAllocator::GrowthPolicy |
Functions | |
template<size_t N> | |
static int | block_count (const SkSBlockAllocator< N > &pool) |
template<size_t N> | |
static Block * | get_block (SkSBlockAllocator< N > &pool, int blockIndex) |
template<size_t N> | |
static size_t | total_size (SkSBlockAllocator< N > &pool) |
template<size_t N> | |
static size_t | add_block (SkSBlockAllocator< N > &pool) |
template<size_t N> | |
static void * | alloc_byte (SkSBlockAllocator< N > &pool) |
DEF_TEST (SkBlockAllocatorPreallocSize, r) | |
DEF_TEST (SkBlockAllocatorAlloc, r) | |
DEF_TEST (SkBlockAllocatorResize, r) | |
DEF_TEST (SkBlockAllocatorRelease, r) | |
DEF_TEST (SkBlockAllocatorRewind, r) | |
DEF_TEST (SkBlockAllocatorGrowthPolicy, r) | |
DEF_TEST (SkBlockAllocatorReset, r) | |
DEF_TEST (SkBlockAllocatorReleaseBlock, r) | |
DEF_TEST (SkBlockAllocatorIterateAndRelease, r) | |
DEF_TEST (SkBlockAllocatorScratchBlockReserve, r) | |
DEF_TEST (SkBlockAllocatorStealBlocks, r) | |
DEF_TEST (SkBlockAllocatorMetadata, r) | |
DEF_TEST (SkBlockAllocatorAllocatorMetadata, r) | |
template<size_t Align, size_t Padding> | |
static void | run_owning_block_test (skiatest::Reporter *r, SkBlockAllocator *pool) |
template<size_t Padding> | |
static void | run_owning_block_tests (skiatest::Reporter *r, SkBlockAllocator *pool) |
DEF_TEST (SkBlockAllocatorOwningBlock, r) | |
using Block = SkBlockAllocator::Block |
Definition at line 18 of file SkBlockAllocatorTest.cpp.
Definition at line 19 of file SkBlockAllocatorTest.cpp.
|
static |
Definition at line 65 of file SkBlockAllocatorTest.cpp.
|
static |
Definition at line 75 of file SkBlockAllocatorTest.cpp.
|
static |
Definition at line 31 of file SkBlockAllocatorTest.cpp.
DEF_TEST | ( | SkBlockAllocatorAlloc | , |
r | |||
) |
Definition at line 106 of file SkBlockAllocatorTest.cpp.
DEF_TEST | ( | SkBlockAllocatorAllocatorMetadata | , |
r | |||
) |
Definition at line 606 of file SkBlockAllocatorTest.cpp.
DEF_TEST | ( | SkBlockAllocatorGrowthPolicy | , |
r | |||
) |
Definition at line 297 of file SkBlockAllocatorTest.cpp.
DEF_TEST | ( | SkBlockAllocatorIterateAndRelease | , |
r | |||
) |
Definition at line 418 of file SkBlockAllocatorTest.cpp.
DEF_TEST | ( | SkBlockAllocatorMetadata | , |
r | |||
) |
Definition at line 568 of file SkBlockAllocatorTest.cpp.
DEF_TEST | ( | SkBlockAllocatorOwningBlock | , |
r | |||
) |
Definition at line 654 of file SkBlockAllocatorTest.cpp.
DEF_TEST | ( | SkBlockAllocatorPreallocSize | , |
r | |||
) |
Definition at line 80 of file SkBlockAllocatorTest.cpp.
DEF_TEST | ( | SkBlockAllocatorRelease | , |
r | |||
) |
Definition at line 240 of file SkBlockAllocatorTest.cpp.
DEF_TEST | ( | SkBlockAllocatorReleaseBlock | , |
r | |||
) |
Definition at line 357 of file SkBlockAllocatorTest.cpp.
DEF_TEST | ( | SkBlockAllocatorReset | , |
r | |||
) |
Definition at line 324 of file SkBlockAllocatorTest.cpp.
DEF_TEST | ( | SkBlockAllocatorResize | , |
r | |||
) |
Definition at line 187 of file SkBlockAllocatorTest.cpp.
DEF_TEST | ( | SkBlockAllocatorRewind | , |
r | |||
) |
Definition at line 272 of file SkBlockAllocatorTest.cpp.
DEF_TEST | ( | SkBlockAllocatorScratchBlockReserve | , |
r | |||
) |
Definition at line 455 of file SkBlockAllocatorTest.cpp.
DEF_TEST | ( | SkBlockAllocatorStealBlocks | , |
r | |||
) |
Definition at line 518 of file SkBlockAllocatorTest.cpp.
|
static |
|
static |
Definition at line 626 of file SkBlockAllocatorTest.cpp.
|
static |
Definition at line 643 of file SkBlockAllocatorTest.cpp.
|
static |
Definition at line 60 of file SkBlockAllocatorTest.cpp.