• Home
  • Raw
  • Download

Lines Matching refs:fResource

24     void ref() { fResource->addInitialRef(); }  in ref()
31 return !fResource->getUniqueKey().isValid() && fResource->fScratchKey.isValid() && in isScratch()
32 GrBudgetedType::kBudgeted == fResource->resourcePriv().budgetedType(); in isScratch()
36 return this->isScratch() && !fResource->internalHasRef(); in isUsableAsScratch()
43 fResource->release(); in release()
44 if (!fResource->hasRef() && fResource->hasNoCommandBufferUsages()) { in release()
45 delete fResource; in release() local
53 fResource->abandon(); in abandon()
54 if (!fResource->hasRef() && fResource->hasNoCommandBufferUsages()) { in abandon()
55 delete fResource; in abandon() local
60 void setUniqueKey(const GrUniqueKey& key) { fResource->fUniqueKey = key; } in setUniqueKey()
63 bool hasRef() const { return fResource->hasRef(); } in hasRef()
65 return this->hasRef() || !fResource->hasNoCommandBufferUsages(); in hasRefOrCommandBufferUsage()
69 void removeUniqueKey() { fResource->fUniqueKey.reset(); } in removeUniqueKey()
71 uint32_t timestamp() const { return fResource->fTimestamp; } in timestamp()
72 void setTimestamp(uint32_t ts) { fResource->fTimestamp = ts; } in setTimestamp()
75 SkASSERT(fResource->isPurgeable()); in setTimeWhenResourceBecomePurgeable()
76 fResource->fTimeWhenBecamePurgeable = GrStdSteadyClock::now(); in setTimeWhenResourceBecomePurgeable()
83 SkASSERT(fResource->isPurgeable()); in timeWhenResourceBecamePurgeable()
84 return fResource->fTimeWhenBecamePurgeable; in timeWhenResourceBecamePurgeable()
87 int* accessCacheIndex() const { return &fResource->fCacheArrayIndex; } in accessCacheIndex()
89 CacheAccess(GrGpuResource* resource) : fResource(resource) {} in CacheAccess()
90 CacheAccess(const CacheAccess& that) : fResource(that.fResource) {} in CacheAccess()
97 GrGpuResource* fResource; variable