/external/skia/src/gpu/ |
D | GrGpuResourceCacheAccess.h | 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 [all …]
|
D | GrGpuResourcePriv.h | 25 void setUniqueKey(const GrUniqueKey& key) { fResource->setUniqueKey(key); } in setUniqueKey() 29 void removeUniqueKey() { fResource->removeUniqueKey(); } in removeUniqueKey() 35 void makeBudgeted() { fResource->makeBudgeted(); } in makeBudgeted() 41 void makeUnbudgeted() { fResource->makeUnbudgeted(); } in makeUnbudgeted() 48 SkASSERT(GrBudgetedType::kBudgeted == fResource->fBudgetedType || in budgetedType() 49 !fResource->getUniqueKey().isValid() || fResource->fRefsWrappedObjects); in budgetedType() 50 return fResource->fBudgetedType; in budgetedType() 56 bool refsWrappedObjects() const { return fResource->fRefsWrappedObjects; } in refsWrappedObjects() 63 const GrScratchKey& getScratchKey() const { return fResource->fScratchKey; } in getScratchKey() 69 void removeScratchKey() const { fResource->removeScratchKey(); } in removeScratchKey() [all …]
|
/external/skqp/src/gpu/ |
D | GrGpuResourceCacheAccess.h | 28 return !fResource->getUniqueKey().isValid() && fResource->fScratchKey.isValid() && in isScratch() 29 GrBudgetedType::kBudgeted == fResource->resourcePriv().budgetedType(); in isScratch() 36 fResource->release(); in release() 37 if (!fResource->hasRefOrPendingIO()) { in release() 38 delete fResource; in release() local 46 fResource->abandon(); in abandon() 47 if (!fResource->hasRefOrPendingIO()) { in abandon() 48 delete fResource; in abandon() local 53 void setUniqueKey(const GrUniqueKey& key) { fResource->fUniqueKey = key; } in setUniqueKey() 56 void removeUniqueKey() { fResource->fUniqueKey.reset(); } in removeUniqueKey() [all …]
|
D | GrGpuResourcePriv.h | 19 SkDEBUGCODE(bool hasPendingIO_debugOnly() const { return fResource->internalHasPendingIO(); }) in SkDEBUGCODE() 27 void setUniqueKey(const GrUniqueKey& key) { fResource->setUniqueKey(key); } 31 void removeUniqueKey() { fResource->removeUniqueKey(); } in removeUniqueKey() 37 void makeBudgeted() { fResource->makeBudgeted(); } in makeBudgeted() 43 void makeUnbudgeted() { fResource->makeUnbudgeted(); } in makeUnbudgeted() 50 SkASSERT(GrBudgetedType::kBudgeted == fResource->fBudgetedType || in budgetedType() 51 !fResource->getUniqueKey().isValid() || fResource->fRefsWrappedObjects); in budgetedType() 52 return fResource->fBudgetedType; in budgetedType() 58 bool refsWrappedObjects() const { return fResource->fRefsWrappedObjects; } in refsWrappedObjects() 65 const GrScratchKey& getScratchKey() const { return fResource->fScratchKey; } in getScratchKey() [all …]
|
D | GrPendingIOResource.h | 49 fResource = resource; 52 explicit operator bool() const { return SkToBool(fResource); } 54 bool operator==(const GrPendingIOResource& other) const { return fResource == other.fResource; } 56 T* get() const { return fResource; } in get() 60 if (fResource) { in release() 63 fResource->completedRead(); in release() 66 fResource->completedWrite(); in release() 69 fResource->completedRead(); in release() 70 fResource->completedWrite(); in release() 76 T* fResource = nullptr; variable
|
/external/icu/icu4c/source/common/ |
D | resbund.cpp | 182 fResource = ures_open(0, Locale::getDefault().getName(), &err); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 190 if (other.fResource) { in ResourceBundle() 191 fResource = ures_copyResb(0, other.fResource, &status); in ResourceBundle() 194 fResource = NULL; in ResourceBundle() 202 fResource = ures_copyResb(0, res, &err); in ResourceBundle() 205 fResource = NULL; in ResourceBundle() 212 fResource = ures_open(path, locale.getName(), &err); in ResourceBundle() 221 if(fResource != 0) { in operator =() 222 ures_close(fResource); in operator =() 223 fResource = NULL; in operator =() [all …]
|
D | resbund_cnv.cpp | 48 fResource = ures_open(NULL, locale.getName(), &error); in constructForLocale() 53 fResource = ures_openU(nullTerminatedPath.getBuffer(), locale.getName(), &error); in constructForLocale()
|
/external/skia/src/gpu/d3d/ |
D | GrD3DTextureResource.h | 28 , fResource(new Resource(fInfo.fResource, info.fAlloc)) { in GrD3DTextureResource() 35 SkASSERT(fResource); in d3dResource() 36 return fInfo.fResource.get(); in d3dResource() 43 SkASSERT(fResource); in resource() 44 return fResource; in resource() 65 SkASSERT(fResource); in updateResourceState() 88 : fResource(nullptr) in Resource() 94 : fResource(textureResource) in Resource() 102 SkDebugf("GrD3DTextureResource: %d (%d refs)\n", fResource.get(), this->getRefCnt()); in dumpInfo() 109 mutable gr_cp<ID3D12Resource> fResource; variable [all …]
|
D | GrD3DTextureResource.cpp | 47 info->fResource = gpu->memoryAllocator()->createResource( in InitTextureResourceInfo() 49 if (!info->fResource) { in InitTextureResourceInfo() 103 SkASSERT(!fResource); in ~GrD3DTextureResource() 104 SkASSERT(!fInfo.fResource); in ~GrD3DTextureResource() 113 if (fResource) { in releaseResource() 114 fResource.reset(); in releaseResource() 116 fInfo.fResource.reset(); in releaseResource() 121 SkASSERT(fResource); in setResourceRelease() 123 fResource->setRelease(std::move(releaseHelper)); in setResourceRelease() 128 fResource.reset(); // Release our ref to the resource in freeGPUData()
|
D | GrD3DTextureRenderTarget.cpp | 127 gpu->resourceProvider().createShaderResourceView(info.fResource.get()); in MakeNewTextureRenderTarget() 130 gpu->resourceProvider().createRenderTargetView(info.fResource.get()); in MakeNewTextureRenderTarget() 141 gpu->resourceProvider().createRenderTargetView(msInfo.fResource.get()); in MakeNewTextureRenderTarget() 171 gpu->resourceProvider().createShaderResourceView(info.fResource.get()); in MakeWrappedTextureRenderTarget() 174 gpu->resourceProvider().createRenderTargetView(info.fResource.get()); in MakeWrappedTextureRenderTarget() 185 gpu->resourceProvider().createRenderTargetView(msInfo.fResource.get()); in MakeWrappedTextureRenderTarget()
|
D | GrD3DTexture.cpp | 81 gpu->resourceProvider().createShaderResourceView(info.fResource.get()); in MakeNewTexture() 104 gpu->resourceProvider().createShaderResourceView(info.fResource.get()); in MakeWrappedTexture() 118 info.fResource = gpu->memoryAllocator()->createAliasingResource(info.fAlloc, 0, &desc, in MakeAliasingTexture() 120 if (!info.fResource) { in MakeAliasingTexture() 128 gpu->resourceProvider().createShaderResourceView(info.fResource.get()); in MakeAliasingTexture()
|
/external/skqp/src/gpu/vk/ |
D | GrVkImage.h | 35 fResource = nullptr; in fInfo() 37 fResource = new BorrowedResource(info.fImage, info.fAlloc, info.fImageTiling); in fInfo() 39 fResource = new Resource(info.fImage, info.fAlloc, info.fImageTiling); in fInfo() 47 SkASSERT(fResource); in image() 53 SkASSERT(fResource); in alloc() 64 SkASSERT(fResource); in ycbcrConversionInfo() 68 SkASSERT(fResource); in resource() 69 return fResource; in resource() 74 SkASSERT(fResource); in isLinearTiled() 98 SkASSERT(fResource); in updateImageLayout() [all …]
|
D | GrVkSemaphore.cpp | 48 fResource = new Resource(semaphore, prohibitSignal, prohibitWait, isOwned); in GrVkSemaphore() 54 if (fResource) { in onRelease() 55 fResource->unref(static_cast<GrVkGpu*>(this->getGpu())); in onRelease() 56 fResource = nullptr; in onRelease() 62 if (fResource) { in onAbandon() 63 fResource->unrefAndAbandon(); in onAbandon() 64 fResource = nullptr; in onAbandon() 78 backendSemaphore.initVulkan(fResource->semaphore()); in backendSemaphore()
|
D | GrVkImage.cpp | 214 SkASSERT(!fResource); in ~GrVkImage() 221 if (fResource) { in releaseImage() 222 fResource->removeOwningTexture(); in releaseImage() 223 fResource->unref(gpu); in releaseImage() 224 fResource = nullptr; in releaseImage() 229 if (fResource) { in abandonImage() 230 fResource->removeOwningTexture(); in abandonImage() 231 fResource->unrefAndAbandon(); in abandonImage() 232 fResource = nullptr; in abandonImage() 237 SkASSERT(fResource); in setResourceRelease() [all …]
|
D | GrVkBuffer.h | 24 SkASSERT(!fResource); in ~GrVkBuffer() 28 VkBuffer buffer() const { return fResource->fBuffer; } in buffer() 29 const GrVkAlloc& alloc() const { return fResource->fAlloc; } in alloc() 30 const GrVkRecycledResource* resource() const { return fResource; } in resource() 84 : fDesc(desc), fResource(resource), fOffset(0), fMapPtr(nullptr) { in GrVkBuffer() 114 const Resource* fResource; variable
|
D | GrVkBuffer.cpp | 114 fResource->recycle(const_cast<GrVkGpu*>(gpu)); in vkRelease() 115 fResource = nullptr; in vkRelease() 124 fResource->unrefAndAbandon(); in vkAbandon() 125 fResource = nullptr; in vkAbandon() 151 if (!fResource->unique()) { in internalMap() 154 fResource->recycle(gpu); in internalMap() 155 fResource = this->createResource(gpu, fDesc); in internalMap() 251 SkASSERT(!fResource || kVertex_Type == fDesc.fType || kIndex_Type == fDesc.fType in validate()
|
/external/skia/src/gpu/vk/ |
D | GrVkImage.h | 39 SkASSERT(fResource); in image() 45 SkASSERT(fResource); in alloc() 51 if (fResource && this->ycbcrConversionInfo().isValid()) { in getBackendFormat() 62 SkASSERT(fResource); in ycbcrConversionInfo() 70 SkASSERT(fResource); in resource() 71 return fResource; in resource() 76 SkASSERT(fResource); in isLinearTiled() 120 SkASSERT(fResource); in updateImageLayout() 169 bool hasResource() const { return fResource; } in hasResource() 226 Resource* fResource; variable
|
D | GrVkImage.cpp | 50 fResource = nullptr; in GrVkImage() 52 fResource = new BorrowedResource(gpu, info.fImage, info.fAlloc, info.fImageTiling); in GrVkImage() 55 fResource = new Resource(gpu, info.fImage, info.fAlloc, info.fImageTiling); in GrVkImage() 288 SkASSERT(!fResource); in ~GrVkImage() 310 if (fResource) { in releaseImage() 311 fResource->unref(); in releaseImage() 312 fResource = nullptr; in releaseImage() 317 SkASSERT(fResource); in setResourceRelease() 319 fResource->setRelease(std::move(releaseHelper)); in setResourceRelease()
|
D | GrVkSemaphore.cpp | 53 fResource = new Resource(gpu, semaphore, prohibitSignal, prohibitWait, isOwned); in GrVkSemaphore() 57 if (fResource) { in ~GrVkSemaphore() 58 fResource->unref(); in ~GrVkSemaphore() 71 backendSemaphore.initVulkan(fResource->semaphore()); in backendSemaphore()
|
D | GrVkSemaphore.h | 83 Resource* getResource() { return fResource; } in getResource() 90 fResource->setIsOwned(); in setIsOwned() 93 Resource* fResource; variable
|
/external/skia/tests/ |
D | ShaperTest.cpp | 23 const char* fResource; member 32 : fResource(resource), fReporter(reporter) {} in RunHandler() 50 REPORTER_ASSERT(fReporter, fGlyphCount == info.glyphCount, "%s", fResource); in commitRunBuffer() 51 REPORTER_ASSERT(fReporter, fRange.begin() == info.utf8Range.begin(), "%s", fResource); in commitRunBuffer() 52 REPORTER_ASSERT(fReporter, fRange.size() == info.utf8Range.size(), "%s", fResource); in commitRunBuffer() 55 "%s %u %u", fResource, i, fGlyphCount); in commitRunBuffer() 57 "%s %u %u", fResource, i, fGlyphCount); in commitRunBuffer()
|
/external/skia/samplecode/ |
D | SampleCowboy.cpp | 31 const char* fResource = nullptr; member in __anon0748e7810111::AnimatedSVGSample 38 AnimatedSVGSample(const char* r, const char* n) : fResource(r), fName(n) {} in AnimatedSVGSample() 42 SkASSERT(fResource); in onOnceBeforeDraw() 43 auto data = GetResourceAsData(fResource); in onOnceBeforeDraw() 45 SkDebugf("Resource not found: \"%s\"\n", fResource); in onOnceBeforeDraw()
|
/external/skia/include/gpu/d3d/ |
D | GrD3DTypes.h | 180 gr_cp<ID3D12Resource> fResource = nullptr; member 199 : fResource(resource) in fResource() function 210 : fResource(info.fResource) in GrD3DTextureResourceInfo() 221 return fResource == that.fResource && fResourceState == that.fResourceState &&
|
/external/skia/modules/skparagraph/bench/ |
D | ParagraphBench.cpp | 22 : fResource(r), fName(n), fWidth(width) {} in ParagraphBench() 24 const char* fResource; member 29 void onDelayedSetup() override { fData = GetResourceAsData(fResource); } in onDelayedSetup()
|
/external/skia/bench/ |
D | ShaperBench.cpp | 15 ShaperBench(const char* r, const char* n) : fResource(r), fName(n) {} in ShaperBench() 18 const char* fResource; member 24 fData = GetResourceAsData(fResource); in onDelayedSetup()
|