/external/skqp/tests/ |
D | VkWrapTests.cpp | 53 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test() local 54 backendTex.setPixelConfig(kPixelConfig); in wrap_tex_test() 55 tex = gpu->wrapBackendTexture(backendTex, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, in wrap_tex_test() 58 tex = gpu->wrapBackendTexture(backendTex, kAdopt_GrWrapOwnership, GrWrapCacheable::kNo, in wrap_tex_test() 67 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test() local 68 backendTex.setPixelConfig(kPixelConfig); in wrap_tex_test() 69 tex = gpu->wrapBackendTexture(backendTex, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, in wrap_tex_test() 72 tex = gpu->wrapBackendTexture(backendTex, kAdopt_GrWrapOwnership, GrWrapCacheable::kNo, in wrap_tex_test() 80 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test() local 81 backendTex.setPixelConfig(kPixelConfig); in wrap_tex_test() [all …]
|
D | GrMipMappedTest.cpp | 44 GrBackendTexture backendTex = gpu->createTestingOnlyBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 52 backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 62 image = SkImage::MakeFromTexture(context, backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 71 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 80 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 94 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 110 GrBackendTexture backendTex = gpu->createTestingOnlyBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 113 sk_sp<SkImage> image = SkImage::MakeFromTexture(context, backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 122 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 131 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | VkBackendSurfaceTest.cpp | 33 GrBackendTexture backendTex = gpu->createTestingOnlyBackendTexture(nullptr, 1, 1, in DEF_GPUTEST_FOR_VULKAN_CONTEXT() local 37 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 40 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 45 GrBackendTexture backendTexCopy = backendTex; in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 51 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 58 backendTex.setVkImageLayout(initLayout); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 60 sk_sp<SkImage> wrappedImage = SkImage::MakeFromTexture(context, backendTex, in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 77 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 90 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 102 REPORTER_ASSERT(reporter, GrBackendTexture::TestingOnly_Equals(backendTex, backendTexCopy)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() [all …]
|
D | ProxyTest.cpp | 272 GrBackendTexture backendTex = in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 277 backendTex, origin, supportedNumSamples); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 279 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 285 backendTex.pixelConfig(), SkBudgeted::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 291 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 296 GrBackendTexture backendTex = in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 302 backendTex, origin, supportedNumSamples, kBorrow_GrWrapOwnership, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 305 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 311 backendTex.pixelConfig(), SkBudgeted::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 317 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | SurfaceTest.cpp | 104 GrBackendTexture backendTex = gpu->createTestingOnlyBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 106 surf = SkSurface::MakeFromBackendTexture(ctxInfo.grContext(), backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 112 surf = SkSurface::MakeFromBackendTextureAsRenderTarget(ctxInfo.grContext(), backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 120 if (backendTex.isValid()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 121 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 132 backendTex = gpu->createTestingOnlyBackendTexture(nullptr, kSize, kSize, colorType, true, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 134 surf = SkSurface::MakeFromBackendTexture(ctxInfo.grContext(), backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 151 surf = SkSurface::MakeFromBackendTextureAsRenderTarget(ctxInfo.grContext(), backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 169 if (backendTex.isValid()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 170 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | GrTestingBackendTextureUploadTest.cpp | 38 GrBackendTexture backendTex = gpu->createTestingOnlyBackendTexture(srcBuffer, in testing_only_texture_test() local 44 if (!backendTex.isValid()) { in testing_only_texture_test() 51 backendTex, 1, GrWrapOwnership::kAdopt_GrWrapOwnership, GrWrapCacheable::kNo); in testing_only_texture_test() 53 wrappedTex = gpu->wrapBackendTexture(backendTex, GrWrapOwnership::kAdopt_GrWrapOwnership, in testing_only_texture_test()
|
D | PromiseImageTest.cpp | 144 GrBackendTexture backendTex = gpu->createTestingOnlyBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 146 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 148 GrBackendFormat backendFormat = backendTex.getBackendFormat(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 151 PromiseTextureChecker promiseChecker(backendTex, reporter, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 289 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 300 GrBackendTexture backendTex = gpu->createTestingOnlyBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 302 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 304 GrBackendFormat backendFormat = backendTex.getBackendFormat(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 307 PromiseTextureChecker promiseChecker(backendTex, reporter, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 411 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | EGLImageTest.cpp | 155 GrBackendTexture backendTex(kSize, kSize, GrMipMapped::kNo, externalTexture); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local 156 backendTex.setPixelConfig(kRGBA_8888_GrPixelConfig); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 161 backendTex, kBottomLeft_GrSurfaceOrigin, nullptr); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 183 backendTex, kBottomLeft_GrSurfaceOrigin, 1, nullptr); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
D | ResourceAllocatorTest.cpp | 61 GrBackendTexture* backendTex) { in make_backend() argument 65 *backendTex = gpu->createTestingOnlyBackendTexture(nullptr, p.fSize, p.fSize, in make_backend() 68 if (!backendTex->isValid()) { in make_backend() 72 auto tmp = proxyProvider->wrapBackendTexture(*backendTex, p.fOrigin, kBorrow_GrWrapOwnership, in make_backend() 85 static void cleanup_backend(GrContext* context, const GrBackendTexture& backendTex) { in cleanup_backend() argument 86 context->contextPriv().getGpu()->deleteTestingOnlyBackendTexture(backendTex); in cleanup_backend()
|
/external/skia/tests/ |
D | BackendSurfaceMutableStateTest.cpp | 27 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, newState, &previousState); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() [all …]
|
D | VkWrapTests.cpp | 59 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, 1, kBorrow_GrWrapOwnership, in wrap_trt_test() [all …]
|
D | GLBackendSurfaceTest.cpp | 58 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 …]
|
D | CompressedBackendAllocationTest.cpp | 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 = create(dContext, data.get(), dataSize, mipMapped); in test_compressed_data_init() local 239 if (!backendTex.isValid()) { in test_compressed_data_init() [all …]
|
D | PromiseImageTest.cpp | 133 GrBackendTexture backendTex = ctx->createBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 136 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 138 GrBackendFormat backendFormat = backendTex.getBackendFormat(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 141 PromiseTextureChecker promiseChecker(backendTex, reporter, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 194 ctx->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 283 GrBackendTexture backendTex = dContext->createBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 286 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 293 PromiseTextureChecker promiseChecker(backendTex, reporter, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 295 backendTex.getBackendFormat(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 344 dContext->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | ExtendedSkColorTypeTests.cpp | 198 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()
|
D | VkProtectedContextTest.cpp | 58 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()
|
D | BackendAllocationTest.cpp | 242 const GrBackendTexture& backendTex, in check_base_readbacks() argument 248 if (isRGB(backendTex.getBackendFormat())) { in check_base_readbacks() 272 backendTex, 1, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, nullptr); in check_base_readbacks() 275 backendTex, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, kRW_GrIOType); in check_base_readbacks() 281 auto swizzle = dContext->priv().caps()->getReadSwizzle(backendTex.getBackendFormat(), in check_base_readbacks() 356 const GrBackendTexture& backendTex, in check_mipmaps() argument 373 if (isRGB(backendTex.getBackendFormat())) { in check_mipmaps() 388 auto proxy = dContext->priv().proxyProvider()->wrapBackendTexture(backendTex, in check_mipmaps() 396 auto swizzle = dContext->priv().caps()->getReadSwizzle(backendTex.getBackendFormat(), in check_mipmaps() 557 void check_vk_tiling(const GrBackendTexture& backendTex) { in check_vk_tiling() argument [all …]
|
D | VkBackendSurfaceTest.cpp | 144 GrBackendTexture backendTex = dContext->createBackendTexture( 150 if (!backendTex.getVkImageInfo(&vkInfo)) { 184 dContext->deleteBackendTexture(backendTex);
|
D | EGLImageTest.cpp | 152 GrBackendTexture backendTex(kSize, kSize, GrMipmapped::kNo, externalTexture); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local 159 backendTex, kBorrow_GrWrapOwnership, GrWrapCacheable::kNo, kRW_GrIOType); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 189 backendTex, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
/external/skia/src/core/ |
D | SkSurfaceCharacterization.cpp | 131 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()
|
/external/skqp/tools/gpu/ |
D | ProxyUtils.cpp | 28 auto backendTex = context->contextPriv().getGpu()->createTestingOnlyBackendTexture( in MakeTextureProxyFromData() local 30 if (!backendTex.isValid()) { in MakeTextureProxyFromData() 36 backendTex, origin, 1, kAdopt_GrWrapOwnership, GrWrapCacheable::kNo); in MakeTextureProxyFromData() 39 backendTex, origin, kAdopt_GrWrapOwnership, GrWrapCacheable::kNo, kRW_GrIOType); in MakeTextureProxyFromData() 43 context->contextPriv().getGpu()->deleteTestingOnlyBackendTexture(backendTex); in MakeTextureProxyFromData()
|
/external/skqp/src/gpu/ |
D | GrGpu.cpp | 150 sk_sp<GrTexture> GrGpu::wrapBackendTexture(const GrBackendTexture& backendTex, in wrapBackendTexture() argument 156 if (!this->caps()->isConfigTexturable(backendTex.config())) { in wrapBackendTexture() 159 if (backendTex.width() > this->caps()->maxTextureSize() || in wrapBackendTexture() 160 backendTex.height() > this->caps()->maxTextureSize()) { in wrapBackendTexture() 163 return this->onWrapBackendTexture(backendTex, ownership, cacheable, ioType); in wrapBackendTexture() 166 sk_sp<GrTexture> GrGpu::wrapRenderableBackendTexture(const GrBackendTexture& backendTex, in wrapRenderableBackendTexture() argument 173 if (!this->caps()->isConfigTexturable(backendTex.config()) || in wrapRenderableBackendTexture() 174 !this->caps()->getRenderTargetSampleCount(sampleCnt, backendTex.config())) { in wrapRenderableBackendTexture() 178 if (backendTex.width() > this->caps()->maxRenderTargetSize() || in wrapRenderableBackendTexture() 179 backendTex.height() > this->caps()->maxRenderTargetSize()) { in wrapRenderableBackendTexture() [all …]
|
D | GrBackendTextureImageGenerator.cpp | 68 const GrBackendTexture& backendTex) in GrBackendTextureImageGenerator() argument 72 , fBackendTexture(backendTex) in GrBackendTextureImageGenerator() 73 , fConfig(backendTex.config()) in GrBackendTextureImageGenerator()
|
/external/skia/src/gpu/ |
D | GrGpu.cpp | 260 sk_sp<GrTexture> GrGpu::wrapBackendTexture(const GrBackendTexture& backendTex, in wrapBackendTexture() argument 270 if (!caps->isFormatTexturable(backendTex.getBackendFormat())) { in wrapBackendTexture() 273 if (backendTex.width() > caps->maxTextureSize() || in wrapBackendTexture() 274 backendTex.height() > caps->maxTextureSize()) { in wrapBackendTexture() 278 return this->onWrapBackendTexture(backendTex, ownership, cacheable, ioType); in wrapBackendTexture() 281 sk_sp<GrTexture> GrGpu::wrapCompressedBackendTexture(const GrBackendTexture& backendTex, in wrapCompressedBackendTexture() argument 289 if (!caps->isFormatTexturable(backendTex.getBackendFormat())) { in wrapCompressedBackendTexture() 292 if (backendTex.width() > caps->maxTextureSize() || in wrapCompressedBackendTexture() 293 backendTex.height() > caps->maxTextureSize()) { in wrapCompressedBackendTexture() 297 return this->onWrapCompressedBackendTexture(backendTex, ownership, cacheable); in wrapCompressedBackendTexture() [all …]
|
/external/skqp/src/gpu/mtl/ |
D | GrMtlGpu.mm | 315 static id<MTLTexture> get_texture_from_backend(const GrBackendTexture& backendTex, 318 if (!backendTex.getMtlTextureInfo(&textureInfo)) { 344 sk_sp<GrTexture> GrMtlGpu::onWrapBackendTexture(const GrBackendTexture& backendTex, 347 id<MTLTexture> mtlTexture = get_texture_from_backend(backendTex, ownership); 353 init_surface_desc(&surfDesc, mtlTexture, false, backendTex.config()); 358 sk_sp<GrTexture> GrMtlGpu::onWrapRenderableBackendTexture(const GrBackendTexture& backendTex, 362 id<MTLTexture> mtlTexture = get_texture_from_backend(backendTex, ownership); 368 init_surface_desc(&surfDesc, mtlTexture, true, backendTex.config()); 395 const GrBackendTexture& backendTex, int sampleCnt) { 396 id<MTLTexture> mtlTexture = get_texture_from_backend(backendTex, [all …]
|