Home
last modified time | relevance | path

Searched refs:fResource (Results 1 – 13 of 13) sorted by relevance

/external/skia/src/gpu/
DGrGpuResourceRef.cpp11 fResource = nullptr; in GrGpuResourceRef()
17 fResource = nullptr; in GrGpuResourceRef()
25 SkASSERT(fResource); in ~GrGpuResourceRef()
26 fResource->unref(); in ~GrGpuResourceRef()
31 fResource->completedRead(); in ~GrGpuResourceRef()
34 fResource->completedWrite(); in ~GrGpuResourceRef()
37 fResource->completedRead(); in ~GrGpuResourceRef()
38 fResource->completedWrite(); in ~GrGpuResourceRef()
46 SkASSERT(SkToBool(fResource) == fOwnRef); in reset()
48 fResource->unref(); in reset()
[all …]
DGrGpuResourceCacheAccess.h29 return !fResource->getUniqueKey().isValid() && fResource->fScratchKey.isValid() && in isScratch()
30 SkBudgeted::kYes == fResource->resourcePriv().isBudgeted(); in isScratch()
36 bool isExternal() const { return fResource->isExternal(); } in isExternal()
42 bool isBorrowed() const { return GrGpuResource::kBorrowed_LifeCycle == fResource->fLifeCycle; } in isBorrowed()
48 bool isAdopted() const { return GrGpuResource::kAdopted_LifeCycle == fResource->fLifeCycle; } in isAdopted()
54 fResource->release(); in release()
55 if (fResource->isPurgeable()) { in release()
56 delete fResource; in release() local
64 fResource->abandon(); in abandon()
65 if (fResource->isPurgeable()) { in abandon()
[all …]
DGrGpuResourcePriv.h26 void setUniqueKey(const GrUniqueKey& key) { fResource->setUniqueKey(key); } in setUniqueKey()
30 void removeUniqueKey() { fResource->removeUniqueKey(); } in removeUniqueKey()
36 void makeBudgeted() { fResource->makeBudgeted(); } in makeBudgeted()
42 void makeUnbudgeted() { fResource->makeUnbudgeted(); } in makeUnbudgeted()
48 bool ret = GrGpuResource::kCached_LifeCycle == fResource->fLifeCycle; in isBudgeted()
49 SkASSERT(ret || !fResource->getUniqueKey().isValid()); in isBudgeted()
58 const GrScratchKey& getScratchKey() const { return fResource->fScratchKey; } in getScratchKey()
64 void removeScratchKey() const { fResource->removeScratchKey(); } in removeScratchKey()
67 ResourcePriv(GrGpuResource* resource) : fResource(resource) { } in ResourcePriv()
68 ResourcePriv(const ResourcePriv& that) : fResource(that.fResource) {} in ResourcePriv()
[all …]
/external/icu/icu4c/source/common/
Dresbund.cpp179 fResource = ures_open(0, Locale::getDefault().getName(), &err); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
187 if (other.fResource) { in ResourceBundle()
188 fResource = ures_copyResb(0, other.fResource, &status); in ResourceBundle()
191 fResource = NULL; in ResourceBundle()
199 fResource = ures_copyResb(0, res, &err); in ResourceBundle()
202 fResource = NULL; in ResourceBundle()
209 fResource = ures_open(path, locale.getName(), &err); in ResourceBundle()
218 if(fResource != 0) { in operator =()
219 ures_close(fResource); in operator =()
220 fResource = NULL; in operator =()
[all …]
Dresbund_cnv.cpp46 fResource = ures_open(NULL, locale.getName(), &error); in constructForLocale()
51 fResource = ures_openU(nullTerminatedPath.getBuffer(), locale.getName(), &error); in constructForLocale()
/external/skia/include/gpu/
DGrGpuResourceRef.h41 GrGpuResource* getResource() const { return fResource; } in getResource()
80 GrGpuResource* fResource; variable
158 GrPendingIOResource(T* resource = NULL) : fResource(NULL) { in fResource() function
178 fResource = resource; in reset()
185 explicit operator bool() const { return SkToBool(fResource); }
188 return fResource == other.fResource;
191 T* get() const { return fResource; } in get()
195 if (fResource) { in release()
198 fResource->completedRead(); in release()
201 fResource->completedWrite(); in release()
[all …]
/external/skia/src/gpu/vk/
DGrVkImage.cpp37 fResource->fImage, // image in setImageLayout()
98 SkASSERT(!fResource); in ~GrVkImage()
102 if (fResource) { in releaseImage()
103 fResource->unref(gpu); in releaseImage()
104 fResource = nullptr; in releaseImage()
109 if (fResource) { in abandonImage()
110 fResource->unrefAndAbandon(); in abandonImage()
111 fResource = nullptr; in abandonImage()
DGrVkBuffer.h24 SkASSERT(!fResource); in ~GrVkBuffer()
27 VkBuffer buffer() const { return fResource->fBuffer; } in buffer()
28 VkDeviceMemory alloc() const { return fResource->fAlloc; } in alloc()
29 const GrVkResource* resource() const { return fResource; } in resource()
71 : fDesc(desc), fResource(resource), fMapPtr(nullptr) { in GrVkBuffer()
86 const Resource* fResource; variable
DGrVkImage.h45 GrVkImage(const Resource* imageResource) : fResource(imageResource) { in GrVkImage()
56 VkImage textureImage() const { return fResource->fImage; } in textureImage()
57 VkDeviceMemory textureMemory() const { return fResource->fAlloc; } in textureMemory()
58 const Resource* resource() const { return fResource; } in resource()
60 return SkToBool(fResource->fFlags & Resource::kLinearTiling_Flag); in isLinearTiled()
102 const Resource* fResource; variable
DGrVkBuffer.cpp112 fResource->unref(gpu); in vkRelease()
113 fResource = nullptr; in vkRelease()
119 fResource->unrefAndAbandon(); in vkAbandon()
173 SkASSERT(!fResource || kVertex_Type == fDesc.fType || kIndex_Type == fDesc.fType in validate()
DGrVkTexture.cpp117 return (GrBackendObject)&fResource; in getTextureHandle()
DGrVkRenderTarget.cpp363 return (GrBackendObject)&fResource; in getRenderTargetHandle()
/external/icu/icu4c/source/common/unicode/
Dresbund.h484 UResourceBundle *fResource; variable