Home
last modified time | relevance | path

Searched refs:backendTexture (Results 1 – 25 of 60) sorted by relevance

123

/third_party/flutter/skia/include/core/
DSkPromiseImageTexture.h33 static sk_sp<SkPromiseImageTexture> Make(const GrBackendTexture& backendTexture) { in Make() argument
34 if (!backendTexture.isValid()) { in Make()
37 return sk_sp<SkPromiseImageTexture>(new SkPromiseImageTexture(backendTexture)); in Make()
40 const GrBackendTexture& backendTexture() const { return fBackendTexture; } in backendTexture() function
50 explicit SkPromiseImageTexture(const GrBackendTexture& backendTexture);
DSkImage.h276 const GrBackendTexture& backendTexture, in MakeFromTexture() argument
281 return MakeFromTexture(context, backendTexture, origin, colorType, alphaType, colorSpace, in MakeFromTexture()
311 const GrBackendTexture& backendTexture,
377 const GrBackendTexture& backendTexture,
433 const GrBackendTexture& backendTexture,
505 const GrBackendTexture& backendTexture, sk_sp<SkColorSpace> imageColorSpace = nullptr);
549 const GrBackendTexture& backendTexture,
1067 GrBackendTexture* backendTexture,
DSkSurface.h203 const GrBackendTexture& backendTexture,
281 const GrBackendTexture& backendTexture,
435 const GrBackendTexture& backendTexture,
559 bool replaceBackendTexture(const GrBackendTexture& backendTexture,
/third_party/skia/include/core/
DSkPromiseImageTexture.h37 static sk_sp<SkPromiseImageTexture> Make(const GrBackendTexture& backendTexture) { in Make() argument
38 if (!backendTexture.isValid()) { in Make()
41 return sk_sp<SkPromiseImageTexture>(new SkPromiseImageTexture(backendTexture)); in Make()
44 GrBackendTexture backendTexture() const { return fBackendTexture; } in backendTexture() function
54 explicit SkPromiseImageTexture(const GrBackendTexture& backendTexture);
DSkImage.h306 const GrBackendTexture& backendTexture,
342 const GrBackendTexture& backendTexture,
394 const GrBackendTexture& backendTexture,
1184 GrBackendTexture* backendTexture,
/third_party/skia/src/gpu/
DGrDirectContext.cpp582 const GrBackendTexture& backendTexture, in update_texture_with_pixmaps() argument
586 const GrBackendFormat& format = backendTexture.getBackendFormat(); in update_texture_with_pixmaps()
592 auto proxy = context->priv().proxyProvider()->wrapBackendTexture(backendTexture, in update_texture_with_pixmaps()
726 bool GrDirectContext::updateBackendTexture(const GrBackendTexture& backendTexture, in updateBackendTexture() argument
736 return fGpu->clearBackendTexture(backendTexture, std::move(finishedCallback), color.array()); in updateBackendTexture()
739 bool GrDirectContext::updateBackendTexture(const GrBackendTexture& backendTexture, in updateBackendTexture() argument
750 GrBackendFormat format = backendTexture.getBackendFormat(); in updateBackendTexture()
760 return fGpu->clearBackendTexture(backendTexture, in updateBackendTexture()
765 bool GrDirectContext::updateBackendTexture(const GrBackendTexture& backendTexture, in updateBackendTexture() argument
783 if (backendTexture.hasMipmaps()) { in updateBackendTexture()
[all …]
DGrBackendTextureImageGenerator.cpp54 GrBackendTexture backendTexture = texture->getBackendTexture(); in Make() local
57 SkColorTypeToGrColorType(colorType), backendTexture.getBackendFormat())) { in Make()
65 std::move(semaphore), backendTexture)); in Make()
171 [refHelper = fRefHelper, releaseProcHelper, backendTexture = fBackendTexture]( in onGenerateTexture()
199 backendTexture, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, in onGenerateTexture()
DGrGpu.cpp845 bool GrGpu::clearBackendTexture(const GrBackendTexture& backendTexture, in clearBackendTexture() argument
848 if (!backendTexture.isValid()) { in clearBackendTexture()
852 if (backendTexture.hasMipmaps() && !this->caps()->mipmapSupport()) { in clearBackendTexture()
856 return this->onClearBackendTexture(backendTexture, std::move(finishedCallback), color); in clearBackendTexture()
888 bool GrGpu::updateCompressedBackendTexture(const GrBackendTexture& backendTexture, in updateCompressedBackendTexture() argument
894 if (!backendTexture.isValid()) { in updateCompressedBackendTexture()
898 GrBackendFormat format = backendTexture.getBackendFormat(); in updateCompressedBackendTexture()
906 if (backendTexture.hasMipmaps() && !this->caps()->mipmapSupport()) { in updateCompressedBackendTexture()
910 GrMipmapped mipMapped = backendTexture.hasMipmaps() ? GrMipmapped::kYes : GrMipmapped::kNo; in updateCompressedBackendTexture()
912 if (!CompressedDataIsCorrect(backendTexture.dimensions(), in updateCompressedBackendTexture()
[all …]
DGrTexture.cpp60 GrBackendTexture* backendTexture, in StealBackendTexture() argument
66 if (!texture->onStealBackendTexture(backendTexture, releaseProc)) { in StealBackendTexture()
/third_party/flutter/skia/src/image/
DSkSurface_Gpu.cpp434 const GrBackendTexture& backendTexture, in MakeFromBackendTexture() argument
446 if (!c.isCompatible(backendTexture)) { in MakeFromBackendTexture()
451 backendTexture.getBackendFormat()); in MakeFromBackendTexture()
456 if (!validate_backend_texture(context->priv().caps(), backendTexture, in MakeFromBackendTexture()
462 backendTexture, c.origin(), c.sampleCount(), grCT, in MakeFromBackendTexture()
469 backendTexture.width(), backendTexture.height(), in MakeFromBackendTexture()
562 bool SkSurface_Gpu::onReplaceBackendTexture(const GrBackendTexture& backendTexture, in onReplaceBackendTexture() argument
569 if (!backendTexture.isValid()) { in onReplaceBackendTexture()
572 if (backendTexture.width() != this->width() || backendTexture.height() != this->height()) { in onReplaceBackendTexture()
587 if (oldTexture->backendFormat() != backendTexture.getBackendFormat()) { in onReplaceBackendTexture()
[all …]
DSkImage_Gpu.cpp266 const GrBackendTexture& backendTexture, in MakeFromYUVATexturesCopyWithExternalBackend() argument
271 backendTexture.getBackendFormat()); in MakeFromYUVATexturesCopyWithExternalBackend()
277 if (!SkImage_Gpu::ValidateBackendTexture(caps, backendTexture, grColorType, in MakeFromYUVATexturesCopyWithExternalBackend()
285 ctx->priv().makeBackendTextureRenderTargetContext(backendTexture, imageOrigin, 1, in MakeFromYUVATexturesCopyWithExternalBackend()
314 GrSurfaceOrigin imageOrigin, const GrBackendTexture& backendTexture, in MakeFromYUVTexturesCopyWithExternalBackend() argument
323 ctx, yuvColorSpace, yuvTextures, yuvaIndices, size, imageOrigin, backendTexture, in MakeFromYUVTexturesCopyWithExternalBackend()
347 const GrBackendTexture& backendTexture, in MakeFromNV12TexturesCopyWithExternalBackend() argument
356 ctx, yuvColorSpace, nv12Textures, yuvaIndices, size, imageOrigin, backendTexture, in MakeFromNV12TexturesCopyWithExternalBackend()
556 GrBackendTexture backendTexture = in MakeFromAHardwareBufferWithData() local
561 if (!backendTexture.isValid()) { in MakeFromAHardwareBufferWithData()
[all …]
/third_party/flutter/skia/src/core/
DSkPromiseImageTexture.cpp15 SkPromiseImageTexture::SkPromiseImageTexture(const GrBackendTexture& backendTexture) { in SkPromiseImageTexture() argument
16 SkASSERT(backendTexture.isValid()); in SkPromiseImageTexture()
17 fBackendTexture = backendTexture; in SkPromiseImageTexture()
/third_party/skia/src/core/
DSkPromiseImageTexture.cpp15 SkPromiseImageTexture::SkPromiseImageTexture(const GrBackendTexture& backendTexture) { in SkPromiseImageTexture() argument
16 SkASSERT(backendTexture.isValid()); in SkPromiseImageTexture()
17 fBackendTexture = backendTexture; in SkPromiseImageTexture()
/third_party/skia/src/image/
DSkSurface_Gpu.cpp522 bool SkSurface_Gpu::onReplaceBackendTexture(const GrBackendTexture& backendTexture, in onReplaceBackendTexture() argument
533 if (!backendTexture.isValid()) { in onReplaceBackendTexture()
536 if (backendTexture.width() != this->width() || backendTexture.height() != this->height()) { in onReplaceBackendTexture()
551 if (oldTexture->backendFormat() != backendTexture.getBackendFormat()) { in onReplaceBackendTexture()
554 if (oldTexture->getBackendTexture().isSameTexture(backendTexture)) { in onReplaceBackendTexture()
560 if (!validate_backend_texture(rContext->priv().caps(), backendTexture, in onReplaceBackendTexture()
569 backendTexture, sampleCnt, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, in onReplaceBackendTexture()
669 GrBackendTexture backendTexture = in MakeFromAHardwareBuffer() local
675 if (!backendTexture.isValid()) { in MakeFromAHardwareBuffer()
682 sk_sp<SkSurface> surface = SkSurface::MakeFromBackendTexture(dContext, backendTexture, in MakeFromAHardwareBuffer()
DSkImage_GpuBase.cpp295 const GrBackendTexture& backendTexture = promiseTexture->backendTexture(); in MakePromiseImageLazyProxy() local
296 if (!backendTexture.isValid()) { in MakePromiseImageLazyProxy()
300 sk_sp<GrTexture> tex = resourceProvider->wrapBackendTexture(backendTexture, in MakePromiseImageLazyProxy()
/third_party/flutter/skia/src/gpu/
DGrBackendTextureImageGenerator.cpp53 GrBackendTexture backendTexture = texture->getBackendTexture(); in Make() local
56 SkColorTypeToGrColorType(colorType), backendTexture.getBackendFormat())) { in Make()
64 std::move(semaphore), backendTexture)); in Make()
164 backendTexture = fBackendTexture, grColorType](GrResourceProvider* resourceProvider) in onGenerateTexture()
190 backendTexture, grColorType, kBorrow_GrWrapOwnership, in onGenerateTexture()
DGrTexture.cpp52 GrBackendTexture* backendTexture, in StealBackendTexture() argument
58 if (!texture->onStealBackendTexture(backendTexture, releaseProc)) { in StealBackendTexture()
/third_party/skia/tests/
DSurfaceSemaphoreTest.cpp68 const GrBackendTexture& backendTexture, in draw_child() argument
82 backendTexture, in draw_child()
170 GrBackendTexture backendTexture = mainSurface->getBackendTexture( in surface_semaphore_test() local
173 draw_child(reporter, childInfo1, backendTexture, semaphores[0]); in surface_semaphore_test()
180 backendTexture.setVkImageLayout(VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL); in surface_semaphore_test()
184 draw_child(reporter, childInfo2, backendTexture, semaphores[1]); in surface_semaphore_test()
/third_party/flutter/skia/tests/
DSurfaceSemaphoreTest.cpp65 const GrBackendTexture& backendTexture, in draw_child() argument
79 backendTexture, in draw_child()
168 GrBackendTexture backendTexture = mainImage->getBackendTexture(false); in surface_semaphore_test() local
170 draw_child(reporter, childInfo1, backendTexture, semaphores[0]); in surface_semaphore_test()
178 SkAssertResult(backendTexture.getVkImageInfo(&vkInfo)); in surface_semaphore_test()
183 draw_child(reporter, childInfo2, backendTexture, semaphores[1]); in surface_semaphore_test()
DTextureBindingsResetTest.cpp118 GrBackendTexture backendTexture(10, 10, GrMipMapped::kNo, infoExternal); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
122 img = SkImage::MakeFromTexture(context, backendTexture, kTopLeft_GrSurfaceOrigin, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
148 GrBackendTexture backendTexture(10, 10, GrMipMapped::kNo, info); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
149 img = SkImage::MakeFromTexture(context, backendTexture, kTopLeft_GrSurfaceOrigin, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DVulkanBackend.cpp114 Texture* backendTexture = ToBackend(FromAPI(texture)); in ExportVulkanImage() local
115 Device* device = ToBackend(backendTexture->GetDevice()); in ExportVulkanImage()
118 return device->SignalAndExportExternalTexture(backendTexture, desiredLayout, fdInfo, in ExportVulkanImage()
/third_party/flutter/skia/tools/
DDDLPromiseImageHelper.cpp27 fContext->deleteBackendTexture(fPromiseImageTexture->backendTexture()); in ~PromiseImageCallbackContext()
32 const GrBackendTexture& backendTexture) { in setBackendTexture() argument
34 fPromiseImageTexture = SkPromiseImageTexture::Make(backendTexture); in setBackendTexture()
184 const GrBackendTexture& backendTex = curImage.promiseTexture(i)->backendTexture(); in PromiseImageCreator()
222 const GrBackendTexture& backendTex = curImage.promiseTexture(0)->backendTexture(); in PromiseImageCreator()
/third_party/skia/tools/
DDDLPromiseImageHelper.cpp76 fContext->deleteBackendTexture(fPromiseImageTexture->backendTexture()); in ~PromiseImageCallbackContext()
80 void PromiseImageCallbackContext::setBackendTexture(const GrBackendTexture& backendTexture) { in setBackendTexture() argument
82 SkASSERT(fBackendFormat == backendTexture.getBackendFormat()); in setBackendTexture()
83 fPromiseImageTexture = SkPromiseImageTexture::Make(backendTexture); in setBackendTexture()
90 fContext->deleteBackendTexture(fPromiseImageTexture->backendTexture()); in destroyBackendTexture()
/third_party/skia/src/gpu/d3d/
DGrD3DGpu.cpp1389 bool GrD3DGpu::onClearBackendTexture(const GrBackendTexture& backendTexture, in onClearBackendTexture() argument
1393 SkAssertResult(backendTexture.getD3DTextureResourceInfo(&info)); in onClearBackendTexture()
1396 sk_sp<GrD3DResourceState> state = backendTexture.getGrD3DResourceState(); in onClearBackendTexture()
1399 GrD3DTexture::MakeWrappedTexture(this, backendTexture.dimensions(), in onClearBackendTexture()
1417 if (backendTexture.fMipmapped == GrMipmapped::kYes) { in onClearBackendTexture()
1418 mipLevelCount = SkMipmap::ComputeLevelCount(backendTexture.dimensions()) + 1; in onClearBackendTexture()
1447 backendTexture.dimensions(), in onClearBackendTexture()
1490 bool GrD3DGpu::onUpdateCompressedBackendTexture(const GrBackendTexture& backendTexture, in onUpdateCompressedBackendTexture() argument
1495 SkAssertResult(backendTexture.getD3DTextureResourceInfo(&info)); in onUpdateCompressedBackendTexture()
1497 sk_sp<GrD3DResourceState> state = backendTexture.getGrD3DResourceState(); in onUpdateCompressedBackendTexture()
[all …]
/third_party/flutter/skia/tools/sk_app/
DDawnWindowContext.cpp68 GrBackendTexture backendTexture(fWidth, fHeight, imageInfo); in getBackbufferSurface() local
70 backendTexture, in getBackbufferSurface()

123