Home
last modified time | relevance | path

Searched refs:backendFormat (Results 1 – 25 of 207) sorted by relevance

123456789

/third_party/flutter/skia/src/gpu/
DGrContextThreadSafeProxy.cpp37 const SkImageInfo& ii, const GrBackendFormat& backendFormat, in createCharacterization() argument
42 if (!backendFormat.isValid()) { in createCharacterization()
48 if (GrBackendApi::kOpenGL != backendFormat.backend() && willUseGLFBO0) { in createCharacterization()
57 if (!SkSurface_Gpu::Valid(this->caps(), backendFormat)) { in createCharacterization()
63 if (!this->caps()->areColorTypeAndFormatCompatible(grColorType, backendFormat)) { in createCharacterization()
67 if (!this->caps()->isFormatAsColorTypeRenderable(grColorType, backendFormat, sampleCnt)) { in createCharacterization()
71 sampleCnt = this->caps()->getRenderTargetSampleCount(sampleCnt, backendFormat); in createCharacterization()
78 if (isTextureable && !this->caps()->isFormatTexturable(backendFormat)) { in createCharacterization()
83 if (GrBackendApi::kVulkan == backendFormat.backend()) { in createCharacterization()
99 cacheMaxResourceBytes, ii, backendFormat, in createCharacterization()
DGrAHardwareBufferImageGenerator.cpp93 GrBackendFormat backendFormat = GrAHardwareBufferUtils::GetBackendFormat(direct, in makeProxy() local
99 GrPixelConfig pixelConfig = context->priv().caps()->getConfigFromBackendFormat(backendFormat, in makeProxy()
119 SkAssertResult(backendFormat.asVkFormat(&format)); in makeProxy()
154 isProtectedContent, backendFormat, grColorType](GrResourceProvider* resourceProvider) in makeProxy()
167 backendFormat, in makeProxy()
191 backendFormat, desc, GrRenderable::kNo, 1, fSurfaceOrigin, GrMipMapped::kNo, in makeProxy()
DGrAHardwareBufferUtils.cpp214 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
323 SkAssertResult(backendFormat.asVkFormat(&format)); in make_vk_backend_texture()
345 const GrVkYcbcrConversionInfo* ycbcrConversion = backendFormat.getVkYcbcrConversionInfo(); in make_vk_backend_texture()
528 const GrBackendFormat& backendFormat, in MakeBackendTexture() argument
537 updateProc, imageCtx, createProtectedImage, backendFormat, in MakeBackendTexture()
545 updateProc, imageCtx, createProtectedImage, backendFormat, in MakeBackendTexture()
/third_party/skia/src/gpu/
DGrContextThreadSafeProxy.cpp51 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, backendFormat.textureType())) { in createCharacterization()
112 if (GrBackendApi::kVulkan == backendFormat.backend()) { in createCharacterization()
129 cacheMaxResourceBytes, ii, backendFormat, in createCharacterization()
DGrProgramDesc.cpp64 const GrBackendFormat& backendFormat = sampler.backendFormat(); in add_geomproc_sampler_keys() local
66 uint32_t samplerKey = sampler_key(backendFormat.textureType(), sampler.swizzle(), caps); in add_geomproc_sampler_keys()
69 caps.addExtraSamplerKey(b, sampler.samplerState(), backendFormat); in add_geomproc_sampler_keys()
124 const GrBackendFormat& backendFormat = te->view().proxy()->backendFormat(); in gen_fp_key() local
125 uint32_t samplerKey = sampler_key(backendFormat.textureType(), te->view().swizzle(), caps); in gen_fp_key()
127 caps.addExtraSamplerKey(b, te->samplerState(), backendFormat); in gen_fp_key()
DGrTextureProxy.cpp156 return GrSurface::ComputeSize(this->backendFormat(), this->dimensions(), in onUninstantiatedGpuMemorySize()
165 return first->backendFormat().textureType() == second->backendFormat().textureType() && in ProxiesAreCompatibleAsDynamicState()
166 first->backendFormat() == second->backendFormat(); in ProxiesAreCompatibleAsDynamicState()
205 this->backendFormat(), in callbackDesc()
DGrDirectContext.cpp470 const GrBackendFormat& backendFormat, in createBackendTexture() argument
479 return fGpu->createBackendTexture({width, height}, backendFormat, renderable, in createBackendTexture()
499 const GrBackendFormat& backendFormat, in create_and_clear_backend_texture() argument
506 GrBackendTexture beTex = gpu->createBackendTexture(dimensions, backendFormat, renderable, in create_and_clear_backend_texture()
564 const GrBackendFormat& backendFormat, in createBackendTexture() argument
580 backendFormat, in createBackendTexture()
646 GrBackendFormat backendFormat = this->defaultBackendFormat(colorType, renderable); in createBackendTexture() local
649 backendFormat, in createBackendTexture()
745 const GrBackendFormat& backendFormat, in create_and_update_compressed_backend_texture() argument
753 GrBackendTexture beTex = gpu->createCompressedBackendTexture(dimensions, backendFormat, in create_and_update_compressed_backend_texture()
[all …]
DGrAHardwareBufferUtils.cpp214 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()
541 const GrBackendFormat& backendFormat, in MakeBackendTexture() argument
551 updateProc, imageCtx, createProtectedImage, backendFormat, in MakeBackendTexture()
557 updateProc, imageCtx, createProtectedImage, backendFormat, in MakeBackendTexture()
DGrProgramInfo.h30 , fBackendFormat(targetView.proxy()->backendFormat()) in GrProgramInfo()
48 fNumSamples = caps.internalMultisampleCount(this->backendFormat()); in GrProgramInfo()
63 const GrBackendFormat& backendFormat() const { return fBackendFormat; } in backendFormat() function
DGrSurfaceProxy.cpp90 , fFormat(fTarget->backendFormat()) in GrSurfaceProxy()
223 GrTexture::ComputeScratchKey(caps, this->backendFormat(), this->backingStoreDimensions(), in computeScratchKey()
246 return caps->isFormatCompressed(this->backendFormat()); in isFormatCompressed()
284 auto format = src->backendFormat().makeTexture2D(); in Copy()
287 if (src->backendFormat().textureType() != GrTextureType::kExternal) { in Copy()
474 SkASSERTF(surface->backendFormat() == fFormat, "%s != %s", in validateSurface()
475 surface->backendFormat().toStr().c_str(), fFormat.toStr().c_str()); in validateSurface()
DGrAttachment.cpp26 GrBackendFormat format = this->backendFormat(); in onGpuMemorySize()
30 size *= GrBackendFormatBytesPerBlock(this->backendFormat()); in onGpuMemorySize()
100 this->backendFormat(), in computeScratchKey()
/third_party/skia/src/image/
DSkImage_GpuBase.cpp46 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()
DSkSurface_Gpu.cpp254 GrBackendFormat format = readSurfaceView.proxy()->backendFormat(); in onCharacterize()
358 GrBackendFormat format = targetView.asRenderTargetProxy()->backendFormat(); in onIsCompatible()
366 characterization.backendFormat() == format && in onIsCompatible()
435 GrBackendFormat backendFormat = tex.getBackendFormat(); in validate_backend_texture() local
436 if (!backendFormat.isValid()) { in validate_backend_texture()
440 if (!caps->areColorTypeAndFormatCompatible(grCT, backendFormat)) { in validate_backend_texture()
444 if (!caps->isFormatAsColorTypeRenderable(grCT, backendFormat, sampleCnt)) { in validate_backend_texture()
448 if (texturable && !caps->isFormatTexturable(backendFormat, tex.textureType())) { in validate_backend_texture()
551 if (oldTexture->backendFormat() != backendTexture.getBackendFormat()) { in onReplaceBackendTexture()
653 GrBackendFormat backendFormat = GrAHardwareBufferUtils::GetBackendFormat(dContext, in MakeFromAHardwareBuffer() local
[all …]
DSkImage_Gpu.cpp133 inline GrBackendFormat SkImage_Gpu::ProxyChooser::backendFormat() { in backendFormat() function in SkImage_Gpu::ProxyChooser
136 SkASSERT(fVolatileProxy->backendFormat() == fStableProxy->backendFormat()); in backendFormat()
138 return fStableProxy->backendFormat(); in backendFormat()
155 const GrBackendFormat& format = fChooser.backendFormat(); in SkImage_Gpu()
180 const GrBackendFormat& format = fChooser.backendFormat(); in SkImage_Gpu()
404 GrSwizzle swizzle = rContext->priv().caps()->getReadSwizzle(proxy->backendFormat(), colorType); in new_wrapped_texture_common()
572 const GrBackendFormat& backendFormat, in MakePromiseTexture() argument
605 backendFormat)) { in MakePromiseTexture()
611 backendFormat, in MakePromiseTexture()
618 GrSwizzle swizzle = threadSafeProxy->priv().caps()->getReadSwizzle(backendFormat, grColorType); in MakePromiseTexture()
[all …]
/third_party/skia/src/gpu/mock/
DGrMockTexture.h48 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()
/third_party/flutter/skia/src/image/
DSkImage_GpuBase.cpp53 GrBackendFormat backendFormat = tex.getBackendFormat(); in ValidateBackendTexture() local
54 if (!backendFormat.isValid()) { in ValidateBackendTexture()
58 return caps->areColorTypeAndFormatCompatible(grCT, backendFormat); in ValidateBackendTexture()
93 texProxy->backendFormat()); in getROPixels()
151 texProxy->backendFormat()); in onReadPixels()
251 GrBackendFormat backendFormat = yuvaTextures[textureIndex].getBackendFormat(); in MakeTempTextureProxies() local
252 if (!backendFormat.isValid()) { in MakeTempTextureProxies()
257 backendFormat, in MakeTempTextureProxies()
333 GrBackendFormat backendFormat, GrMipMapped mipMapped, in MakePromiseImageLazyProxy() argument
350 GrTextureTypeHasRestrictedSampling(backendFormat.textureType())) { in MakePromiseImageLazyProxy()
[all …]
DSkSurface_Gpu.cpp211 GrBackendFormat format = rtc->asSurfaceProxy()->backendFormat(); in onCharacterize()
309 characterization.backendFormat() == rtc->asSurfaceProxy()->backendFormat() && in onIsCompatible()
361 if (!SkSurface_Gpu::Valid(caps, c.backendFormat())) { in MakeRenderTarget()
408 GrBackendFormat backendFormat = tex.getBackendFormat(); in validate_backend_texture() local
409 if (!backendFormat.isValid()) { in validate_backend_texture()
413 if (!caps->areColorTypeAndFormatCompatible(grCT, backendFormat)) { in validate_backend_texture()
417 if (!caps->isFormatAsColorTypeRenderable(grCT, backendFormat, sampleCnt)) { in validate_backend_texture()
421 if (texturable && !caps->isFormatTexturable(backendFormat)) { in validate_backend_texture()
425 if (!SkSurface_Gpu::Valid(caps, backendFormat)) { in validate_backend_texture()
587 if (oldTexture->backendFormat() != backendTexture.getBackendFormat()) { in onReplaceBackendTexture()
[all …]
/third_party/skia/include/core/
DSkSurfaceCharacterization.h82 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()
165 const GrBackendFormat& backendFormat, in set() argument
183 fBackendFormat = backendFormat; in set()
/third_party/skia/tools/
DDDLPromiseImageHelper.cpp229 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, GrTextureType::k2D)) { 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()
DDDLPromiseImageHelper.h36 PromiseImageCallbackContext(GrDirectContext* direct, GrBackendFormat backendFormat) in PromiseImageCallbackContext() argument
38 , fBackendFormat(backendFormat) {} in PromiseImageCallbackContext()
42 const GrBackendFormat& backendFormat() const { return fBackendFormat; } in backendFormat() function
184 const GrBackendFormat& backendFormat(int index) const { in backendFormat() function
186 return fCallbackContexts[index]->backendFormat(); in backendFormat()
/third_party/skia/src/gpu/gl/
DGrGLRenderTarget.cpp116 numStencilBits = GrBackendFormatStencilBits(stencil->backendFormat()); in getBackendRenderTarget()
123 GrBackendFormat GrGLRenderTarget::backendFormat() const { in backendFormat() function in GrGLRenderTarget
130 return GrSurface::ComputeSize(this->backendFormat(), this->dimensions(), in onGpuMemorySize()
152 int internalSampleCount = caps.internalMultisampleCount(this->backendFormat()); in ensureDynamicMSAAAttachment()
173 this->dimensions(), this->backendFormat(), internalSampleCount, in ensureDynamicMSAAAttachment()
201 this->getGpu()->caps()->internalMultisampleCount(this->backendFormat()); in bindInternal()
341 size_t size = GrSurface::ComputeSize(this->backendFormat(), this->dimensions(), in dumpMemoryStatistics()
/third_party/flutter/skia/include/core/
DSkSurfaceCharacterization.h71 const GrBackendFormat& backendFormat() const { return fBackendFormat; } in backendFormat() function
103 const GrBackendFormat& backendFormat, in SkSurfaceCharacterization() argument
115 , fBackendFormat(backendFormat) in SkSurfaceCharacterization()
130 const GrBackendFormat& backendFormat, in set() argument
151 fBackendFormat = backendFormat; in set()
/third_party/skia/bench/
DDDLRecorderBench.cpp27 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()
/third_party/flutter/skia/src/core/
DSkDeferredDisplayListRecorder.cpp26 const GrBackendFormat& backendFormat, in makePromiseTexture() argument
135 GrPixelConfig config = caps->getConfigFromBackendFormat(fCharacterization.backendFormat(), in init()
172 fCharacterization.backendFormat(), in init()
234 const GrBackendFormat& backendFormat, in makePromiseTexture() argument
252 backendFormat, in makePromiseTexture()
/third_party/skia/src/gpu/dawn/
DGrDawnTextureRenderTarget.h32 GrBackendFormat backendFormat() const override { return GrDawnTexture::backendFormat(); } in backendFormat() function

123456789