OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:GrResourceCache
(Results
1 - 25
of
40
) sorted by null
1
2
/external/skia/src/gpu/
GrResourceCache.cpp
8
#include "
GrResourceCache
.h"
63
class
GrResourceCache
::AutoValidate : ::SkNoncopyable {
65
AutoValidate(
GrResourceCache
* cache) : fCache(cache) { cache->validate(); }
68
GrResourceCache
* fCache;
73
inline
GrResourceCache
::ResourceAwaitingUnref::ResourceAwaitingUnref() = default;
75
inline
GrResourceCache
::ResourceAwaitingUnref::ResourceAwaitingUnref(GrGpuResource* resource)
78
inline
GrResourceCache
::ResourceAwaitingUnref::ResourceAwaitingUnref(ResourceAwaitingUnref&& that) {
83
inline
GrResourceCache
::ResourceAwaitingUnref&
GrResourceCache
::ResourceAwaitingUnref::operator=(
90
inline
GrResourceCache
::ResourceAwaitingUnref::~ResourceAwaitingUnref()
[
all
...]
GrResourceCache.h
57
class
GrResourceCache
{
59
GrResourceCache
(const GrCaps*, GrSingleOwner* owner, uint32_t contextUniqueID);
60
~
GrResourceCache
();
388
GR_MAKE_BITFIELD_CLASS_OPS(
GrResourceCache
::ScratchFlags);
390
class
GrResourceCache
::ResourceAccess {
392
ResourceAccess(
GrResourceCache
* cache) : fCache(cache) { }
456
GrResourceCache
* fCache;
459
friend class
GrResourceCache
; // To create this type.
462
inline
GrResourceCache
::ResourceAccess
GrResourceCache
::resourceAccess()
[
all
...]
GrResourceProvider.h
13
#include "
GrResourceCache
.h"
56
GrResourceProvider(GrGpu*,
GrResourceCache
*, GrSingleOwner*,
272
GrResourceCache
* cache() { return fCache; }
273
const
GrResourceCache
* cache() const { return fCache; }
294
GrResourceCache
* fCache;
GrGpuResource.cpp
11
#include "
GrResourceCache
.h"
17
static inline
GrResourceCache
* get_resource_cache(GrGpu* gpu) {
174
GrResourceCache
::ResourceAccess::kAllCntsReachedZero_RefNotificationFlag;
186
uint32_t flags =
GrResourceCache
::ResourceAccess::kRefCntReachedZero_RefNotificationFlag;
188
flags |=
GrResourceCache
::ResourceAccess::kAllCntsReachedZero_RefNotificationFlag;
GrGpuResourceCacheAccess.h
19
* This class allows
GrResourceCache
increased privileged access to GrGpuResource objects.
87
friend class
GrResourceCache
; // to use this type
GrResourceProvider.cpp
20
#include "
GrResourceCache
.h"
33
GrResourceProvider::GrResourceProvider(GrGpu* gpu,
GrResourceCache
* cache, GrSingleOwner* owner,
197
auto scratchFlags =
GrResourceCache
::ScratchFlags::kNone;
199
scratchFlags |=
GrResourceCache
::ScratchFlags::kRequireNoPendingIO;
203
scratchFlags |=
GrResourceCache
::ScratchFlags::kPreferNoPendingIO;
363
key, allocSize,
GrResourceCache
::ScratchFlags::kNone)));
GrTexture.cpp
60
GrResourceCache
* cache = texture->getContext()->priv().getResourceCache();
/external/skqp/src/gpu/
GrResourceCache.h
56
class
GrResourceCache
{
58
GrResourceCache
(const GrCaps*, GrSingleOwner* owner, uint32_t contextUniqueID);
59
~
GrResourceCache
();
366
GR_MAKE_BITFIELD_CLASS_OPS(
GrResourceCache
::ScratchFlags);
368
class
GrResourceCache
::ResourceAccess {
370
ResourceAccess(
GrResourceCache
* cache) : fCache(cache) { }
434
GrResourceCache
* fCache;
437
friend class
GrResourceCache
; // To create this type.
440
inline
GrResourceCache
::ResourceAccess
GrResourceCache
::resourceAccess()
[
all
...]
GrResourceCache.cpp
8
#include "
GrResourceCache
.h"
62
class
GrResourceCache
::AutoValidate : ::SkNoncopyable {
64
AutoValidate(
GrResourceCache
* cache) : fCache(cache) { cache->validate(); }
67
GrResourceCache
* fCache;
72
GrResourceCache
::
GrResourceCache
(const GrCaps* caps, GrSingleOwner* singleOwner,
98
GrResourceCache
::~
GrResourceCache
() {
102
void
GrResourceCache
::setLimits(int count, size_t bytes) {
108
void
GrResourceCache
::insertResource(GrGpuResource* resource)
[
all
...]
GrResourceProvider.h
13
#include "
GrResourceCache
.h"
61
GrResourceProvider(GrGpu*,
GrResourceCache
*, GrSingleOwner*,
275
GrResourceCache
* cache() { return fCache; }
276
const
GrResourceCache
* cache() const { return fCache; }
297
GrResourceCache
* fCache;
GrGpuResource.cpp
11
#include "
GrResourceCache
.h"
17
static inline
GrResourceCache
* get_resource_cache(GrGpu* gpu) {
171
GrResourceCache
::ResourceAccess::kAllCntsReachedZero_RefNotificationFlag;
182
uint32_t flags =
GrResourceCache
::ResourceAccess::kRefCntReachedZero_RefNotificationFlag;
184
flags |=
GrResourceCache
::ResourceAccess::kAllCntsReachedZero_RefNotificationFlag;
GrGpuResourceCacheAccess.h
19
* This class allows
GrResourceCache
increased privileged access to GrGpuResource objects.
87
friend class
GrResourceCache
; // to use this type
GrResourceProvider.cpp
20
#include "
GrResourceCache
.h"
42
GrResourceProvider::GrResourceProvider(GrGpu* gpu,
GrResourceCache
* cache, GrSingleOwner* owner,
216
auto scratchFlags =
GrResourceCache
::ScratchFlags::kNone;
218
scratchFlags |=
GrResourceCache
::ScratchFlags::kRequireNoPendingIO;
222
scratchFlags |=
GrResourceCache
::ScratchFlags::kPreferNoPendingIO;
385
auto scratchFlags =
GrResourceCache
::ScratchFlags::kNone;
387
scratchFlags =
GrResourceCache
::ScratchFlags::kRequireNoPendingIO;
389
scratchFlags =
GrResourceCache
::ScratchFlags::kPreferNoPendingIO;
GrProxyProvider.h
29
GrProxyProvider(GrResourceProvider*,
GrResourceCache
*, sk_sp<const GrCaps>, GrSingleOwner*);
274
GrResourceCache
* fResourceCache;
/external/skia/bench/
GrResourceCacheBench.cpp
15
#include "
GrResourceCache
.h"
79
GrResourceCache
* cache = context->priv().getResourceCache();
125
GrResourceCache
* cache = fContext->priv().getResourceCache();
140
GrResourceCache
* cache = fContext->priv().getResourceCache();
/external/skia/tests/
PathRendererCacheTests.cpp
13
#include "
GrResourceCache
.h"
61
static bool cache_non_scratch_resources_equals(
GrResourceCache
* cache, int expected) {
63
GrResourceCache
::Stats stats;
80
GrResourceCache
* cache = ctx->priv().getResourceCache();
ResourceCacheTest.cpp
18
#include "
GrResourceCache
.h"
355
GrResourceCache
* cache = fContext->priv().getResourceCache();
360
GrResourceCache
* cache() { return fContext->priv().getResourceCache(); }
375
GrResourceCache
* cache = mock.cache();
429
GrResourceCache
* cache = mock.cache();
493
GrResourceCache
* cache = mock.cache();
620
GrResourceCache
* cache = mock.cache();
693
GrResourceCache
* cache = mock.cache();
708
REPORTER_ASSERT(reporter, nullptr == cache->findAndRefScratchResource(key, TestResource::kDefaultSize,
GrResourceCache
::ScratchFlags::kNone));
722
resource = static_cast<TestResource*>(cache->findAndRefScratchResource(key, TestResource::kDefaultSize,
GrResourceCache
::ScratchFlags::kNone))
[
all
...]
/external/skqp/bench/
GrResourceCacheBench.cpp
15
#include "
GrResourceCache
.h"
79
GrResourceCache
* cache = context->contextPriv().getResourceCache();
125
GrResourceCache
* cache = fContext->contextPriv().getResourceCache();
140
GrResourceCache
* cache = fContext->contextPriv().getResourceCache();
/external/skqp/tests/
PathRendererCacheTests.cpp
13
#include "
GrResourceCache
.h"
61
static bool cache_non_scratch_resources_equals(
GrResourceCache
* cache, int expected) {
63
GrResourceCache
::Stats stats;
80
GrResourceCache
* cache = ctx->contextPriv().getResourceCache();
ResourceCacheTest.cpp
18
#include "
GrResourceCache
.h"
355
GrResourceCache
* cache = fContext->contextPriv().getResourceCache();
360
GrResourceCache
* cache() { return fContext->contextPriv().getResourceCache(); }
375
GrResourceCache
* cache = mock.cache();
429
GrResourceCache
* cache = mock.cache();
493
GrResourceCache
* cache = mock.cache();
620
GrResourceCache
* cache = mock.cache();
693
GrResourceCache
* cache = mock.cache();
708
REPORTER_ASSERT(reporter, nullptr == cache->findAndRefScratchResource(key, TestResource::kDefaultSize,
GrResourceCache
::ScratchFlags::kNone));
722
resource = static_cast<TestResource*>(cache->findAndRefScratchResource(key, TestResource::kDefaultSize,
GrResourceCache
::ScratchFlags::kNone))
[
all
...]
/external/skia/include/gpu/
GrContext.h
32
class
GrResourceCache
;
329
GrResourceCache
* fResourceCache;
GrGpuResource.h
17
class
GrResourceCache
;
147
friend class
GrResourceCache
; // to check IO ref counts.
153
* Base class for objects that can be kept in the
GrResourceCache
.
321
* Called by
GrResourceCache
when a resource loses its last ref or pending IO.
/external/skqp/include/gpu/
GrContext.h
38
class
GrResourceCache
;
301
GrResourceCache
* fResourceCache;
GrGpuResource.h
17
class
GrResourceCache
;
134
friend class
GrResourceCache
; // to check IO ref counts.
140
* Base class for objects that can be kept in the
GrResourceCache
.
316
* Called by
GrResourceCache
when a resource loses its last ref or pending IO.
/external/skqp/tools/gpu/
GrTest.cpp
20
#include "
GrResourceCache
.h"
139
void
GrResourceCache
::getStats(Stats* stats) const {
154
void
GrResourceCache
::dumpStats(SkString* out) const {
174
void
GrResourceCache
::dumpStatsKeyValuePairs(SkTArray<SkString>* keys,
188
void
GrResourceCache
::changeTimestamp(uint32_t newTimestamp) { fTimestamp = newTimestamp; }
191
int
GrResourceCache
::countUniqueKeysWithTag(const char* tag) const {
Completed in 2900 milliseconds
1
2