Flutter Engine
The Flutter Engine
|
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkImage.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPicture.h"
#include "include/core/SkPictureRecorder.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkSamplingOptions.h"
#include "include/core/SkSize.h"
#include "include/core/SkSurface.h"
#include "include/core/SkTypes.h"
#include "include/private/chromium/SkDiscardableMemory.h"
#include "src/core/SkBitmapCache.h"
#include "src/core/SkCachedData.h"
#include "src/core/SkMipmap.h"
#include "src/core/SkResourceCache.h"
#include "src/image/SkImage_Base.h"
#include "src/lazy/SkDiscardableMemoryPool.h"
#include "tests/Test.h"
#include <array>
#include <cstddef>
#include <cstdint>
#include <initializer_list>
#include <memory>
Go to the source code of this file.
Classes | |
struct | TestKey |
struct | TestRec |
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, const SkCachedData *data, int refcnt, CachedState cacheState, LockedState lockedState) |
static void | test_mipmapcache (skiatest::Reporter *reporter, SkResourceCache *cache) |
static void | test_mipmap_notify (skiatest::Reporter *reporter, SkResourceCache *cache) |
static SkDiscardableMemory * | pool_factory (size_t bytes) |
static void | testBitmapCache_discarded_bitmap (skiatest::Reporter *reporter, SkResourceCache *cache, SkResourceCache::DiscardableFactory factory) |
DEF_TEST (BitmapCache_discarded_bitmap, reporter) | |
static void | test_discarded_image (skiatest::Reporter *reporter, const SkMatrix &transform, sk_sp< SkImage >(*buildImage)()) |
DEF_TEST (BitmapCache_discarded_image, reporter) | |
static void | test_duplicate_add (SkResourceCache *cache, skiatest::Reporter *reporter, bool purgable) |
DEF_TEST (ResourceCache_purge, reporter) | |
Variables | |
static SkDiscardableMemoryPool * | gPool = nullptr |
static int | gFactoryCalls = 0 |
static void * | gTestNamespace |
enum CachedState |
Enumerator | |
---|---|
kNotInCache | |
kInCache | |
kNotInCache | |
kInCache | |
kNotInCache | |
kInCache | |
kNotInCache | |
kInCache |
Definition at line 44 of file SkResourceCacheTest.cpp.
enum LockedState |
Enumerator | |
---|---|
kUnlocked | |
kLocked | |
kUnlocked | |
kLocked | |
kNotLocked | |
kLocked | |
kUnlocked | |
kLocked |
Definition at line 39 of file SkResourceCacheTest.cpp.
|
static |
Definition at line 49 of file SkResourceCacheTest.cpp.
DEF_TEST | ( | BitmapCache_discarded_bitmap | , |
reporter | |||
) |
Definition at line 142 of file SkResourceCacheTest.cpp.
DEF_TEST | ( | BitmapCache_discarded_image | , |
reporter | |||
) |
Definition at line 190 of file SkResourceCacheTest.cpp.
DEF_TEST | ( | ResourceCache_purge | , |
reporter | |||
) |
Definition at line 297 of file SkResourceCacheTest.cpp.
|
static |
Definition at line 130 of file SkResourceCacheTest.cpp.
|
static |
Definition at line 158 of file SkResourceCacheTest.cpp.
|
static |
Definition at line 259 of file SkResourceCacheTest.cpp.
|
static |
Definition at line 96 of file SkResourceCacheTest.cpp.
|
static |
Definition at line 57 of file SkResourceCacheTest.cpp.
|
static |
Definition at line 136 of file SkResourceCacheTest.cpp.
|
static |
Definition at line 128 of file SkResourceCacheTest.cpp.
|
static |
Definition at line 127 of file SkResourceCacheTest.cpp.
|
static |
Definition at line 227 of file SkResourceCacheTest.cpp.