/third_party/skia/include/core/ |
H A D | SkPromiseImageTexture.h | 37 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 in SkPromiseImageTexture 54 explicit SkPromiseImageTexture(const GrBackendTexture& backendTexture);
|
H A D | SkImage.h | 289 SkImage is returned if format of backendTexture is recognized and supported. 296 @param backendTexture texture residing on GPU 309 const GrBackendTexture& backendTexture, 322 An SkImage is returned if the format of backendTexture is recognized and supported. 329 @param backendTexture a texture already allocated by the GPU 345 const GrBackendTexture& backendTexture, 382 /** Creates SkImage from backendTexture associated with context. backendTexture and 385 SkImage is returned if format of backendTexture is recognized and supported. 389 @param backendTexture textur [all...] |
H A D | SkSurface.h | 187 creates an intermediate MSAA SkSurface which is used for drawing backendTexture. 189 SkSurface is returned if all parameters are valid. backendTexture is valid if 191 backendTexture has an sRGB configuration, then context must support sRGB, 192 and colorSpace must be present. Further, backendTexture width and height must 203 @param backendTexture texture residing on GPU 213 const GrBackendTexture& backendTexture, 567 @param backendTexture the new backing texture for the surface 572 bool replaceBackendTexture(const GrBackendTexture& backendTexture,
|
/third_party/skia/src/gpu/ |
H A D | GrDirectContext.cpp | 730 const GrBackendTexture& backendTexture, in update_texture_with_pixmaps() 734 const GrBackendFormat& format = backendTexture.getBackendFormat(); in update_texture_with_pixmaps() 740 auto proxy = context->priv().proxyProvider()->wrapBackendTexture(backendTexture, in update_texture_with_pixmaps() 874 bool GrDirectContext::updateBackendTexture(const GrBackendTexture& backendTexture, in updateBackendTexture() argument 884 return fGpu->clearBackendTexture(backendTexture, std::move(finishedCallback), color.array()); in updateBackendTexture() 887 bool GrDirectContext::updateBackendTexture(const GrBackendTexture& backendTexture, in updateBackendTexture() argument 898 GrBackendFormat format = backendTexture.getBackendFormat(); in updateBackendTexture() 908 return fGpu->clearBackendTexture(backendTexture, in updateBackendTexture() 913 bool GrDirectContext::updateBackendTexture(const GrBackendTexture& backendTexture, in updateBackendTexture() argument 931 if (backendTexture in updateBackendTexture() 727 update_texture_with_pixmaps(GrDirectContext* context, const SkPixmap src[], int numLevels, const GrBackendTexture& backendTexture, GrSurfaceOrigin textureOrigin, sk_sp<GrRefCntedCallback> finishedCallback) update_texture_with_pixmaps() argument 1064 updateCompressedBackendTexture(const GrBackendTexture& backendTexture, const SkColor4f& color, GrGpuFinishedProc finishedProc, GrGpuFinishedContext finishedContext) updateCompressedBackendTexture() argument 1095 updateCompressedBackendTexture(const GrBackendTexture& backendTexture, const void* compressedData, size_t dataSize, GrGpuFinishedProc finishedProc, GrGpuFinishedContext finishedContext) updateCompressedBackendTexture() argument 1118 setBackendTextureState(const GrBackendTexture& backendTexture, const GrBackendSurfaceMutableState& state, GrBackendSurfaceMutableState* previousState, GrGpuFinishedProc finishedProc, GrGpuFinishedContext finishedContext) setBackendTextureState() argument [all...] |
H A D | GrBackendTextureImageGenerator.cpp | 54 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()
|
H A D | GrGpu.cpp | 900 bool GrGpu::clearBackendTexture(const GrBackendTexture& backendTexture, in clearBackendTexture() argument 903 if (!backendTexture.isValid()) { in clearBackendTexture() 907 if (backendTexture.hasMipmaps() && !this->caps()->mipmapSupport()) { in clearBackendTexture() 911 return this->onClearBackendTexture(backendTexture, std::move(finishedCallback), color); in clearBackendTexture() 943 bool GrGpu::updateCompressedBackendTexture(const GrBackendTexture& backendTexture, in updateCompressedBackendTexture() argument 949 if (!backendTexture.isValid()) { in updateCompressedBackendTexture() 953 GrBackendFormat format = backendTexture.getBackendFormat(); in updateCompressedBackendTexture() 961 if (backendTexture.hasMipmaps() && !this->caps()->mipmapSupport()) { in updateCompressedBackendTexture() 965 GrMipmapped mipMapped = backendTexture.hasMipmaps() ? GrMipmapped::kYes : GrMipmapped::kNo; in updateCompressedBackendTexture() 967 if (!CompressedDataIsCorrect(backendTexture in updateCompressedBackendTexture() [all...] |
H A D | GrTexture.cpp | 60 GrBackendTexture* backendTexture, in StealBackendTexture() 66 if (!texture->onStealBackendTexture(backendTexture, releaseProc)) { in StealBackendTexture() 59 StealBackendTexture(sk_sp<GrTexture> texture, GrBackendTexture* backendTexture, SkImage::BackendTextureReleaseProc* releaseProc) StealBackendTexture() argument
|
/third_party/skia/src/core/ |
H A D | SkPromiseImageTexture.cpp | 15 SkPromiseImageTexture::SkPromiseImageTexture(const GrBackendTexture& backendTexture) { in SkPromiseImageTexture() argument 16 SkASSERT(backendTexture.isValid()); in SkPromiseImageTexture() 17 fBackendTexture = backendTexture; in SkPromiseImageTexture()
|
/third_party/skia/src/image/ |
H A D | SkSurface_Gpu.cpp | 529 bool SkSurface_Gpu::onReplaceBackendTexture(const GrBackendTexture& backendTexture, in onReplaceBackendTexture() argument 540 if (!backendTexture.isValid()) { in onReplaceBackendTexture() 543 if (backendTexture.width() != this->width() || backendTexture.height() != this->height()) { in onReplaceBackendTexture() 558 if (oldTexture->backendFormat() != backendTexture.getBackendFormat()) { in onReplaceBackendTexture() 561 if (oldTexture->getBackendTexture().isSameTexture(backendTexture)) { in onReplaceBackendTexture() 567 if (!validate_backend_texture(rContext->priv().caps(), backendTexture, in onReplaceBackendTexture() 576 backendTexture, sampleCnt, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, in onReplaceBackendTexture() 676 GrBackendTexture backendTexture = in MakeFromAHardwareBuffer() local 682 if (!backendTexture in MakeFromAHardwareBuffer() [all...] |
H A D | SkImage_GpuBase.cpp | 295 const GrBackendTexture& backendTexture = promiseTexture->backendTexture(); in MakePromiseImageLazyProxy() local 296 if (!backendTexture.isValid()) { in MakePromiseImageLazyProxy() 300 sk_sp<GrTexture> tex = resourceProvider->wrapBackendTexture(backendTexture, in MakePromiseImageLazyProxy()
|
H A D | SkImage_Gpu.cpp | 721 GrBackendTexture backendTexture = in MakeFromAHardwareBufferWithData() local 727 if (!backendTexture.isValid()) { in MakeFromAHardwareBufferWithData() 745 backendTexture, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, kRW_GrIOType, in MakeFromAHardwareBufferWithData() 783 GrBackendTexture* backendTexture, in MakeBackendTextureFromSkImage() 785 if (!image || !backendTexture || !releaseProc) { in MakeBackendTextureFromSkImage() 811 return MakeBackendTextureFromSkImage(direct, std::move(image), backendTexture, releaseProc); in MakeBackendTextureFromSkImage() 825 return GrTexture::StealBackendTexture(std::move(textureRef), backendTexture, releaseProc); in MakeBackendTextureFromSkImage() 781 MakeBackendTextureFromSkImage(GrDirectContext* direct, sk_sp<SkImage> image, GrBackendTexture* backendTexture, BackendTextureReleaseProc* releaseProc) MakeBackendTextureFromSkImage() argument
|
/third_party/skia/tests/ |
H A D | SurfaceSemaphoreTest.cpp | 68 const GrBackendTexture& backendTexture, in draw_child() 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() 66 draw_child(skiatest::Reporter* reporter, const sk_gpu_test::ContextInfo& childInfo, const GrBackendTexture& backendTexture, const GrBackendSemaphore& semaphore) draw_child() argument
|
H A D | TextureBindingsResetTest.cpp | 118 GrBackendTexture backendTexture(10, 10, GrMipmapped::kNo, infoExternal); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 122 img = SkImage::MakeFromTexture(dContext, backendTexture, kTopLeft_GrSurfaceOrigin, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
H A D | VkYcbcrSamplerTest.cpp | 48 ycbcrHelper.backendTexture(), in DEF_GPUTEST()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
H A D | VulkanBackend.cpp | 114 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/skia/tools/ |
H A D | DDLPromiseImageHelper.cpp | 76 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()
|
H A D | DDLTileHelper.cpp | 116 if (!promiseImageTexture->backendTexture().isValid()) { in makeWrappedTileDest() 122 // backed by the same backendTexture - unbeknownst to Ganesh. in makeWrappedTileDest() 124 promiseImageTexture->backendTexture(), in makeWrappedTileDest() 212 tile->fCallbackContext->promiseImageTexture()->backendTexture().isValid()); in DeleteBackendTexture()
|
/third_party/skia/src/gpu/d3d/ |
H A D | GrD3DGpu.cpp | 1400 bool GrD3DGpu::onClearBackendTexture(const GrBackendTexture& backendTexture, in onClearBackendTexture() argument 1404 SkAssertResult(backendTexture.getD3DTextureResourceInfo(&info)); in onClearBackendTexture() 1407 sk_sp<GrD3DResourceState> state = backendTexture.getGrD3DResourceState(); in onClearBackendTexture() 1410 GrD3DTexture::MakeWrappedTexture(this, backendTexture.dimensions(), in onClearBackendTexture() 1428 if (backendTexture.fMipmapped == GrMipmapped::kYes) { in onClearBackendTexture() 1429 mipLevelCount = SkMipmap::ComputeLevelCount(backendTexture.dimensions()) + 1; in onClearBackendTexture() 1458 backendTexture.dimensions(), in onClearBackendTexture() 1501 bool GrD3DGpu::onUpdateCompressedBackendTexture(const GrBackendTexture& backendTexture, in onUpdateCompressedBackendTexture() argument 1506 SkAssertResult(backendTexture.getD3DTextureResourceInfo(&info)); in onUpdateCompressedBackendTexture() 1508 sk_sp<GrD3DResourceState> state = backendTexture in onUpdateCompressedBackendTexture() [all...] |
/third_party/skia/src/gpu/gl/ |
H A D | GrGLTexture.cpp | 136 bool GrGLTexture::onStealBackendTexture(GrBackendTexture* backendTexture, in onStealBackendTexture() argument 138 *backendTexture = this->getBackendTexture(); in onStealBackendTexture()
|
/third_party/skia/src/gpu/dawn/ |
H A D | GrDawnGpu.cpp | 395 bool GrDawnGpu::onClearBackendTexture(const GrBackendTexture& backendTexture, in onClearBackendTexture() argument 399 SkAssertResult(backendTexture.getDawnTextureInfo(&info)); in onClearBackendTexture() 407 size_t baseLayerSize = bpp * backendTexture.width() * backendTexture.height(); in onClearBackendTexture() 409 GrImageInfo imageInfo(colorType, kUnpremul_SkAlphaType, nullptr, backendTexture.dimensions()); in onClearBackendTexture() 410 GrClearImage(imageInfo, defaultStorage.get(), bpp * backendTexture.width(), color); in onClearBackendTexture() 414 int w = backendTexture.width(), h = backendTexture.height(); in onClearBackendTexture()
|
/third_party/skia/tools/gpu/vk/ |
H A D | VkYcbcrSamplerHelper.h | 31 const GrBackendTexture& backendTexture() const { return fTexture; } in backendTexture() function in VkYcbcrSamplerHelper
|
/third_party/skia/gm/ |
H A D | ycbcrimage.cpp | 59 fYCbCrImage = SkImage::MakeFromTexture(dContext, ycbcrHelper->backendTexture(), in createYCbCrImage()
|
/third_party/skia/tools/sk_app/win/ |
H A D | D3D12WindowContext_win.cpp | 154 GrBackendTexture backendTexture(width, height, info); in setupSurfaces() 156 fContext.get(), backendTexture, kTopLeft_GrSurfaceOrigin, fSampleCount, in setupSurfaces()
|
/third_party/skia/fuzz/ |
H A D | FuzzDDLThreading.cpp | 202 fContext->deleteBackendTexture(promiseImage.fTexture->backendTexture()); in releasePromiseImage() 267 fContext->deleteBackendTexture(gpuTexture->backendTexture()); in run()
|
/third_party/skia/src/gpu/vk/ |
H A D | GrVkGpu.cpp | 1748 bool GrVkGpu::onClearBackendTexture(const GrBackendTexture& backendTexture, in onClearBackendTexture() argument 1752 SkAssertResult(backendTexture.getVkImageInfo(&info)); in onClearBackendTexture() 1754 sk_sp<GrBackendSurfaceMutableStateImpl> mutableState = backendTexture.getMutableState(); in onClearBackendTexture() 1757 GrVkTexture::MakeWrappedTexture(this, backendTexture.dimensions(), in onClearBackendTexture() 1847 bool GrVkGpu::onUpdateCompressedBackendTexture(const GrBackendTexture& backendTexture, in onUpdateCompressedBackendTexture() argument 1852 SkAssertResult(backendTexture.getVkImageInfo(&info)); in onUpdateCompressedBackendTexture() 1854 sk_sp<GrBackendSurfaceMutableStateImpl> mutableState = backendTexture.getMutableState(); in onUpdateCompressedBackendTexture() 1857 backendTexture.dimensions(), in onUpdateCompressedBackendTexture() 1879 GrBackendFormatToCompressionType(backendTexture.getBackendFormat()); in onUpdateCompressedBackendTexture() 1891 backendTexture in onUpdateCompressedBackendTexture() [all...] |