Home
last modified time | relevance | path

Searched refs:as_IFB (Results 1 – 22 of 22) sorted by relevance

/third_party/skia/src/core/
DSkImageFilter.cpp43 int SkImageFilter::countInputs() const { return as_IFB(this)->fInputs.count(); } in countInputs()
51 return as_IFB(this)->fInputs[i].get(); in getInput()
55 return as_IFB(this)->onIsColorFilterNode(filterPtr); in isColorFilterNode()
66 if (as_IFB(this)->cropRectIsSet()) { in filterBounds()
68 skif::ParameterSpace<SkRect>(as_IFB(this)->getCropRect().rect())).roundOut(); in filterBounds()
77 return SkIRect(as_IFB(this)->onGetInputLayerBounds(mapping, targetOutput, content)); in filterBounds()
81 skif::LayerSpace<SkIRect> output = as_IFB(this)->onGetOutputLayerBounds(mapping, content); in filterBounds()
84 as_IFB(this)->getCropRect().applyTo( in filterBounds()
85 SkIRect(output), ctm, as_IFB(this)->onAffectsTransparentBlack(), &dst); in filterBounds()
107 return !as_IFB(this)->affectsTransparentBlack(); in canComputeFastBounds()
[all …]
DSkImageFilter_Base.h439 static inline SkImageFilter_Base* as_IFB(SkImageFilter* filter) { in as_IFB() function
443 static inline SkImageFilter_Base* as_IFB(const sk_sp<SkImageFilter>& filter) { in as_IFB() function
447 static inline const SkImageFilter_Base* as_IFB(const SkImageFilter* filter) { in as_IFB() function
DSkLocalMatrixImageFilter.cpp21 MatrixCapability inputCapability = as_IFB(input)->getCTMCapability(); in Make()
DSkImageFilterTypes.cpp35 filter ? as_IFB(filter)->getCTMCapability() : MatrixCapability::kComplex; in decomposeCTM()
DSkDevice.cpp355 sk_sp<SkSpecialImage> result = as_IFB(filter)->filterImage(ctx).imageAndOffset(&offset); in drawFilteredImage()
DSkRecordDraw.cpp319 as_IFB(paint->getImageFilter())->affectsTransparentBlack()) || in PaintMayAffectTransparentBlack()
DSkCanvas.cpp763 layerBounds = as_IFB(filter)->getInputBounds(mapping, targetOutput, contentBounds); in get_layer_mapping_and_bounds()
768 auto idealLayerBounds = as_IFB(filter)->getInputBounds(idealMapping, targetOutput, in get_layer_mapping_and_bounds()
/third_party/flutter/skia/src/core/
DSkImageFilter.cpp46 int SkImageFilter::countInputs() const { return as_IFB(this)->fInputs.count(); } in countInputs()
54 return as_IFB(this)->fInputs[i].get(); in getInput()
58 return as_IFB(this)->onIsColorFilterNode(filterPtr); in isColorFilterNode()
64 SkIRect bounds = as_IFB(this)->onFilterNodeBounds(src, ctm, direction, inputRect); in filterBounds()
65 return as_IFB(this)->onFilterBounds(bounds, ctm, direction, &bounds); in filterBounds()
68 SkIRect bounds = as_IFB(this)->onFilterBounds(src, ctm, direction, nullptr); in filterBounds()
69 bounds = as_IFB(this)->onFilterNodeBounds(bounds, ctm, direction, nullptr); in filterBounds()
71 as_IFB(this)->getCropRect().applyTo( in filterBounds()
72 bounds, ctm, as_IFB(this)->affectsTransparentBlack(), &dst); in filterBounds()
94 if (as_IFB(this)->affectsTransparentBlack()) { in canComputeFastBounds()
[all …]
DSkImageFilter_Base.h291 static inline SkImageFilter_Base* as_IFB(SkImageFilter* filter) { in as_IFB() function
295 static inline SkImageFilter_Base* as_IFB(const sk_sp<SkImageFilter>& filter) { in as_IFB() function
299 static inline const SkImageFilter_Base* as_IFB(const SkImageFilter* filter) { in as_IFB() function
DSkLocalMatrixImageFilter.cpp21 if (!as_IFB(input)->canHandleComplexCTM() && !localM.isScaleTranslate()) { in Make()
DSkCanvas.cpp910 sk_sp<SkImageFilter> modifiedFilter = as_IFB(filter)->applyCTMForBackdrop(ctm, &localCTM); in DrawDeviceWithFilter()
918 SkASSERT(localCTM.isScaleTranslate() || as_IFB(filter)->canHandleComplexCTM() || in DrawDeviceWithFilter()
986 sk_sp<SkImageFilter> modifiedFilter = as_IFB(imageFilter)->applyCTM(stashedMatrix, in internalSaveLayer()
988 if (as_IFB(modifiedFilter)->uniqueID() != as_IFB(imageFilter)->uniqueID()) { in internalSaveLayer()
990 SkASSERT(modifiedCTM.isScaleTranslate() || as_IFB(imageFilter)->canHandleComplexCTM()); in internalSaveLayer()
DSkBitmapDevice.cpp631 filteredImage = as_IFB(filter)->filterImage(ctx, &offset); in drawSpecial()
/third_party/flutter/skia/samplecode/
DSampleImageFilterDAG.cpp125 fForwardIsolatedBounds = as_IFB(fFilter)->filterNodeBounds( in computeForwardBounds()
140 fReverseLocalIsolatedBounds = as_IFB(fFilter)->filterNodeBounds( in computeReverseLocalIsolatedBounds()
183 nextSrcRect = as_IFB(fFilter)->filterNodeBounds( in computeReverseBounds()
242 sk_sp<SkImageFilter> finalFilter = as_IFB(rootFilter)->applyCTM(ctm, &local); in build_dag()
249 if (as_IFB(rootFilter)->uniqueID() != as_IFB(finalFilter)->uniqueID()) { in build_dag()
/third_party/skia/samplecode/
DSampleFilterBounds.cpp222 skif::LayerSpace<SkIRect> hintedLayerBounds = as_IFB(fBlur)->getInputBounds( in onDrawContent()
224 skif::LayerSpace<SkIRect> unhintedLayerBounds = as_IFB(fBlur)->getInputBounds( in onDrawContent()
236 skif::DeviceSpace<SkIRect> hintedOutputBounds = as_IFB(fBlur)->getOutputBounds( in onDrawContent()
DSampleImageFilterDAG.cpp88 as_IFB(fFilter)->getOutputBounds(layerOnly, fContent); in computeOutputBounds()
109 fHintedLayerBounds = as_IFB(fFilter)->getInputBounds(fMapping, targetOutput, &fContent); in computeInputBounds()
110 fUnhintedLayerBounds = as_IFB(fFilter)->getInputBounds(fMapping, targetOutput, nullptr); in computeInputBounds()
/third_party/skia/tests/
DImageFilterTest.cpp492 sk_sp<SkSpecialImage> resultImg(as_IFB(filter)->filterImage(ctx).imageAndOffset(&offset)); in test_cropRects()
532 as_IFB(positiveFilter)->filterImage(ctx).imageAndOffset(&offset)); in test_negative_blur_sigma()
536 as_IFB(negativeFilter)->filterImage(ctx).imageAndOffset(&offset)); in test_negative_blur_sigma()
545 as_IFB(positiveFilter)->filterImage(negativeCTX).imageAndOffset(&offset)); in test_negative_blur_sigma()
549 as_IFB(negativeFilter)->filterImage(negativeCTX).imageAndOffset(&offset)); in test_negative_blur_sigma()
625 as_IFB(filter)->filterImage(ctx).imageAndOffset(&offset)); in test_morphology_radius_with_mirror_ctm()
635 as_IFB(filter)->filterImage(mirrorXCTX).imageAndOffset(&offset)); in test_morphology_radius_with_mirror_ctm()
645 as_IFB(filter)->filterImage(mirrorYCTX).imageAndOffset(&offset)); in test_morphology_radius_with_mirror_ctm()
697 sk_sp<SkSpecialImage> result(as_IFB(filter)->filterImage(ctx).imageAndOffset(&offset)); in test_zero_blur_sigma()
739 sk_sp<SkSpecialImage> result(as_IFB(greenFilter)->filterImage(ctx).imageAndOffset(&offset)); in test_fail_affects_transparent_black()
[all …]
/third_party/flutter/skia/gm/
Doffsetimagefilter.cpp130 if (imgf && as_IFB(imgf)->cropRectIsSet()) { in doDraw()
131 SkImageFilter::CropRect cr = as_IFB(imgf)->getCropRect(); in doDraw()
/third_party/flutter/skia/tests/
DImageFilterTest.cpp488 sk_sp<SkSpecialImage> resultImg(as_IFB(filter)->filterImage(ctx, &offset)); in test_cropRects()
512 as_IFB(positiveFilter)->filterImage(ctx, &offset)); in test_negative_blur_sigma()
516 as_IFB(negativeFilter)->filterImage(ctx, &offset)); in test_negative_blur_sigma()
525 as_IFB(positiveFilter)->filterImage(negativeCTX, &offset)); in test_negative_blur_sigma()
529 as_IFB(negativeFilter)->filterImage(negativeCTX, &offset)); in test_negative_blur_sigma()
588 sk_sp<SkSpecialImage> result(as_IFB(filter)->filterImage(ctx, &offset)); in test_zero_blur_sigma()
629 sk_sp<SkSpecialImage> result(as_IFB(greenFilter)->filterImage(ctx, &offset)); in test_fail_affects_transparent_black()
910 sk_sp<SkSpecialImage> resultImg(as_IFB(merge)->filterImage(ctx, &offset)); in test_imagefilter_merge_result_size()
1067 sk_sp<SkSpecialImage> resultImg(as_IFB(filter)->filterImage(ctx, &offset)); in test_big_kernel()
1140 sk_sp<SkSpecialImage> resultImage(as_IFB(imageFilter)->filterImage(ctx, &offset)); in test_clipped_picture_imagefilter()
[all …]
/third_party/flutter/skia/src/image/
DSkImage.cpp296 sk_sp<SkSpecialImage> result = as_IFB(filter)->filterImage(context, offset); in makeWithFilter()
/third_party/skia/src/image/
DSkImage.cpp547 sk_sp<SkSpecialImage> result = as_IFB(filter)->filterImage(context).imageAndOffset(offset); in makeWithFilter()
/third_party/flutter/skia/src/gpu/
DSkGpuDevice.cpp183 return as_IFB(filter)->filterImage(ctx, offset); in filterTexture()
/third_party/flutter/skia/src/pdf/
DSkPDFDevice.cpp1735 sk_sp<SkSpecialImage> resultImg(as_IFB(filter)->filterImage(ctx, &offset)); in drawSpecial()