Home
last modified time | relevance | path

Searched refs:backendTex (Results 1 - 25 of 28) sorted by relevance

12

/third_party/skia/tests/
H A DBackendSurfaceMutableStateTest.cpp27 GrBackendTexture backendTex = dContext->createBackendTexture( in DEF_GPUTEST_FOR_VULKAN_CONTEXT() local
30 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
33 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
40 GrBackendTexture backendTexCopy = backendTex; in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
49 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
58 backendTex.setMutableState(initState); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
60 sk_sp<SkImage> wrappedImage = SkImage::MakeFromTexture(dContext, backendTex, in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
78 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
96 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
114 dContext->setBackendTextureState(backendTex, newStat in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
[all...]
H A DVkWrapTests.cpp59 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test() local
61 backendTex, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, kRead_GrIOType); in wrap_tex_test()
64 backendTex, kAdopt_GrWrapOwnership, GrWrapCacheable::kNo, kRead_GrIOType); in wrap_tex_test()
72 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test() local
74 backendTex, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, kRead_GrIOType); in wrap_tex_test()
77 backendTex, kAdopt_GrWrapOwnership, GrWrapCacheable::kNo, kRead_GrIOType); in wrap_tex_test()
84 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test() local
86 backendTex, kAdopt_GrWrapOwnership, GrWrapCacheable::kNo, kRead_GrIOType); in wrap_tex_test()
162 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_trt_test() local
163 tex = gpu->wrapRenderableBackendTexture(backendTex, in wrap_trt_test()
175 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); wrap_trt_test() local
197 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); wrap_trt_test() local
[all...]
H A DGLBackendSurfaceTest.cpp58 GrBackendTexture backendTex = dContext->createBackendTexture( in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS() local
60 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
63 REPORTER_ASSERT(reporter, backendTex.getGLTextureInfo(&info)); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
65 GrBackendTexture backendTexCopy = backendTex; in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
66 REPORTER_ASSERT(reporter, backendTexCopy.isSameTexture(backendTex)); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
69 SkImage::MakeFromTexture(dContext, backendTex, kTopLeft_GrSurfaceOrigin, in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
91 backendTex.glTextureParametersModified(); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
106 REPORTER_ASSERT(reporter, GrBackendTexture::TestingOnly_Equals(backendTex, backendTexCopy)); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
118 invalidTexture = backendTex; in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
120 REPORTER_ASSERT(reporter, GrBackendTexture::TestingOnly_Equals(invalidTexture, backendTex)); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
[all...]
H A DCompressedBackendAllocationTest.cpp39 // Create an SkImage to wrap 'backendTex'
40 sk_sp<SkImage> create_image(GrDirectContext* dContext, const GrBackendTexture& backendTex) { in create_image() argument
42 GrBackendFormatToCompressionType(backendTex.getBackendFormat()); in create_image()
48 backendTex, in create_image()
149 GrBackendTexture backendTex = create(dContext, color, mipMapped); in test_compressed_color_init() local
150 if (!backendTex.isValid()) { in test_compressed_color_init()
154 sk_sp<SkImage> img = create_image(dContext, backendTex); in test_compressed_color_init()
171 bool result = dContext->updateCompressedBackendTexture(backendTex, newColor, nullptr, nullptr); in test_compressed_color_init()
181 dContext->deleteBackendTexture(backendTex); in test_compressed_color_init()
238 GrBackendTexture backendTex in test_compressed_data_init() local
[all...]
H A DPromiseImageTest.cpp134 GrBackendTexture backendTex = ctx->createBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
137 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
139 GrBackendFormat backendFormat = backendTex.getBackendFormat(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
142 PromiseTextureChecker promiseChecker(backendTex, reporter, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
195 ctx->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
284 GrBackendTexture backendTex = dContext->createBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
287 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
294 PromiseTextureChecker promiseChecker(backendTex, reporter, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
296 backendTex.getBackendFormat(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
345 dContext->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all...]
H A DExtendedSkColorTypeTests.cpp198 GrBackendTexture backendTex; in gpu_tests() local
205 backendTex = dContext->createBackendTexture(nativeExpected, kTopLeft_GrSurfaceOrigin, in gpu_tests()
209 backendTex = dContext->createBackendTexture(kSize, kSize, test.fColorType, in gpu_tests()
214 REPORTER_ASSERT(reporter, backendTex.isValid()); in gpu_tests()
216 while (backendTex.isValid() && !finishedBECreate) { in gpu_tests()
220 auto img = SkImage::MakeFromTexture(dContext, backendTex, kTopLeft_GrSurfaceOrigin, in gpu_tests()
296 dContext->deleteBackendTexture(backendTex); in gpu_tests()
H A DVkProtectedContextTest.cpp58 GrBackendTexture backendTex = in create_protected_sksurface() local
60 REPORTER_ASSERT(reporter, backendTex.isValid()); in create_protected_sksurface()
61 REPORTER_ASSERT(reporter, backendTex.isProtected()); in create_protected_sksurface()
104 GrBackendTexture backendTex = in DEF_GPUTEST() local
108 REPORTER_ASSERT(reporter, !backendTex.isValid()); in DEF_GPUTEST()
120 GrBackendTexture backendTex = in DEF_GPUTEST() local
124 REPORTER_ASSERT(reporter, !backendTex.isValid()); in DEF_GPUTEST()
H A DGrMipMappedTest.cpp189 GrBackendTexture backendTex = texture->getBackendTexture(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
197 backendTex.getGLTextureInfo(&origTexInfo)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
213 backendTex.getVkImageInfo(&origImageInfo)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
229 backendTex.getMtlTextureInfo(&origImageInfo)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
245 backendTex.getD3DTextureResourceInfo(&origImageInfo)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
263 backendTex.getDawnTextureInfo(&origImageInfo)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
H A DEGLImageTest.cpp152 GrBackendTexture backendTex(kSize, kSize, GrMipmapped::kNo, externalTexture); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
159 backendTex, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, kRW_GrIOType); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
188 backendTex, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
H A DBackendAllocationTest.cpp243 const GrBackendTexture& backendTex, in check_base_readbacks()
249 if (isRGB(backendTex.getBackendFormat())) { in check_base_readbacks()
273 backendTex, 1, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, nullptr); in check_base_readbacks()
276 backendTex, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, kRW_GrIOType); in check_base_readbacks()
282 auto swizzle = dContext->priv().caps()->getReadSwizzle(backendTex.getBackendFormat(), in check_base_readbacks()
357 const GrBackendTexture& backendTex, in check_mipmaps()
374 if (isRGB(backendTex.getBackendFormat())) { in check_mipmaps()
389 auto proxy = dContext->priv().proxyProvider()->wrapBackendTexture(backendTex, in check_mipmaps()
397 auto swizzle = dContext->priv().caps()->getReadSwizzle(backendTex.getBackendFormat(), in check_mipmaps()
550 void check_vk_tiling(const GrBackendTexture& backendTex) { in check_vk_tiling() argument
242 check_base_readbacks(GrDirectContext* dContext, const GrBackendTexture& backendTex, GrColorType colorType, GrRenderable renderableTexture, const SkColor4f& color, skiatest::Reporter* reporter, const char* label) check_base_readbacks() argument
356 check_mipmaps(GrDirectContext* dContext, const GrBackendTexture& backendTex, GrColorType colorType, const SkColor4f expectedColors[6], skiatest::Reporter* reporter, const char* label) check_mipmaps() argument
[all...]
H A DVkHardwareBufferTest.cpp266 GrBackendTexture backendTex(DEV_W, DEV_H, GrMipmapped::kNo, textureInfo); in importHardwareBufferForRead()
267 REPORTER_ASSERT(reporter, backendTex.isValid()); in importHardwareBufferForRead()
270 backendTex, in importHardwareBufferForRead()
294 GrBackendTexture backendTex(DEV_W, DEV_H, GrMipmapped::kNo, textureInfo); in importHardwareBufferForWrite()
295 REPORTER_ASSERT(reporter, backendTex.isValid()); in importHardwareBufferForWrite()
298 backendTex, in importHardwareBufferForWrite()
811 GrBackendTexture backendTex(DEV_W, DEV_H, imageInfo); in importHardwareBufferForRead()
814 backendTex, in importHardwareBufferForRead()
973 GrBackendTexture backendTex(DEV_W, DEV_H, imageInfo); in importHardwareBufferForWrite()
976 backendTex, in importHardwareBufferForWrite()
[all...]
H A DVkBackendSurfaceTest.cpp199 GrBackendTexture backendTex = dContext->createBackendTexture(
205 if (!backendTex.getVkImageInfo(&vkInfo)) {
239 dContext->deleteBackendTexture(backendTex);
H A DImageFilterCacheTest.cpp226 GrBackendTexture backendTex = tex->getBackendTexture(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
230 backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
241 if (!GrBackendTexture::TestingOnly_Equals(readBackBackendTex, backendTex)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
244 REPORTER_ASSERT(reporter, GrBackendTexture::TestingOnly_Equals(readBackBackendTex, backendTex)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
H A DSpecialImageTest.cpp130 GrBackendTexture backendTex = tightSurf->getBackendTexture( in test_image() local
132 REPORTER_ASSERT(reporter, isGPUBacked == backendTex.isValid()); in test_image()
H A DGrSurfaceTest.cpp58 GrBackendTexture backendTex = context->createBackendTexture( in DEF_GPUTEST_FOR_MOCK_CONTEXT() local
63 backendTex, 1, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
74 context->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
/third_party/skia/src/core/
H A DSkSurfaceCharacterization.cpp131 bool SkSurfaceCharacterization::isCompatible(const GrBackendTexture& backendTex) const { in isCompatible()
132 if (!this->isValid() || !backendTex.isValid()) { in isCompatible()
136 if (fBackendFormat != backendTex.getBackendFormat()) { in isCompatible()
150 if (backendTex.backend() != GrBackendApi::kVulkan) { in isCompatible()
155 if (!backendTex.getVkImageInfo(&vkInfo)) { in isCompatible()
164 if (this->isMipMapped() && !backendTex.hasMipmaps()) { in isCompatible()
170 if (this->width() != backendTex.width() || this->height() != backendTex.height()) { in isCompatible()
174 if (this->isProtected() != GrProtected(backendTex.isProtected())) { in isCompatible()
/third_party/skia/src/gpu/
H A DGrGpu.cpp320 sk_sp<GrTexture> GrGpu::wrapBackendTexture(const GrBackendTexture& backendTex, in wrapBackendTexture() argument
330 if (!caps->isFormatTexturable(backendTex.getBackendFormat(), backendTex.textureType())) { in wrapBackendTexture()
333 if (backendTex.width() > caps->maxTextureSize() || in wrapBackendTexture()
334 backendTex.height() > caps->maxTextureSize()) { in wrapBackendTexture()
338 return this->onWrapBackendTexture(backendTex, ownership, cacheable, ioType); in wrapBackendTexture()
341 sk_sp<GrTexture> GrGpu::wrapCompressedBackendTexture(const GrBackendTexture& backendTex, in wrapCompressedBackendTexture() argument
349 if (!caps->isFormatTexturable(backendTex.getBackendFormat(), backendTex.textureType())) { in wrapCompressedBackendTexture()
352 if (backendTex in wrapCompressedBackendTexture()
360 wrapRenderableBackendTexture(const GrBackendTexture& backendTex, int sampleCnt, GrWrapOwnership ownership, GrWrapCacheable cacheable) wrapRenderableBackendTexture() argument
[all...]
H A DGrAHardwareBufferImageGenerator.cpp138 GrBackendTexture backendTex = in makeView()
149 if (!backendTex.isValid()) { in makeView()
164 backendTex, kBorrow_GrWrapOwnership, GrWrapCacheable::kYes, kRead_GrIOType); in makeView()
H A DGrBackendTextureImageGenerator.cpp74 const GrBackendTexture& backendTex) in GrBackendTextureImageGenerator()
77 , fBackendTexture(backendTex) in GrBackendTextureImageGenerator()
68 GrBackendTextureImageGenerator( const SkImageInfo& info, GrTexture* texture, GrSurfaceOrigin origin, GrDirectContext::DirectContextID owningContextID, std::unique_ptr<GrSemaphore> semaphore, const GrBackendTexture& backendTex) GrBackendTextureImageGenerator() argument
H A DGrProxyProvider.cpp536 sk_sp<GrTextureProxy> GrProxyProvider::wrapBackendTexture(const GrBackendTexture& backendTex, in wrapBackendTexture() argument
556 resourceProvider->wrapBackendTexture(backendTex, ownership, cacheable, ioType); in wrapBackendTexture()
609 const GrBackendTexture& backendTex, in wrapRenderableBackendTexture()
628 sampleCnt = caps->getRenderTargetSampleCount(sampleCnt, backendTex.getBackendFormat()); in wrapRenderableBackendTexture()
632 backendTex, sampleCnt, ownership, cacheable); in wrapRenderableBackendTexture()
608 wrapRenderableBackendTexture( const GrBackendTexture& backendTex, int sampleCnt, GrWrapOwnership ownership, GrWrapCacheable cacheable, sk_sp<GrRefCntedCallback> releaseHelper) wrapRenderableBackendTexture() argument
/third_party/skia/fuzz/
H A DFuzzDDLThreading.cpp163 GrBackendTexture backendTex = fContext->createBackendTexture(kPromiseImageSize.width(), in fulfillPromiseImage() local
172 SkASSERT_RELEASE(backendTex.isValid()); in fulfillPromiseImage()
177 promiseImage.fTexture = SkPromiseImageTexture::Make(backendTex); in fulfillPromiseImage()
/third_party/skia/tools/
H A DDDLPromiseImageHelper.cpp177 auto backendTex = direct->createBackendTexture(mipLevels.get(), in CreateBETexturesForPromiseImage() local
184 SkASSERT(backendTex.isValid()); in CreateBETexturesForPromiseImage()
190 callbackContext->setBackendTexture(backendTex); in CreateBETexturesForPromiseImage()
/third_party/skia/src/gpu/gl/
H A DGrGLGpu.cpp620 static bool check_backend_texture(const GrBackendTexture& backendTex, in check_backend_texture() argument
625 if (!backendTex.getGLTextureInfo(&info) || !info.fID || !info.fFormat) { in check_backend_texture()
629 desc->fSize = {backendTex.width(), backendTex.height()}; in check_backend_texture()
648 if (backendTex.isProtected()) { in check_backend_texture()
656 sk_sp<GrTexture> GrGLGpu::onWrapBackendTexture(const GrBackendTexture& backendTex, in onWrapBackendTexture() argument
661 if (!check_backend_texture(backendTex, this->glCaps(), &desc)) { in onWrapBackendTexture()
671 GrMipmapStatus mipmapStatus = backendTex.hasMipmaps() ? GrMipmapStatus::kValid in onWrapBackendTexture()
675 backendTex.getGLTextureParams(), cacheable, ioType); in onWrapBackendTexture()
676 if (this->glCaps().isFormatRenderable(backendTex in onWrapBackendTexture()
683 check_compressed_backend_texture(const GrBackendTexture& backendTex, const GrGLCaps& caps, GrGLTexture::Desc* desc, bool skipRectTexSupportCheck = false) check_compressed_backend_texture() argument
711 onWrapCompressedBackendTexture(const GrBackendTexture& backendTex, GrWrapOwnership ownership, GrWrapCacheable cacheable) onWrapCompressedBackendTexture() argument
734 onWrapRenderableBackendTexture(const GrBackendTexture& backendTex, int sampleCnt, GrWrapOwnership ownership, GrWrapCacheable cacheable) onWrapRenderableBackendTexture() argument
[all...]
/third_party/skia/src/gpu/vk/
H A DGrVkGpu.cpp1407 sk_sp<GrTexture> GrVkGpu::onWrapBackendTexture(const GrBackendTexture& backendTex, in onWrapBackendTexture() argument
1412 if (!backendTex.getVkImageInfo(&imageInfo)) { in onWrapBackendTexture()
1425 if (backendTex.isProtected() && (fProtectedContext == GrProtected::kNo)) { in onWrapBackendTexture()
1429 sk_sp<GrBackendSurfaceMutableStateImpl> mutableState = backendTex.getMutableState(); in onWrapBackendTexture()
1431 return GrVkTexture::MakeWrappedTexture(this, backendTex.dimensions(), ownership, cacheable, in onWrapBackendTexture()
1441 sk_sp<GrTexture> GrVkGpu::onWrapRenderableBackendTexture(const GrBackendTexture& backendTex, in onWrapRenderableBackendTexture() argument
1446 if (!backendTex.getVkImageInfo(&imageInfo)) { in onWrapRenderableBackendTexture()
1465 if (backendTex.isProtected() && (fProtectedContext == GrProtected::kNo)) { in onWrapRenderableBackendTexture()
1471 sk_sp<GrBackendSurfaceMutableStateImpl> mutableState = backendTex.getMutableState(); in onWrapRenderableBackendTexture()
1474 return GrVkTextureRenderTarget::MakeWrappedTextureRenderTarget(this, backendTex in onWrapRenderableBackendTexture()
[all...]
/third_party/skia/src/image/
H A DSkImage_Gpu.cpp386 const GrBackendTexture& backendTex, in new_wrapped_texture_common()
393 if (!backendTex.isValid() || backendTex.width() <= 0 || backendTex.height() <= 0) { in new_wrapped_texture_common()
399 backendTex, ownership, GrWrapCacheable::kNo, kRead_GrIOType, std::move(releaseHelper)); in new_wrapped_texture_common()
385 new_wrapped_texture_common(GrRecordingContext* rContext, const GrBackendTexture& backendTex, GrColorType colorType, GrSurfaceOrigin origin, SkAlphaType at, sk_sp<SkColorSpace> colorSpace, GrWrapOwnership ownership, sk_sp<GrRefCntedCallback> releaseHelper) new_wrapped_texture_common() argument

Completed in 29 milliseconds

12