/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 | 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 | 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 | 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 | 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 | 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 | 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 | ProxyTest.cpp | 274 GrBackendTexture backendTex = in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 279 backendTex, origin, supportedNumSamples); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 281 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 287 backendTex.pixelConfig(), SkBudgeted::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 293 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 298 GrBackendTexture backendTex = in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 304 backendTex, origin, supportedNumSamples, kBorrow_GrWrapOwnership, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 307 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 313 backendTex.pixelConfig(), SkBudgeted::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 319 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 | PromiseImageTest.cpp | 135 GrBackendTexture backendTex = gpu->createTestingOnlyBackendTexture( 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() 245 gpu->deleteTestingOnlyBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 378 GrBackendTexture backendTex = gpu->createTestingOnlyBackendTexture( in DEF_GPUTEST() local 380 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST() 387 PromiseTextureChecker promiseChecker(backendTex, reporter, false); in DEF_GPUTEST() 389 ctx, backendTex.getBackendFormat(), kWidth, kHeight, GrMipMapped::kNo, in DEF_GPUTEST() 426 GrBackendTexture backendTex = gpu->createTestingOnlyBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local [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 | 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->priv().getGpu()->deleteTestingOnlyBackendTexture(backendTex); in cleanup_backend()
|
/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/skia/tools/gpu/ |
D | ProxyUtils.cpp | 29 auto backendTex = context->priv().getGpu()->createTestingOnlyBackendTexture( in MakeTextureProxyFromData() local 31 if (!backendTex.isValid()) { in MakeTextureProxyFromData() 37 backendTex, origin, 1, kAdopt_GrWrapOwnership, GrWrapCacheable::kNo, nullptr, in MakeTextureProxyFromData() 41 backendTex, origin, kAdopt_GrWrapOwnership, GrWrapCacheable::kNo, kRW_GrIOType); in MakeTextureProxyFromData() 45 context->priv().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 …]
|
/external/skia/src/gpu/ |
D | GrGpu.cpp | 149 sk_sp<GrTexture> GrGpu::wrapBackendTexture(const GrBackendTexture& backendTex, in wrapBackendTexture() argument 155 if (!this->caps()->isConfigTexturable(backendTex.config())) { in wrapBackendTexture() 158 if (backendTex.width() > this->caps()->maxTextureSize() || in wrapBackendTexture() 159 backendTex.height() > this->caps()->maxTextureSize()) { in wrapBackendTexture() 162 return this->onWrapBackendTexture(backendTex, ownership, cacheable, ioType); in wrapBackendTexture() 165 sk_sp<GrTexture> GrGpu::wrapRenderableBackendTexture(const GrBackendTexture& backendTex, in wrapRenderableBackendTexture() argument 172 if (!this->caps()->isConfigTexturable(backendTex.config()) || in wrapRenderableBackendTexture() 173 !this->caps()->getRenderTargetSampleCount(sampleCnt, backendTex.config())) { in wrapRenderableBackendTexture() 177 if (backendTex.width() > this->caps()->maxRenderTargetSize() || in wrapRenderableBackendTexture() 178 backendTex.height() > this->caps()->maxRenderTargetSize()) { in wrapRenderableBackendTexture() [all …]
|
D | GrAHardwareBufferImageGenerator.cpp | 157 GrBackendTexture backendTex = in makeProxy() local 165 if (!backendTex.isValid()) { in makeProxy() 170 backendTex.fConfig = pixelConfig; in makeProxy() 175 backendTex, kBorrow_GrWrapOwnership, GrWrapCacheable::kYes, kRead_GrIOType); in makeProxy()
|
/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 …]
|
/external/skia/src/gpu/mtl/ |
D | GrMtlGpu.mm | 374 static id<MTLTexture> get_texture_from_backend(const GrBackendTexture& backendTex, 377 if (!backendTex.getMtlTextureInfo(&textureInfo)) { 403 sk_sp<GrTexture> GrMtlGpu::onWrapBackendTexture(const GrBackendTexture& backendTex, 406 id<MTLTexture> mtlTexture = get_texture_from_backend(backendTex, ownership); 412 init_surface_desc(&surfDesc, mtlTexture, false, backendTex.config()); 417 sk_sp<GrTexture> GrMtlGpu::onWrapRenderableBackendTexture(const GrBackendTexture& backendTex, 421 id<MTLTexture> mtlTexture = get_texture_from_backend(backendTex, ownership); 427 init_surface_desc(&surfDesc, mtlTexture, true, backendTex.config()); 454 const GrBackendTexture& backendTex, int sampleCnt) { 455 id<MTLTexture> mtlTexture = get_texture_from_backend(backendTex, [all …]
|