/external/skia/src/gpu/ |
D | GrContextThreadSafeProxy.cpp | 51 const SkImageInfo& ii, const GrBackendFormat& backendFormat, in createCharacterization() argument 58 if (!backendFormat.isValid()) { in createCharacterization() 64 if (GrBackendApi::kOpenGL != backendFormat.backend() && willUseGLFBO0) { in createCharacterization() 69 if (GrBackendApi::kVulkan != backendFormat.backend() && in createCharacterization() 87 if (!fCaps->areColorTypeAndFormatCompatible(grColorType, backendFormat)) { in createCharacterization() 91 if (!fCaps->isFormatAsColorTypeRenderable(grColorType, backendFormat, sampleCnt)) { in createCharacterization() 95 sampleCnt = fCaps->getRenderTargetSampleCount(sampleCnt, backendFormat); in createCharacterization() 102 if (isTextureable && !fCaps->isFormatTexturable(backendFormat)) { in createCharacterization() 112 if (GrBackendApi::kVulkan == backendFormat.backend()) { in createCharacterization() 129 cacheMaxResourceBytes, ii, backendFormat, in createCharacterization()
|
D | GrGeometryProcessor.cpp | 60 const GrBackendFormat& backendFormat, in TextureSampler() argument 62 this->reset(samplerState, backendFormat, swizzle); in TextureSampler() 66 const GrBackendFormat& backendFormat, in reset() argument 69 fSamplerState.setFilterMode(clamp_filter(backendFormat.textureType(), samplerState.filter())); in reset() 70 fBackendFormat = backendFormat; in reset()
|
D | GrProgramDesc.cpp | 63 const GrBackendFormat& backendFormat = sampler.backendFormat(); in add_geomproc_sampler_keys() local 65 uint32_t samplerKey = sampler_key(backendFormat.textureType(), sampler.swizzle(), caps); in add_geomproc_sampler_keys() 68 caps.addExtraSamplerKey(b, sampler.samplerState(), backendFormat); in add_geomproc_sampler_keys() 119 const GrBackendFormat& backendFormat = te->view().proxy()->backendFormat(); in gen_fp_key() local 120 uint32_t samplerKey = sampler_key(backendFormat.textureType(), te->view().swizzle(), caps); in gen_fp_key() 122 caps.addExtraSamplerKey(b, te->samplerState(), backendFormat); in gen_fp_key()
|
D | GrTextureProxy.cpp | 155 return GrSurface::ComputeSize(this->backendFormat(), this->dimensions(), in onUninstantiatedGpuMemorySize() 164 return first->backendFormat().textureType() == second->backendFormat().textureType() && in ProxiesAreCompatibleAsDynamicState() 165 first->backendFormat() == second->backendFormat(); in ProxiesAreCompatibleAsDynamicState() 204 this->backendFormat(), in callbackDesc()
|
D | GrDirectContext.cpp | 456 const GrBackendFormat& backendFormat, in createBackendTexture() argument 465 return fGpu->createBackendTexture({width, height}, backendFormat, renderable, in createBackendTexture() 485 const GrBackendFormat& backendFormat, in create_and_clear_backend_texture() argument 492 GrBackendTexture beTex = gpu->createBackendTexture(dimensions, backendFormat, renderable, in create_and_clear_backend_texture() 550 const GrBackendFormat& backendFormat, in createBackendTexture() argument 566 backendFormat, in createBackendTexture() 632 GrBackendFormat backendFormat = this->defaultBackendFormat(colorType, renderable); in createBackendTexture() local 635 backendFormat, in createBackendTexture() 731 const GrBackendFormat& backendFormat, in create_and_update_compressed_backend_texture() argument 739 GrBackendTexture beTex = gpu->createCompressedBackendTexture(dimensions, backendFormat, in create_and_update_compressed_backend_texture() [all …]
|
D | GrAttachment.cpp | 26 GrBackendFormat format = this->backendFormat(); in onGpuMemorySize() 30 size *= GrBackendFormatBytesPerBlock(this->backendFormat()); in onGpuMemorySize() 92 ComputeScratchKey(*this->getGpu()->caps(), this->backendFormat(), this->dimensions(), in computeScratchKey()
|
D | GrAHardwareBufferUtils.cpp | 214 const GrBackendFormat& backendFormat, in make_gl_backend_texture() argument 260 SkASSERT(backendFormat.isValid()); in make_gl_backend_texture() 262 textureInfo.fFormat = GrGLFormatToEnum(backendFormat.asGLFormat()); in make_gl_backend_texture() 308 const GrBackendFormat& backendFormat, in make_vk_backend_texture() argument 325 SkAssertResult(backendFormat.asVkFormat(&format)); in make_vk_backend_texture() 347 const GrVkYcbcrConversionInfo* ycbcrConversion = backendFormat.getVkYcbcrConversionInfo(); in make_vk_backend_texture() 543 const GrBackendFormat& backendFormat, in MakeBackendTexture() argument 553 updateProc, imageCtx, createProtectedImage, backendFormat, in MakeBackendTexture() 559 updateProc, imageCtx, createProtectedImage, backendFormat, in MakeBackendTexture()
|
D | GrSurfaceProxy.cpp | 92 , fFormat(fTarget->backendFormat()) in GrSurfaceProxy() 215 GrTexture::ComputeScratchKey(caps, this->backendFormat(), this->backingStoreDimensions(), in computeScratchKey() 238 return caps->isFormatCompressed(this->backendFormat()); in isFormatCompressed() 276 auto format = src->backendFormat().makeTexture2D(); in Copy() 279 if (src->backendFormat().textureType() != GrTextureType::kExternal) { in Copy() 468 SkASSERTF(surface->backendFormat() == fFormat, "%s != %s", in validateSurface() 469 surface->backendFormat().toStr().c_str(), fFormat.toStr().c_str()); in validateSurface()
|
/external/skia/src/image/ |
D | SkImage_GpuBase.cpp | 46 GrBackendFormat backendFormat = tex.getBackendFormat(); in ValidateBackendTexture() local 47 if (!backendFormat.isValid()) { in ValidateBackendTexture() 51 return caps->areColorTypeAndFormatCompatible(grCT, backendFormat); in ValidateBackendTexture() 69 GrBackendFormat backendFormat = tex.getBackendFormat(); in ValidateCompressedBackendTexture() local 70 if (!backendFormat.isValid()) { in ValidateCompressedBackendTexture() 74 if (!caps->isFormatCompressed(backendFormat)) { in ValidateCompressedBackendTexture() 200 GrBackendFormat backendFormat, in MakePromiseImageLazyProxy() argument 213 GrTextureTypeHasRestrictedSampling(backendFormat.textureType())) { in MakePromiseImageLazyProxy() 327 return GrProxyProvider::CreatePromiseProxy(tsp, std::move(callback), backendFormat, dimensions, in MakePromiseImageLazyProxy()
|
D | SkSurface_GpuMtl.mm | 41 GrBackendFormat backendFormat = GrBackendFormat::MakeMtl(metalLayer.pixelFormat); 74 backendFormat, 87 GrSwizzle readSwizzle = caps->getReadSwizzle(backendFormat, grColorType); 88 GrSwizzle writeSwizzle = caps->getWriteSwizzle(backendFormat, grColorType); 112 GrBackendFormat backendFormat = GrBackendFormat::MakeMtl(mtkView.colorPixelFormat); 144 backendFormat, 157 GrSwizzle readSwizzle = caps->getReadSwizzle(backendFormat, grColorType); 158 GrSwizzle writeSwizzle = caps->getWriteSwizzle(backendFormat, grColorType);
|
D | SkSurface_Gpu.cpp | 261 GrBackendFormat format = sdc->asSurfaceProxy()->backendFormat(); in onCharacterize() 376 characterization.backendFormat() == sdc->asSurfaceProxy()->backendFormat() && in onIsCompatible() 451 GrBackendFormat backendFormat = tex.getBackendFormat(); in validate_backend_texture() local 452 if (!backendFormat.isValid()) { in validate_backend_texture() 456 if (!caps->areColorTypeAndFormatCompatible(grCT, backendFormat)) { in validate_backend_texture() 460 if (!caps->isFormatAsColorTypeRenderable(grCT, backendFormat, sampleCnt)) { in validate_backend_texture() 464 if (texturable && !caps->isFormatTexturable(backendFormat)) { in validate_backend_texture() 576 if (oldTexture->backendFormat() != backendTexture.getBackendFormat()) { in onReplaceBackendTexture() 677 GrBackendFormat backendFormat = GrAHardwareBufferUtils::GetBackendFormat(dContext, in MakeFromAHardwareBuffer() local 681 if (!backendFormat.isValid()) { in MakeFromAHardwareBuffer() [all …]
|
D | SkImage_Gpu.cpp | 132 inline GrBackendFormat SkImage_Gpu::ProxyChooser::backendFormat() { in backendFormat() function in SkImage_Gpu::ProxyChooser 135 SkASSERT(fVolatileProxy->backendFormat() == fStableProxy->backendFormat()); in backendFormat() 137 return fStableProxy->backendFormat(); in backendFormat() 154 const GrBackendFormat& format = fChooser.backendFormat(); in SkImage_Gpu() 179 const GrBackendFormat& format = fChooser.backendFormat(); in SkImage_Gpu() 408 GrSwizzle swizzle = rContext->priv().caps()->getReadSwizzle(proxy->backendFormat(), colorType); in new_wrapped_texture_common() 576 const GrBackendFormat& backendFormat, in MakePromiseTexture() argument 605 backendFormat); in MakePromiseTexture() 611 backendFormat)) { in MakePromiseTexture() 617 backendFormat, in MakePromiseTexture() [all …]
|
/external/skqp/src/gpu/ |
D | GrAHardwareBufferImageGenerator.cpp | 160 const GrBackendFormat& backendFormat) { in make_vk_backend_texture() argument 173 SkASSERT(backendFormat.getVkFormat()); in make_vk_backend_texture() 174 VkFormat format = *backendFormat.getVkFormat(); in make_vk_backend_texture() 196 const GrVkYcbcrConversionInfo* ycbcrConversion = backendFormat.getVkYcbcrConversionInfo(); in make_vk_backend_texture() 373 const GrBackendFormat& backendFormat) { in make_gl_backend_texture() argument 415 SkASSERT(backendFormat.isValid()); in make_gl_backend_texture() 416 textureInfo.fTarget = *backendFormat.getGLTarget(); in make_gl_backend_texture() 417 textureInfo.fFormat = *backendFormat.getGLFormat(); in make_gl_backend_texture() 431 const GrBackendFormat& backendFormat) { in make_backend_texture() argument 439 deleteCtx, createProtectedImage, backendFormat); in make_backend_texture() [all …]
|
D | GrContextThreadSafeProxy.cpp | 36 const SkImageInfo& ii, const GrBackendFormat& backendFormat, in createCharacterization() argument 40 if (!backendFormat.isValid()) { in createCharacterization() 44 if (GrBackendApi::kOpenGL != backendFormat.backend() && willUseGLFBO0) { in createCharacterization() 53 GrPixelConfig config = fCaps->getConfigFromBackendFormat(backendFormat, ii.colorType()); in createCharacterization()
|
/external/skia/src/gpu/mock/ |
D | GrMockTexture.h | 48 GrBackendFormat backendFormat() const override { in backendFormat() function 119 return GrSurface::ComputeSize(this->backendFormat(), this->dimensions(), in onGpuMemorySize() 126 numStencilBits = GrBackendFormatStencilBits(stencil->backendFormat()); in getBackendRenderTarget() 131 GrBackendFormat backendFormat() const override { in backendFormat() function 189 GrBackendFormat backendFormat() const override { in backendFormat() function 190 return GrMockTexture::backendFormat(); in backendFormat() 210 return GrSurface::ComputeSize(this->backendFormat(), this->dimensions(), in onGpuMemorySize()
|
/external/skia/include/core/ |
D | SkSurfaceCharacterization.h | 82 const GrBackendFormat& backendFormat) const; 96 const GrBackendFormat& backendFormat() const { return fBackendFormat; } in backendFormat() function 132 const GrBackendFormat& backendFormat, in SkSurfaceCharacterization() argument 145 , fBackendFormat(backendFormat) in SkSurfaceCharacterization() 161 const GrBackendFormat& backendFormat, in set() argument 175 fBackendFormat = backendFormat; in set()
|
/external/skia/src/core/ |
D | SkDeferredDisplayListRecorder.cpp | 27 const GrBackendFormat& backendFormat, in makePromiseTexture() argument 160 GrSwizzle readSwizzle = caps->getReadSwizzle(fCharacterization.backendFormat(), grColorType); in init() 172 fCharacterization.backendFormat(), in init() 189 GrSwizzle writeSwizzle = caps->getWriteSwizzle(fCharacterization.backendFormat(), grColorType); in init() 239 const GrBackendFormat& backendFormat, in makePromiseTexture() argument 254 backendFormat, in makePromiseTexture()
|
/external/skia/tools/ |
D | DDLPromiseImageHelper.cpp | 229 GrBackendFormat backendFormat = direct->defaultBackendFormat(yuvPixmap.colorType(), in createCallbackContexts() local 233 new PromiseImageCallbackContext(direct, backendFormat)); in createCallbackContexts() 246 GrBackendFormat backendFormat = direct->defaultBackendFormat(baseLevel.colorType(), in createCallbackContexts() local 248 if (!caps->isFormatTexturable(backendFormat)) { in createCallbackContexts() 253 new PromiseImageCallbackContext(direct, backendFormat)); in createCallbackContexts() 332 backendFormats[i] = curImage.backendFormat(i); in CreatePromiseImages() 354 const GrBackendFormat& backendFormat = curImage.backendFormat(0); in CreatePromiseImages() local 355 SkASSERT(backendFormat.isValid()); in CreatePromiseImages() 358 backendFormat, in CreatePromiseImages()
|
D | DDLPromiseImageHelper.h | 35 PromiseImageCallbackContext(GrDirectContext* direct, GrBackendFormat backendFormat) in PromiseImageCallbackContext() argument 37 , fBackendFormat(backendFormat) {} in PromiseImageCallbackContext() 41 const GrBackendFormat& backendFormat() const { return fBackendFormat; } in backendFormat() function 183 const GrBackendFormat& backendFormat(int index) const { in backendFormat() function 185 return fCallbackContexts[index]->backendFormat(); in backendFormat()
|
/external/skia/src/gpu/mtl/ |
D | GrMtlTextureRenderTarget.h | 28 GrBackendFormat backendFormat() const override { in backendFormat() function 29 return GrMtlTexture::backendFormat(); in backendFormat() 80 return GrSurface::ComputeSize(this->backendFormat(), this->dimensions(), in onGpuMemorySize()
|
/external/skia/src/gpu/gl/ |
D | GrGLRenderTarget.cpp | 109 numStencilBits = GrBackendFormatStencilBits(stencil->backendFormat()); in getBackendRenderTarget() 116 GrBackendFormat GrGLRenderTarget::backendFormat() const { in backendFormat() function in GrGLRenderTarget 123 return GrSurface::ComputeSize(this->backendFormat(), this->dimensions(), in onGpuMemorySize() 188 int internalSampleCount = caps.internalMultisampleCount(this->backendFormat()); in ensureDynamicMSAAAttachment() 210 this->dimensions(), this->backendFormat(), internalSampleCount, in ensureDynamicMSAAAttachment() 280 size_t size = GrSurface::ComputeSize(this->backendFormat(), this->dimensions(), in dumpMemoryStatistics()
|
/external/skia/bench/ |
D | DDLRecorderBench.cpp | 27 GrBackendFormat backendFormat = direct->defaultBackendFormat(kRGBA_8888_SkColorType, in create_characterization() local 29 if (!backendFormat.isValid()) { in create_characterization() 36 maxResourceBytes, ii, backendFormat, 1, in create_characterization()
|
/external/skqp/src/image/ |
D | SkImage_GpuBase.cpp | 53 GrBackendFormat backendFormat = tex.getBackendFormat(); in ValidateBackendTexture() local 54 if (!backendFormat.isValid()) { in ValidateBackendTexture() 57 *config = ctx->contextPriv().caps()->getConfigFromBackendFormat(backendFormat, ct); in ValidateBackendTexture() 119 GrBackendFormat format = proxy->backendFormat().makeTexture2D(); in onMakeSubset() 295 GrBackendFormat backendFormat = yuvaTexturesCopy[textureIndex].getBackendFormat(); in MakeTempTextureProxies() local 296 if (!backendFormat.isValid()) { in MakeTempTextureProxies() 300 ctx->contextPriv().caps()->getYUVAConfigFromBackendFormat(backendFormat); in MakeTempTextureProxies() 370 GrBackendFormat backendFormat, GrMipMapped mipMapped, in MakePromiseImageLazyProxy() argument 387 GrTextureTypeHasRestrictedSampling(backendFormat.textureType())) { in MakePromiseImageLazyProxy() 613 return proxyProvider->createLazyProxy(std::move(callback), backendFormat, desc, origin, in MakePromiseImageLazyProxy()
|
/external/skia/src/gpu/dawn/ |
D | GrDawnTextureRenderTarget.h | 32 GrBackendFormat backendFormat() const override { return GrDawnTexture::backendFormat(); } in backendFormat() function
|
/external/skqp/include/core/ |
D | SkDeferredDisplayListRecorder.h | 125 sk_sp<SkImage> makePromiseTexture(const GrBackendFormat& backendFormat, 140 sk_sp<SkImage> makePromiseTexture(const GrBackendFormat& backendFormat, in makePromiseTexture() argument 152 return this->makePromiseTexture(backendFormat, width, height, mipMapped, origin, colorType, in makePromiseTexture()
|