OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:SkResourceCache
(Results
1 - 22
of
22
) sorted by null
/external/skia/src/core/
SkYUVPlanesCache.h
15
class
SkResourceCache
;
36
SkResourceCache
* localCache = nullptr);
42
SkResourceCache
* localCache = nullptr);
SkResourceCache.cpp
13
#include "
SkResourceCache
.h"
19
DECLARE_SKMESSAGEBUS_MESSAGE(
SkResourceCache
::PurgeSharedIDMessage)
32
void
SkResourceCache
::Key::init(void* nameSpace, uint64_t sharedID, size_t dataSize) {
58
static uint32_t Hash(const
SkResourceCache
::Key& key) { return key.hash(); }
59
static const
SkResourceCache
::Key& GetKey(const
SkResourceCache
::Rec* rec) {
65
class
SkResourceCache
::Hash :
66
public SkTHashTable<
SkResourceCache
::Rec*,
SkResourceCache
::Key, HashTraits> {};
71
void
SkResourceCache
::init()
[
all
...]
SkMaskCache.h
15
#include "
SkResourceCache
.h"
28
SkResourceCache
* localCache = nullptr);
31
SkResourceCache
* localCache = nullptr);
38
SkResourceCache
* localCache = nullptr);
41
SkResourceCache
* localCache = nullptr);
SkYUVPlanesCache.cpp
9
#include "
SkResourceCache
.h"
13
((localCache) ? localCache->localName(__VA_ARGS__) :
SkResourceCache
::globalName(__VA_ARGS__))
23
struct YUVPlanesKey : public
SkResourceCache
::Key {
34
struct YUVPlanesRec : public
SkResourceCache
::Rec {
56
static bool Visitor(const
SkResourceCache
::Rec& baseRec, void* contextData) {
74
SkResourceCache
* localCache) {
86
SkResourceCache
* localCache) {
SkResourceCache.h
29
class
SkResourceCache
{
75
typedef
SkResourceCache
::Key Key;
109
friend class
SkResourceCache
;
200
SkResourceCache
(DiscardableFactory);
208
explicit
SkResourceCache
(size_t byteLimit);
209
~
SkResourceCache
();
SkBitmapCache.h
15
class
SkResourceCache
;
68
SkResourceCache
* localCache = nullptr);
70
SkResourceCache
* localCache = nullptr);
SkMaskCache.cpp
11
((localCache) ? localCache->localName(__VA_ARGS__) :
SkResourceCache
::globalName(__VA_ARGS__))
21
struct RRectBlurKey : public
SkResourceCache
::Key {
39
struct RRectBlurRec : public
SkResourceCache
::Rec {
61
static bool Visitor(const
SkResourceCache
::Rec& baseRec, void* contextData) {
78
const SkRRect& rrect, SkMask* mask,
SkResourceCache
* localCache) {
92
SkResourceCache
* localCache) {
102
struct RectsBlurKey : public
SkResourceCache
::Key {
133
struct RectsBlurRec : public
SkResourceCache
::Rec {
155
static bool Visitor(const
SkResourceCache
::Rec& baseRec, void* contextData) {
173
SkResourceCache
* localCache)
[
all
...]
SkBitmapCache.cpp
10
#include "
SkResourceCache
.h"
24
SkResourceCache
::PostPurgeSharedID(SkMakeResourceCacheSharedIDForBitmap(bitmapGenID));
93
struct BitmapKey : public
SkResourceCache
::Key {
124
class SkBitmapCache::Rec : public
SkResourceCache
::Rec {
242
static bool Finder(const
SkResourceCache
::Rec& baseRec, void* contextBitmap) {
300
auto factory =
SkResourceCache
::GetDiscardableFactory();
314
SkResourceCache
::Add(rec.release(), bitmap);
319
return
SkResourceCache
::Find(BitmapKey(desc), SkBitmapCache::Rec::Finder, result);
326
((localCache) ? localCache->localName(__VA_ARGS__) :
SkResourceCache
::globalName(__VA_ARGS__))
331
struct MipMapKey : public
SkResourceCache
::Key
[
all
...]
SkGraphics.cpp
24
#include "
SkResourceCache
.h"
55
SkResourceCache
::DumpMemoryStatistics(dump);
SkBitmapController.cpp
39
#include "
SkResourceCache
.h"
60
size_t maximumAllocation =
SkResourceCache
::GetEffectiveSingleAllocationByteLimit();
/external/skia/bench/
ImageCacheBench.cpp
9
#include "
SkResourceCache
.h"
13
class TestKey : public
SkResourceCache
::Key {
21
struct TestRec : public
SkResourceCache
::Rec {
32
static bool Visitor(const
SkResourceCache
::Rec&, void*) {
39
SkResourceCache
fCache;
/external/skia/tests/
ImageCacheTest.cpp
9
#include "
SkResourceCache
.h"
14
struct TestingKey : public
SkResourceCache
::Key {
21
struct TestingRec : public
SkResourceCache
::Rec {
32
static bool Visitor(const
SkResourceCache
::Rec& baseRec, void* context) {
45
static void test_cache(skiatest::Reporter* reporter,
SkResourceCache
& cache, bool testPurge) {
76
static void test_cache_purge_shared_id(skiatest::Reporter* reporter,
SkResourceCache
& cache) {
120
SkResourceCache
cache(defLimit);
126
SkResourceCache
cache(pool_factory);
130
SkResourceCache
cache(SkDiscardableMemory::Create);
134
SkResourceCache
cache(defLimit)
[
all
...]
SkResourceCacheTest.cpp
17
#include "
SkResourceCache
.h"
40
static void test_mipmapcache(skiatest::Reporter* reporter,
SkResourceCache
* cache) {
81
static void test_mipmap_notify(skiatest::Reporter* reporter,
SkResourceCache
* cache) {
117
static void testBitmapCache_discarded_bitmap(skiatest::Reporter* reporter,
SkResourceCache
* cache,
118
SkResourceCache
::DiscardableFactory factory) {
126
SkResourceCache
cache(byteLimit);
132
SkResourceCache
::DiscardableFactory factory = pool_factory;
133
SkResourceCache
cache(factory);
210
struct TestKey :
SkResourceCache
::Key {
218
struct TestRec :
SkResourceCache
::Rec
[
all
...]
MaskCacheTest.cpp
10
#include "
SkResourceCache
.h"
32
SkResourceCache
cache(1024);
71
SkResourceCache
cache(1024);
YUVCacheTest.cpp
10
#include "
SkResourceCache
.h"
32
SkResourceCache
cache(1024);
/external/skia/include/utils/
SkShadowUtils.h
18
class
SkResourceCache
;
/external/skia/src/ports/
SkFontMgr_FontConfigInterface.cpp
19
#include "
SkResourceCache
.h"
69
struct Request : public
SkResourceCache
::Key {
76
SkASSERT(SkTAddOffset<char>(this, sizeof(
SkResourceCache
::Key) + keySize) == content);
104
struct Result : public
SkResourceCache
::Rec {
120
SkResourceCache
fCachedResults;
132
fCachedResults.find(*request, [](const
SkResourceCache
::Rec& rec, void* context) -> bool {
/external/skia/src/utils/
SkShadowUtils.cpp
18
#include "
SkResourceCache
.h"
181
* This manages a set of tessellations for a given shape in the cache. Because
SkResourceCache
274
* A record of shadow vertices stored in
SkResourceCache
of CachedTessellations for a particular
277
class CachedTessellationsRec : public
SkResourceCache
::Rec {
279
CachedTessellationsRec(const
SkResourceCache
::Key& key,
287
return *reinterpret_cast<
SkResourceCache
::Key*>(fKey.get());
310
* mesh then we inform
SkResourceCache
to destroy the Rec and we return the CachedTessellations
324
// and create a new CachedTessellationsRec and insert it into
SkResourceCache
.
331
* Function called by
SkResourceCache
when a matching cache key is found. The FACTORY and matrix of
336
bool FindVisitor(const
SkResourceCache
::Rec& baseRec, void* ctx)
[
all
...]
/external/skia/src/shaders/
SkPictureShader.cpp
21
#include "
SkResourceCache
.h"
32
struct BitmapShaderKey : public
SkResourceCache
::Key {
87
struct BitmapShaderRec : public
SkResourceCache
::Rec {
104
static bool Visitor(const
SkResourceCache
::Rec& baseRec, void* contextShader) {
141
SkResourceCache
::PostPurgeSharedID(BitmapShaderKey::MakeSharedID(fUniqueID));
267
if (!
SkResourceCache
::Find(key, BitmapShaderRec::Visitor, &tileShader)) {
287
SkResourceCache
::Add(new BitmapShaderRec(key, tileShader.get()));
/external/skia/src/gpu/
GrYUVProvider.cpp
17
#include "
SkResourceCache
.h"
64
fCachedData.reset(
SkResourceCache
::NewCachedData(totalSize));
/external/skia/src/effects/
SkBlurMaskFilter.cpp
419
SkCachedData* data =
SkResourceCache
::NewCachedData(size);
[
all
...]
/external/skia/samplecode/
SampleApp.cpp
[
all
...]
Completed in 371 milliseconds