/third_party/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 …]
|
/third_party/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 …]
|
/third_party/skia/third_party/externals/icu/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 …]
|
/third_party/node/deps/icu-small/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 …]
|
/third_party/flutter/skia/third_party/externals/icu/source/common/ |
D | resbund.cpp | 181 fResource = ures_open(0, Locale::getDefault().getName(), &err); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 189 if (other.fResource) { in ResourceBundle() 190 fResource = ures_copyResb(0, other.fResource, &status); in ResourceBundle() 193 fResource = NULL; in ResourceBundle() 201 fResource = ures_copyResb(0, res, &err); in ResourceBundle() 204 fResource = NULL; in ResourceBundle() 211 fResource = ures_open(path, locale.getName(), &err); in ResourceBundle() 220 if(fResource != 0) { in operator =() 221 ures_close(fResource); in operator =() 222 fResource = NULL; in operator =() [all …]
|
/third_party/flutter/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() 39 fResource->release(); in release() 40 if (!fResource->hasRefOrPendingIO()) { in release() 41 delete fResource; in release() local 49 fResource->abandon(); in abandon() 50 if (!fResource->hasRefOrPendingIO()) { in abandon() 51 delete fResource; in abandon() local 56 void setUniqueKey(const GrUniqueKey& key) { fResource->fUniqueKey = key; } in setUniqueKey() [all …]
|
D | GrPendingIOResource.h | 23 if (resource == fResource) { 27 if (fResource) { 28 fResource->unref(); 31 fResource = resource; 32 if (fResource) { 33 fResource->ref(); 37 explicit operator bool() const { return SkToBool(fResource); } 39 GrSurfaceProxy* get() const { return fResource; } in get() 40 GrSurfaceProxy* operator->() const { return fResource; } 45 GrSurfaceProxy* fResource = nullptr; variable [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 …]
|
/third_party/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: %p (%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() 116 info.fResource = gpu->memoryAllocator()->createAliasingResource(info.fAlloc, 0, &newDesc, in MakeAliasingTexture() 118 if (!info.fResource) { in MakeAliasingTexture() 127 gpu->resourceProvider().createShaderResourceView(info.fResource.get()); in MakeAliasingTexture()
|
/third_party/flutter/skia/src/gpu/vk/ |
D | GrVkImage.h | 35 fResource = nullptr; in fInfo() 37 fResource = new BorrowedResource(info.fImage, info.fAlloc, info.fImageTiling); in fInfo() 40 fResource = new Resource(info.fImage, info.fAlloc, info.fImageTiling); in fInfo() 48 SkASSERT(fResource); in image() 54 SkASSERT(fResource); in alloc() 59 if (fResource && this->ycbcrConversionInfo().isValid()) { in getBackendFormat() 70 SkASSERT(fResource); in ycbcrConversionInfo() 74 SkASSERT(fResource); in resource() 75 return fResource; in resource() 80 SkASSERT(fResource); in isLinearTiled() [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 | 229 SkASSERT(!fResource); in ~GrVkImage() 258 if (fResource) { in releaseImage() 259 fResource->removeOwningTexture(); in releaseImage() 260 fResource->unref(gpu); in releaseImage() 261 fResource = nullptr; in releaseImage() 266 if (fResource) { in abandonImage() 267 fResource->removeOwningTexture(); in abandonImage() 268 fResource->unrefAndAbandon(); in abandonImage() 269 fResource = nullptr; in abandonImage() 274 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() 115 const Resource* fResource; variable
|
D | GrVkBuffer.cpp | 116 fResource->recycle(const_cast<GrVkGpu*>(gpu)); in vkRelease() 117 fResource = nullptr; in vkRelease() 126 fResource->unrefAndAbandon(); in vkAbandon() 127 fResource = nullptr; in vkAbandon() 153 if (!fResource->unique()) { in internalMap() 156 fResource->recycle(gpu); in internalMap() 157 fResource = this->createResource(gpu, fDesc); in internalMap() 265 SkASSERT(!fResource || kVertex_Type == fDesc.fType || kIndex_Type == fDesc.fType in validate()
|
/third_party/flutter/skia/samplecode/ |
D | SampleCowboy.cpp | 31 const char* fResource = nullptr; member in __anonb853bf9f0111::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() 52 SkDebugf("XML parsing failed: \"%s\"\n", fResource); in onOnceBeforeDraw()
|
/third_party/skia/src/gpu/vk/ |
D | GrVkImage.h | 68 SkASSERT(fResource); in image() 74 SkASSERT(fResource); in alloc() 82 if (fResource && this->ycbcrConversionInfo().isValid()) { in backendFormat() 93 SkASSERT(fResource); in ycbcrConversionInfo() 115 SkASSERT(fResource); in resource() 116 return fResource; in resource() 121 SkASSERT(fResource); in isLinearTiled() 165 SkASSERT(fResource); in updateImageLayout() 250 bool hasResource() const { return fResource; } in hasResource() 315 Resource* fResource; variable
|
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()
|
/third_party/flutter/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()
|
/third_party/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()
|
/third_party/skia/samplecode/ |
D | SampleCowboy.cpp | 32 const char* fResource = nullptr; member in __anona64ea30a0111::AnimatedSVGSample 39 AnimatedSVGSample(const char* r, const char* n) : fResource(r), fName(n) {} in AnimatedSVGSample() 43 SkASSERT(fResource); in onOnceBeforeDraw() 44 auto data = GetResourceAsData(fResource); in onOnceBeforeDraw() 46 SkDebugf("Resource not found: \"%s\"\n", fResource); in onOnceBeforeDraw()
|
/third_party/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 &&
|