/third_party/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 | 134 GrBackendTexture backendTex = ctx->createBackendTexture( 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() 195 ctx->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 284 GrBackendTexture backendTex = dContext->createBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 287 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 294 PromiseTextureChecker promiseChecker(backendTex, reporter, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 296 backendTex.getBackendFormat(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 345 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()
|
/third_party/flutter/skia/tests/ |
D | VkWrapTests.cpp | 57 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test() local 58 tex = gpu->wrapBackendTexture(backendTex, kGrColorType, kBorrow_GrWrapOwnership, in wrap_tex_test() 61 tex = gpu->wrapBackendTexture(backendTex, kGrColorType, kAdopt_GrWrapOwnership, in wrap_tex_test() 70 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test() local 71 tex = gpu->wrapBackendTexture(backendTex, kGrColorType, kBorrow_GrWrapOwnership, in wrap_tex_test() 74 tex = gpu->wrapBackendTexture(backendTex, kGrColorType, kAdopt_GrWrapOwnership, in wrap_tex_test() 82 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test() local 83 tex = gpu->wrapBackendTexture(backendTex, kGrColorType, kAdopt_GrWrapOwnership, in wrap_tex_test() 152 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_trt_test() local 153 tex = gpu->wrapRenderableBackendTexture(backendTex, 1, kGrColorType, in wrap_trt_test() [all …]
|
D | VkBackendSurfaceTest.cpp | 35 GrBackendTexture backendTex = context->createBackendTexture(1, 1, in DEF_GPUTEST_FOR_VULKAN_CONTEXT() local 41 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 44 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 49 GrBackendTexture backendTexCopy = backendTex; in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 55 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 62 backendTex.setVkImageLayout(initLayout); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 64 sk_sp<SkImage> wrappedImage = SkImage::MakeFromTexture(context, backendTex, in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 81 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 94 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 106 REPORTER_ASSERT(reporter, GrBackendTexture::TestingOnly_Equals(backendTex, backendTexCopy)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() [all …]
|
D | GLBackendSurfaceTest.cpp | 51 GrBackendTexture backendTex = context->createBackendTexture( in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS() local 53 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS() 56 REPORTER_ASSERT(reporter, backendTex.getGLTextureInfo(&info)); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS() 58 GrBackendTexture backendTexCopy = backendTex; in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS() 59 REPORTER_ASSERT(reporter, backendTexCopy.isSameTexture(backendTex)); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS() 62 SkImage::MakeFromTexture(context, backendTex, kTopLeft_GrSurfaceOrigin, in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS() 93 backendTex.glTextureParametersModified(); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS() 108 REPORTER_ASSERT(reporter, GrBackendTexture::TestingOnly_Equals(backendTex, backendTexCopy)); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS() 120 invalidTexture = backendTex; in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS() 122 REPORTER_ASSERT(reporter, GrBackendTexture::TestingOnly_Equals(invalidTexture, backendTex)); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS() [all …]
|
D | GrMipMappedTest.cpp | 44 GrBackendTexture backendTex = context->createBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 53 backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 63 image = SkImage::MakeFromTexture(context, backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 72 context->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 81 context->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 95 context->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 110 GrBackendTexture backendTex = context->createBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 114 sk_sp<SkImage> image = SkImage::MakeFromTexture(context, backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 123 context->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 132 context->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | BackendAllocationTest.cpp | 31 GrBackendTexture backendTex = create(context, mipMapped, renderable); in test_wrapping() local 32 if (!backendTex.isValid()) { in test_wrapping() 46 context->deleteBackendTexture(backendTex); in test_wrapping() 52 backendTex, in test_wrapping() 67 backendTex, in test_wrapping() 91 context->deleteBackendTexture(backendTex); in test_wrapping() 136 GrBackendTexture backendTex = create(context, color, mipMapped, renderable); in test_color_init() local 137 if (!backendTex.isValid()) { in test_color_init() 147 context->deleteBackendTexture(backendTex); in test_color_init() 181 backendTex, in test_color_init() [all …]
|
D | GrTestingBackendTextureUploadTest.cpp | 37 GrBackendTexture backendTex; in testing_only_texture_test() local 44 backendTex = context->priv().createBackendTexture(&expectedPixels, 1, in testing_only_texture_test() 47 backendTex = context->createBackendTexture(kWidth, kHeight, ct, SkColors::kTransparent, in testing_only_texture_test() 55 if (!backendTex.isValid()) { in testing_only_texture_test() 60 caps->supportedReadPixelsColorType(grCT, backendTex.getBackendFormat(), grCT); in testing_only_texture_test() 68 backendTex, kTopLeft_GrSurfaceOrigin, 1, grCT, kAdopt_GrWrapOwnership, in testing_only_texture_test() 72 backendTex, grCT, kTopLeft_GrSurfaceOrigin, kAdopt_GrWrapOwnership, in testing_only_texture_test()
|
D | PromiseImageTest.cpp | 170 GrBackendTexture backendTex = ctx->createBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 173 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 175 GrBackendFormat backendFormat = backendTex.getBackendFormat(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 178 PromiseTextureChecker promiseChecker(backendTex, reporter, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 232 ctx->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 364 GrBackendTexture backendTex = ctx->createBackendTexture( in DEF_GPUTEST() local 367 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST() 374 PromiseTextureChecker promiseChecker(backendTex, reporter, false); in DEF_GPUTEST() 376 ctx, backendTex.getBackendFormat(), kWidth, kHeight, GrMipMapped::kNo, in DEF_GPUTEST() 403 GrBackendTexture backendTex = ctx->createBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local [all …]
|
D | ProxyTest.cpp | 283 GrBackendTexture backendTex = in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 291 backendTex, grColorType, origin, supportedNumSamples); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 293 context->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 305 context->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 310 GrBackendTexture backendTex = in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 319 backendTex, origin, supportedNumSamples, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 323 context->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 335 context->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 341 GrBackendTexture backendTex = in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 350 backendTex, grColorType, origin, kBorrow_GrWrapOwnership, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | VkProtectedContextTest.cpp | 151 GrBackendTexture backendTex = grContext()->createBackendTexture( in createSkSurface() local 154 REPORTER_ASSERT(reporter, backendTex.isValid()); in createSkSurface() 155 REPORTER_ASSERT(reporter, backendTex.isProtected() == fIsProtected); in createSkSurface() 160 grContext(), backendTex, kTopLeft_GrSurfaceOrigin, 1, in createSkSurface() 188 GrBackendTexture backendTex = in DEF_GPUTEST() local 192 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST() 193 REPORTER_ASSERT(reporter, backendTex.isProtected()); in DEF_GPUTEST() 198 protectedTestHelper->grContext(), backendTex, kTopLeft_GrSurfaceOrigin, 1, in DEF_GPUTEST() 202 protectedTestHelper->grContext()->deleteBackendTexture(backendTex); in DEF_GPUTEST() 214 GrBackendTexture backendTex = in DEF_GPUTEST() local [all …]
|
D | SurfaceTest.cpp | 105 GrBackendTexture backendTex = context->createBackendTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 108 surf = SkSurface::MakeFromBackendTexture(context, backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 114 surf = SkSurface::MakeFromBackendTextureAsRenderTarget(context, backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 122 context->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 131 backendTex = context->createBackendTexture(kSize, kSize, colorType, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 135 surf = SkSurface::MakeFromBackendTexture(context, backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 146 storedCnt, backendTex.getBackendFormat()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 152 surf = SkSurface::MakeFromBackendTextureAsRenderTarget(context, backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 162 storedCnt, backendTex.getBackendFormat()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 170 context->deleteBackendTexture(backendTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | TestUtils.cpp | 100 bool create_backend_texture(GrContext* context, GrBackendTexture* backendTex, in create_backend_texture() argument 105 *backendTex = context->createBackendTexture(ii.width(), ii.height(), ii.colorType(), in create_backend_texture() 113 *backendTex = context->priv().createBackendTexture(&bm.pixmap(), 1, renderable, in create_backend_texture() 117 return backendTex->isValid(); in create_backend_texture() 120 void delete_backend_texture(GrContext* context, const GrBackendTexture& backendTex) { in delete_backend_texture() argument 124 context->deleteBackendTexture(backendTex); in delete_backend_texture()
|
D | TestUtils.h | 35 bool create_backend_texture(GrContext*, GrBackendTexture* backendTex, 39 void delete_backend_texture(GrContext*, const GrBackendTexture& backendTex);
|
/third_party/flutter/skia/src/core/ |
D | SkSurfaceCharacterization.cpp | 65 bool SkSurfaceCharacterization::isCompatible(const GrBackendTexture& backendTex) const { in isCompatible() 66 if (!this->isValid() || !backendTex.isValid()) { in isCompatible() 70 if (fBackendFormat != backendTex.getBackendFormat()) { in isCompatible() 83 if (this->isMipMapped() && !backendTex.hasMipMaps()) { in isCompatible() 89 if (this->width() != backendTex.width() || this->height() != backendTex.height()) { in isCompatible() 93 if (this->isProtected() != GrProtected(backendTex.isProtected())) { in isCompatible()
|
/third_party/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()
|
/third_party/flutter/skia/tools/gpu/ |
D | ProxyUtils.cpp | 39 auto backendTex = context->createBackendTexture( in MakeTextureProxyFromData() local 42 if (!backendTex.isValid()) { in MakeTextureProxyFromData() 49 backendTex, origin, 1, colorType, kAdopt_GrWrapOwnership, GrWrapCacheable::kNo, in MakeTextureProxyFromData() 53 backendTex, colorType, origin, kAdopt_GrWrapOwnership, in MakeTextureProxyFromData() 58 context->deleteBackendTexture(backendTex); in MakeTextureProxyFromData()
|
/third_party/skia/src/gpu/ |
D | GrGpu.cpp | 287 sk_sp<GrTexture> GrGpu::wrapBackendTexture(const GrBackendTexture& backendTex, in wrapBackendTexture() argument 297 if (!caps->isFormatTexturable(backendTex.getBackendFormat(), backendTex.textureType())) { in wrapBackendTexture() 300 if (backendTex.width() > caps->maxTextureSize() || in wrapBackendTexture() 301 backendTex.height() > caps->maxTextureSize()) { in wrapBackendTexture() 305 return this->onWrapBackendTexture(backendTex, ownership, cacheable, ioType); in wrapBackendTexture() 308 sk_sp<GrTexture> GrGpu::wrapCompressedBackendTexture(const GrBackendTexture& backendTex, in wrapCompressedBackendTexture() argument 316 if (!caps->isFormatTexturable(backendTex.getBackendFormat(), backendTex.textureType())) { in wrapCompressedBackendTexture() 319 if (backendTex.width() > caps->maxTextureSize() || in wrapCompressedBackendTexture() 320 backendTex.height() > caps->maxTextureSize()) { in wrapCompressedBackendTexture() 324 return this->onWrapCompressedBackendTexture(backendTex, ownership, cacheable); in wrapCompressedBackendTexture() [all …]
|
/third_party/flutter/skia/src/gpu/ |
D | GrGpu.cpp | 244 sk_sp<GrTexture> GrGpu::wrapBackendTexture(const GrBackendTexture& backendTex, in wrapBackendTexture() argument 254 if (!caps->isFormatTexturable(backendTex.getBackendFormat())) { in wrapBackendTexture() 257 if (backendTex.width() > caps->maxTextureSize() || in wrapBackendTexture() 258 backendTex.height() > caps->maxTextureSize()) { in wrapBackendTexture() 262 return this->onWrapBackendTexture(backendTex, colorType, ownership, cacheable, ioType); in wrapBackendTexture() 265 sk_sp<GrTexture> GrGpu::wrapRenderableBackendTexture(const GrBackendTexture& backendTex, in wrapRenderableBackendTexture() argument 276 if (!caps->isFormatTexturable(backendTex.getBackendFormat()) || in wrapRenderableBackendTexture() 277 !caps->isFormatRenderable(backendTex.getBackendFormat(), sampleCnt)) { in wrapRenderableBackendTexture() 281 if (backendTex.width() > caps->maxRenderTargetSize() || in wrapRenderableBackendTexture() 282 backendTex.height() > caps->maxRenderTargetSize()) { in wrapRenderableBackendTexture() [all …]
|
/third_party/flutter/skia/tools/ |
D | DDLPromiseImageHelper.cpp | 123 GrBackendTexture backendTex = context->priv().createBackendTexture( in uploadAllToGPU() local 127 callbackContext->setBackendTexture(backendTex); in uploadAllToGPU() 184 const GrBackendTexture& backendTex = curImage.promiseTexture(i)->backendTexture(); in PromiseImageCreator() local 185 backendFormats[i] = backendTex.getBackendFormat(); in PromiseImageCreator() 222 const GrBackendTexture& backendTex = curImage.promiseTexture(0)->backendTexture(); in PromiseImageCreator() local 223 GrBackendFormat backendFormat = backendTex.getBackendFormat(); in PromiseImageCreator()
|