Home
last modified time | relevance | path

Searched refs:as_IB (Results 1 – 25 of 53) sorted by relevance

123

/third_party/flutter/skia/src/image/
DSkImage.cpp48 return as_IB(this)->onPeekPixels(pm); in peekPixels()
53 return as_IB(this)->onReadPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY, chint); in readPixels()
65 if (as_IB(this)->getROPixels(&bm, chint)) { in scalePixels()
93 if (as_IB(this)->getROPixels(&bm)) { in encodeToData()
108 return sk_sp<SkData>(as_IB(this)->onRefEncoded()); in refEncodedData()
138 return as_IB(this)->onMakeSubset(as_IB(this)->context(), subset); in makeSubset()
140 return as_IB(this)->onMakeSubset(nullptr, subset); in makeSubset()
147 return as_IB(this)->onGetTexture(); in getTexture()
150 bool SkImage::isTextureBacked() const { return as_IB(this)->onIsTextureBacked(); } in isTextureBacked()
154 return as_IB(this)->onGetBackendTexture(flushPendingGrContextIO, origin); in getBackendTexture()
[all …]
DSkImage_Base.h116 static inline SkImage_Base* as_IB(SkImage* image) { in as_IB() function
120 static inline SkImage_Base* as_IB(const sk_sp<SkImage>& image) { in as_IB() function
124 static inline const SkImage_Base* as_IB(const SkImage* image) { in as_IB() function
DSkImage_Gpu.cpp377 if (!as_IB(this)->context()->priv().matches(context)) { in makeTextureImage()
381 sk_sp<GrTextureProxy> proxy = as_IB(this)->asTextureProxyRef(context); in makeTextureImage()
399 if (const SkBitmap* bmp = as_IB(this)->onPeekBitmap()) { in makeTextureImage()
650 ctx->priv().flushSurface(as_IB(image)->peekProxy()); in MakeBackendTextureFromSkImage()
658 image = as_IB(image)->onMakeSubset(ctx, image->bounds()); in MakeBackendTextureFromSkImage()
669 ctx->priv().flushSurface(as_IB(image)->peekProxy()); in MakeBackendTextureFromSkImage()
/third_party/skia/src/image/
DSkImage.cpp57 return as_IB(this)->onPeekPixels(pm); in peekPixels()
62 return as_IB(this)->onReadPixels(dContext, dstInfo, dstPixels, dstRowBytes, srcX, srcY, chint); in readPixels()
68 auto dContext = as_IB(this)->directContext(); in readPixels()
84 as_IB(this)->onAsyncRescaleAndReadPixels( in asyncRescaleAndReadPixels()
101 as_IB(this)->onAsyncRescaleAndReadPixelsYUV420(yuvColorSpace, in asyncRescaleAndReadPixelsYUV420()
114 auto dContext = as_IB(this)->directContext(); in scalePixels()
123 if (as_IB(this)->getROPixels(dContext, &bm, chint)) { in scalePixels()
153 auto dContext = as_IB(this)->directContext(); in encodeToData()
155 if (as_IB(this)->getROPixels(dContext, &bm)) { in encodeToData()
170 return sk_sp<SkData>(as_IB(this)->onRefEncoded()); in refEncodedData()
[all …]
DSkImage_Base.h222 static inline SkImage_Base* as_IB(SkImage* image) { in as_IB() function
226 static inline SkImage_Base* as_IB(const sk_sp<SkImage>& image) { in as_IB() function
230 static inline const SkImage_Base* as_IB(const SkImage* image) { in as_IB() function
DSkImage_Gpu.cpp543 if (!as_IB(this)->context()->priv().matches(dContext)) { in makeTextureImage()
555 auto [view, ct] = as_IB(this)->asView(dContext, mipmapped, policy); in makeTextureImage()
785 auto [view, ct] = as_IB(image)->asView(direct, GrMipmapped::kNo); in MakeBackendTextureFromSkImage()
803 image = as_IB(image)->onMakeSubset(image->bounds(), direct); in MakeBackendTextureFromSkImage()
/third_party/skia/tools/gpu/
DProxyUtils.cpp32 if (!image->isTextureBacked() || as_IB(image)->isYUVA()) { in GetTextureImageProxy()
37 GrImageContext* iContext = as_IB(image)->context(); in GetTextureImageProxy()
44 auto [view, ct] = as_IB(image)->asView(rContext, GrMipmapped::kNo); in GetTextureImageProxy()
/third_party/flutter/skia/tests/
DSurfaceTest.cpp496 REPORTER_ASSERT(reporter, as_IB(image4)->getTexture() != as_IB(image3)->getTexture()); in test_crbug263329()
498 REPORTER_ASSERT(reporter, as_IB(image4)->getTexture() != as_IB(image2)->getTexture()); in test_crbug263329()
499 REPORTER_ASSERT(reporter, as_IB(image4)->getTexture() != as_IB(image1)->getTexture()); in test_crbug263329()
500 REPORTER_ASSERT(reporter, as_IB(image3)->getTexture() != as_IB(image2)->getTexture()); in test_crbug263329()
501 REPORTER_ASSERT(reporter, as_IB(image3)->getTexture() != as_IB(image1)->getTexture()); in test_crbug263329()
502 REPORTER_ASSERT(reporter, as_IB(image2)->getTexture() != as_IB(image1)->getTexture()); in test_crbug263329()
515 REPORTER_ASSERT(reporter, !as_IB(image)->isTextureBacked()); in DEF_TEST()
517 REPORTER_ASSERT(reporter, !as_IB(image)->isTextureBacked()); in DEF_TEST()
524 REPORTER_ASSERT(reporter, as_IB(image)->isTextureBacked()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
528 REPORTER_ASSERT(reporter, as_IB(image)->isTextureBacked()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DImageTest.cpp407 GrContext* imageContext = as_IB(image)->context(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
420 as_IB(texImage)->peekProxy()->mipMapped() != mipMapped && in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
426 GrSurfaceProxy* origProxy = as_IB(image)->peekProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
427 GrSurfaceProxy* copyProxy = as_IB(texImage)->peekProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
970 sk_sp<GrTextureProxy> proxy = as_IB(refImg)->asTextureProxyRef( in test_cross_context_image()
976 sk_sp<GrTextureProxy> otherProxy = as_IB(refImg)->asTextureProxyRef( in test_cross_context_image()
982 sk_sp<GrTextureProxy> proxySecondRef = as_IB(refImg)->asTextureProxyRef( in test_cross_context_image()
992 otherProxy = as_IB(refImg)->asTextureProxyRef(otherCtx, GrSamplerState::ClampNearest(), in test_cross_context_image()
1002 otherProxy = as_IB(refImg)->asTextureProxyRef(otherCtx, GrSamplerState::ClampNearest(), in test_cross_context_image()
1044 sk_sp<GrTextureProxy> proxy = as_IB(image)->asTextureProxyRef( in DEF_GPUTEST()
[all …]
DGrMipMappedTest.cpp68 proxy = as_IB(image)->asTextureProxyRef(context); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
120 GrTextureProxy* proxy = as_IB(image)->peekProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
288 texProxy = as_IB(image)->peekProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DSkResourceCacheTest.cpp53 mipmap = SkMipMapCache::AddAndRef(as_IB(img.get()), cache); in test_mipmapcache()
90 SkMipMapCache::AddAndRef(as_IB(img[i].get()), cache)->unref(); in test_mipmap_notify()
/third_party/flutter/skia/src/gpu/
DSkGpuDevice_drawTexture.cpp386 if (as_IB(image)->isYUVA()) { in drawImageQuad()
400 if (sk_sp<GrTextureProxy> proxy = as_IB(image)->refPinnedTextureProxy(this->context(), in drawImageQuad()
406 SkColorSpace* colorSpace = as_IB(image)->colorSpace(); in drawImageQuad()
428 if (!as_IB(image)->getROPixels(&bm)) { in drawImageQuad()
448 if (as_IB(image)->getROPixels(&bm)) { in drawImageQuad()
519 const SkImage_Base* image = as_IB(set[i].fImage.get()); in drawEdgeAAImageSet()
DGrImageTextureMaker.cpp53 SkASSERT(as_IB(client)->isYUVA()); in GrYUVAImageTextureMaker()
/third_party/skia/gm/
Dimage_pict.cpp177 std::tie(fView, std::ignore) = as_IB(image)->asView(rContext, GrMipmapped::kNo); in TextureGenerator()
295 if (as_IB(image)->getROPixels(dContext, &bitmap)) { in draw_as_bitmap()
305 auto [view, ct] = as_IB(image)->asView(canvas->recordingContext(), GrMipmapped::kNo); in draw_as_tex()
/third_party/flutter/skia/gm/
Dimage_pict.cpp180 fProxy = as_IB(image)->asTextureProxyRef(fCtx.get()); in TextureGenerator()
266 as_IB(image)->getROPixels(&bitmap); in draw_as_bitmap()
271 sk_sp<GrTextureProxy> proxy(as_IB(image)->asTextureProxyRef( in draw_as_tex()
/third_party/skia/src/pdf/
DSkKeyedImage.cpp16 if (const SkBitmap* bm = as_IB(image)->onPeekBitmap()) { in SkBitmapKeyFromImage()
/third_party/flutter/skia/src/pdf/
DSkKeyedImage.cpp16 if (const SkBitmap* bm = as_IB(image)->onPeekBitmap()) { in SkBitmapKeyFromImage()
/third_party/skia/src/gpu/v1/
DDevice_drawTexture.cpp660 *as_IB(image.get()), in draw_tiled_bitmap()
788 if (!image->isTextureBacked() && !as_IB(image)->isPinnedOnContext(fContext.get())) { in drawImageQuad()
813 if (SkBitmap bm; as_IB(image)->getROPixels(nullptr, &bm)) { in drawImageQuad()
839 *as_IB(image), in drawImageQuad()
929 const SkImage_Base* image = as_IB(set[i].fImage.get()); in drawEdgeAAImageSet()
/third_party/skia/tests/
DSkResourceCacheTest.cpp52 mipmap = SkMipmapCache::AddAndRef(as_IB(img.get()), cache); in test_mipmapcache()
89 SkMipmapCache::AddAndRef(as_IB(img[i].get()), cache)->unref(); in test_mipmap_notify()
DImageTest.cpp416 auto imageContext = as_IB(image)->context(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
1001 std::tie(view, std::ignore) = as_IB(refImg)->asView(dContext, GrMipmapped::kNo); in test_cross_context_image()
1006 std::tie(otherView, std::ignore) = as_IB(refImg)->asView(otherCtx, GrMipmapped::kNo); in test_cross_context_image()
1011 std::tie(viewSecondRef, std::ignore) = as_IB(refImg)->asView(dContext, in test_cross_context_image()
1021 std::tie(otherView, std::ignore) = as_IB(refImg)->asView(otherCtx, GrMipmapped::kNo); in test_cross_context_image()
1030 std::tie(otherView, std::ignore) = as_IB(refImg)->asView(otherCtx, GrMipmapped::kNo); in test_cross_context_image()
1071 auto [view, viewCT] = as_IB(image)->asView(dContext, GrMipmapped::kNo); in DEF_GPUTEST()
1477 REPORTER_ASSERT(reporter, static_cast<SkImage_GpuYUVA*>(as_IB(i2.get()))->isTextureBacked()); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
/third_party/flutter/skia/src/core/
DSkSpecialImage.cpp208 if (sk_sp<GrTextureProxy> proxy = as_IB(image)->asTextureProxyRef(context)) { in MakeFromImage()
209 if (!as_IB(image)->context()->priv().matches(context)) { in MakeFromImage()
219 if (as_IB(image)->getROPixels(&bm)) { in MakeFromImage()
DSkPictureImageGenerator.cpp122 sk_sp<GrTextureProxy> proxy = as_IB(image)->asTextureProxyRef(ctx); in onGenerateTexture()
/third_party/skia/src/core/
DSkMipmapAccessor.cpp103 auto* access = alloc->make<SkMipmapAccessor>(as_IB(image), inv, mipmap); in Make()
DSkPictureImageGenerator.cpp123 auto [view, ct] = as_IB(image)->asView(ctx, mipmapped); in onGenerateTexture()
/third_party/flutter/skia/src/shaders/
DSkImageShader.cpp137 as_IB(fImage.get()), rec, alloc); in onMakeContext()
225 sk_sp<GrTextureProxy> proxy(as_IB(fImage)->asTextureProxyRef(args.fContext, samplerState, in asFragmentProcessor()
334 const auto* state = SkBitmapController::RequestBitmap(as_IB(fImage.get()), in doStages()

123