Home
last modified time | relevance | path

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

12

/external/skia/include/core/
DSkPromiseImageTexture.h36 static sk_sp<SkPromiseImageTexture> Make(const GrBackendTexture& backendTexture) { in Make() argument
37 if (!backendTexture.isValid()) { in Make()
40 return sk_sp<SkPromiseImageTexture>(new SkPromiseImageTexture(backendTexture)); in Make()
43 GrBackendTexture backendTexture() const { return fBackendTexture; } in backendTexture() function
53 explicit SkPromiseImageTexture(const GrBackendTexture& backendTexture);
DSkImage.h278 const GrBackendTexture& backendTexture,
314 const GrBackendTexture& backendTexture,
366 const GrBackendTexture& backendTexture,
1173 GrBackendTexture* backendTexture,
/external/skqp/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.h224 const GrBackendTexture& backendTexture, in MakeFromTexture() argument
229 return MakeFromTexture(context, backendTexture, origin, colorType, alphaType, colorSpace, in MakeFromTexture()
259 const GrBackendTexture& backendTexture,
348 const GrBackendTexture& backendTexture,
404 const GrBackendTexture& backendTexture,
476 const GrBackendTexture& backendTexture, sk_sp<SkColorSpace> imageColorSpace = nullptr);
520 const GrBackendTexture& backendTexture,
1001 GrBackendTexture* backendTexture,
DSkSurface.h199 const GrBackendTexture& backendTexture,
270 const GrBackendTexture& backendTexture,
/external/skqp/src/gpu/
DGrBackendTextureImageGenerator.cpp45 GrBackendTexture backendTexture = texture->getBackendTexture(); in Make() local
46 GrBackendFormat backendFormat = backendTexture.getBackendFormat(); in Make()
50 backendTexture.fConfig = in Make()
52 if (backendTexture.fConfig == kUnknown_GrPixelConfig) { in Make()
60 std::move(semaphore), backendTexture)); in Make()
139 GrBackendTexture backendTexture = fBackendTexture; in onGenerateTexture() local
142 GrBackendFormat format = backendTexture.getBackendFormat(); in onGenerateTexture()
147 backendTexture](GrResourceProvider* resourceProvider) { in onGenerateTexture()
173 backendTexture, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, in onGenerateTexture()
DGrTexture.cpp50 GrBackendTexture* backendTexture, in StealBackendTexture() argument
56 if (!texture->onStealBackendTexture(backendTexture, releaseProc)) { in StealBackendTexture()
/external/skia/src/gpu/
DGrDirectContext.cpp510 const GrBackendTexture& backendTexture, in update_texture_with_pixmaps() argument
514 const GrBackendFormat& format = backendTexture.getBackendFormat(); in update_texture_with_pixmaps()
520 auto proxy = context->priv().proxyProvider()->wrapBackendTexture(backendTexture, in update_texture_with_pixmaps()
654 bool GrDirectContext::updateBackendTexture(const GrBackendTexture& backendTexture, in updateBackendTexture() argument
664 return fGpu->clearBackendTexture(backendTexture, std::move(finishedCallback), color.array()); in updateBackendTexture()
667 bool GrDirectContext::updateBackendTexture(const GrBackendTexture& backendTexture, in updateBackendTexture() argument
678 GrBackendFormat format = backendTexture.getBackendFormat(); in updateBackendTexture()
688 return fGpu->clearBackendTexture(backendTexture, in updateBackendTexture()
693 bool GrDirectContext::updateBackendTexture(const GrBackendTexture& backendTexture, in updateBackendTexture() argument
711 if (backendTexture.hasMipmaps()) { in updateBackendTexture()
[all …]
DGrBackendTextureImageGenerator.cpp55 GrBackendTexture backendTexture = texture->getBackendTexture(); in Make() local
58 SkColorTypeToGrColorType(colorType), backendTexture.getBackendFormat())) { in Make()
66 std::move(semaphore), backendTexture)); in Make()
172 [refHelper = fRefHelper, releaseProcHelper, backendTexture = fBackendTexture]( in onGenerateTexture()
200 backendTexture, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, in onGenerateTexture()
DGrGpu.cpp798 bool GrGpu::clearBackendTexture(const GrBackendTexture& backendTexture, in clearBackendTexture() argument
801 if (!backendTexture.isValid()) { in clearBackendTexture()
805 if (backendTexture.hasMipmaps() && !this->caps()->mipmapSupport()) { in clearBackendTexture()
809 return this->onClearBackendTexture(backendTexture, std::move(finishedCallback), color); in clearBackendTexture()
841 bool GrGpu::updateCompressedBackendTexture(const GrBackendTexture& backendTexture, in updateCompressedBackendTexture() argument
847 if (!backendTexture.isValid()) { in updateCompressedBackendTexture()
851 GrBackendFormat format = backendTexture.getBackendFormat(); in updateCompressedBackendTexture()
859 if (backendTexture.hasMipmaps() && !this->caps()->mipmapSupport()) { in updateCompressedBackendTexture()
863 GrMipmapped mipMapped = backendTexture.hasMipmaps() ? GrMipmapped::kYes : GrMipmapped::kNo; in updateCompressedBackendTexture()
865 if (!CompressedDataIsCorrect(backendTexture.dimensions(), in updateCompressedBackendTexture()
[all …]
DGrTexture.cpp59 GrBackendTexture* backendTexture, in StealBackendTexture() argument
65 if (!texture->onStealBackendTexture(backendTexture, releaseProc)) { in StealBackendTexture()
/external/skqp/src/core/
DSkPromiseImageTexture.cpp15 SkPromiseImageTexture::SkPromiseImageTexture(const GrBackendTexture& backendTexture) { in SkPromiseImageTexture() argument
16 SkASSERT(backendTexture.isValid()); in SkPromiseImageTexture()
17 fBackendTexture = backendTexture; in SkPromiseImageTexture()
/external/skia/src/core/
DSkPromiseImageTexture.cpp15 SkPromiseImageTexture::SkPromiseImageTexture(const GrBackendTexture& backendTexture) { in SkPromiseImageTexture() argument
16 SkASSERT(backendTexture.isValid()); in SkPromiseImageTexture()
17 fBackendTexture = backendTexture; in SkPromiseImageTexture()
/external/skia/src/image/
DSkSurface_Gpu.cpp547 bool SkSurface_Gpu::onReplaceBackendTexture(const GrBackendTexture& backendTexture, in onReplaceBackendTexture() argument
558 if (!backendTexture.isValid()) { in onReplaceBackendTexture()
561 if (backendTexture.width() != this->width() || backendTexture.height() != this->height()) { in onReplaceBackendTexture()
576 if (oldTexture->backendFormat() != backendTexture.getBackendFormat()) { in onReplaceBackendTexture()
579 if (oldTexture->getBackendTexture().isSameTexture(backendTexture)) { in onReplaceBackendTexture()
586 if (!validate_backend_texture(context->priv().caps(), backendTexture, in onReplaceBackendTexture()
591 context, oldSDC->colorInfo().colorType(), std::move(colorSpace), backendTexture, in onReplaceBackendTexture()
693 GrBackendTexture backendTexture = in MakeFromAHardwareBuffer() local
699 if (!backendTexture.isValid()) { in MakeFromAHardwareBuffer()
706 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()
/external/skqp/tests/
DSurfaceSemaphoreTest.cpp65 const GrBackendTexture& backendTexture, in draw_child() argument
79 backendTexture, in draw_child()
153 GrBackendTexture backendTexture = mainImage->getBackendTexture(false); in surface_semaphore_test() local
155 draw_child(reporter, childInfo1, backendTexture, semaphores[0]); in surface_semaphore_test()
163 SkAssertResult(backendTexture.getVkImageInfo(&vkInfo)); in surface_semaphore_test()
168 draw_child(reporter, childInfo2, backendTexture, semaphores[1]); in surface_semaphore_test()
/external/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()
/external/skqp/tools/
DDDLPromiseImageHelper.cpp27 gpu->deleteTestingOnlyBackendTexture(fPromiseImageTexture->backendTexture()); in ~PromiseImageCallbackContext()
32 const GrBackendTexture& backendTexture) { in setBackendTexture() argument
36 gpu->deleteTestingOnlyBackendTexture(fPromiseImageTexture->backendTexture()); in setBackendTexture()
38 fPromiseImageTexture = SkPromiseImageTexture::Make(backendTexture); in setBackendTexture()
228 const GrBackendTexture& backendTex = curImage.promiseTexture(i)->backendTexture(); in PromiseImageCreator()
255 const GrBackendTexture& backendTex = curImage.promiseTexture(0)->backendTexture(); in PromiseImageCreator()
/external/skqp/src/image/
DSkImage_Gpu.cpp249 const GrBackendTexture& backendTexture, in MakeFromYUVATexturesCopyWithExternalBackend() argument
251 GrBackendTexture backendTextureCopy = backendTexture; in MakeFromYUVATexturesCopyWithExternalBackend()
291 GrSurfaceOrigin imageOrigin, const GrBackendTexture& backendTexture, in MakeFromYUVTexturesCopyWithExternalBackend() argument
300 ctx, yuvColorSpace, yuvTextures, yuvaIndices, size, imageOrigin, backendTexture, in MakeFromYUVTexturesCopyWithExternalBackend()
324 const GrBackendTexture& backendTexture, in MakeFromNV12TexturesCopyWithExternalBackend() argument
333 ctx, yuvColorSpace, nv12Textures, yuvaIndices, size, imageOrigin, backendTexture, in MakeFromNV12TexturesCopyWithExternalBackend()
575 GrBackendTexture* backendTexture, in MakeBackendTextureFromSkImage() argument
577 if (!image || !ctx || !backendTexture || !releaseProc) { in MakeBackendTextureFromSkImage()
632 return GrTexture::StealBackendTexture(std::move(textureRef), backendTexture, releaseProc); in MakeBackendTextureFromSkImage()
DSkImage_GpuBase.cpp454 GrBackendTexture backendTexture; in MakePromiseImageLazyProxy() local
473 backendTexture = promiseTexture->backendTexture(); in MakePromiseImageLazyProxy()
474 backendTexture.fConfig = fConfig; in MakePromiseImageLazyProxy()
475 if (!backendTexture.isValid()) { in MakePromiseImageLazyProxy()
496 backendTexture, kBorrow_GrWrapOwnership, GrWrapCacheable::kYes, in MakePromiseImageLazyProxy()
/external/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()
/external/skia/src/gpu/d3d/
DGrD3DGpu.cpp1187 bool GrD3DGpu::onClearBackendTexture(const GrBackendTexture& backendTexture, in onClearBackendTexture() argument
1191 SkAssertResult(backendTexture.getD3DTextureResourceInfo(&info)); in onClearBackendTexture()
1194 sk_sp<GrD3DResourceState> state = backendTexture.getGrD3DResourceState(); in onClearBackendTexture()
1197 GrD3DTexture::MakeWrappedTexture(this, backendTexture.dimensions(), in onClearBackendTexture()
1215 if (backendTexture.fMipmapped == GrMipmapped::kYes) { in onClearBackendTexture()
1216 mipLevelCount = SkMipmap::ComputeLevelCount(backendTexture.dimensions()) + 1; in onClearBackendTexture()
1245 backendTexture.dimensions(), in onClearBackendTexture()
1288 bool GrD3DGpu::onUpdateCompressedBackendTexture(const GrBackendTexture& backendTexture, in onUpdateCompressedBackendTexture() argument
1293 SkAssertResult(backendTexture.getD3DTextureResourceInfo(&info)); in onUpdateCompressedBackendTexture()
1295 sk_sp<GrD3DResourceState> state = backendTexture.getGrD3DResourceState(); in onUpdateCompressedBackendTexture()
[all …]
/external/skqp/src/gpu/gl/
DGrGLTexture.cpp123 bool GrGLTexture::onStealBackendTexture(GrBackendTexture* backendTexture, in onStealBackendTexture() argument
125 *backendTexture = this->getBackendTexture(); in onStealBackendTexture()
/external/skia/src/gpu/gl/
DGrGLTexture.cpp135 bool GrGLTexture::onStealBackendTexture(GrBackendTexture* backendTexture, in onStealBackendTexture() argument
137 *backendTexture = this->getBackendTexture(); in onStealBackendTexture()
/external/skia/src/gpu/dawn/
DGrDawnGpu.cpp381 bool GrDawnGpu::onClearBackendTexture(const GrBackendTexture& backendTexture, in onClearBackendTexture() argument
385 SkAssertResult(backendTexture.getDawnTextureInfo(&info)); in onClearBackendTexture()
393 size_t baseLayerSize = bpp * backendTexture.width() * backendTexture.height(); in onClearBackendTexture()
395 GrImageInfo imageInfo(colorType, kUnpremul_SkAlphaType, nullptr, backendTexture.dimensions()); in onClearBackendTexture()
396 GrClearImage(imageInfo, defaultStorage.get(), bpp * backendTexture.width(), color); in onClearBackendTexture()
400 int w = backendTexture.width(), h = backendTexture.height(); in onClearBackendTexture()

12