Home
last modified time | relevance | path

Searched refs:skif (Results 1 – 16 of 16) sorted by relevance

/third_party/skia/src/effects/imagefilters/
DSkCropImageFilter.cpp35 skif::FilterResult onFilterImage(const skif::Context& context) const override;
37 skif::LayerSpace<SkIRect> onGetInputLayerBounds(
38 const skif::Mapping& mapping,
39 const skif::LayerSpace<SkIRect>& desiredOutput,
40 const skif::LayerSpace<SkIRect>& contentBounds,
43 skif::LayerSpace<SkIRect> onGetOutputLayerBounds(
44 const skif::Mapping& mapping,
45 const skif::LayerSpace<SkIRect>& contentBounds) const override;
50 skif::LayerSpace<SkIRect> cropRect(const skif::Mapping& mapping) const { in cropRect()
56 skif::ParameterSpace<SkRect> fCropRect;
[all …]
DSkComposeImageFilter.cpp81 Context innerContext = ctx.withNewDesiredOutput(skif::LayerSpace<SkIRect>(innerClipBounds)); in onFilterImage()
/third_party/skia/src/core/
DSkImageFilter_Base.h27 using Context = skif::Context;
40 skif::FilterResult filterImage(const skif::Context& context) const;
71 skif::LayerSpace<SkIRect> getInputBounds(
72 const skif::Mapping& mapping, const skif::DeviceSpace<SkIRect>& desiredOutput,
73 const skif::ParameterSpace<SkRect>* knownContentBounds) const;
99 skif::DeviceSpace<SkIRect> getOutputBounds(
100 const skif::Mapping& mapping, const skif::ParameterSpace<SkRect>& contentBounds) const;
226 skif::LayerSpace<SkIRect> visitInputLayerBounds(
227 const skif::Mapping& mapping, const skif::LayerSpace<SkIRect>& desiredOutput,
228 const skif::LayerSpace<SkIRect>& contentBounds) const;
[all …]
DSkImageFilter.cpp63 skif::Mapping mapping(SkMatrix::I(), ctm); in filterBounds()
65 skif::LayerSpace<SkIRect> targetOutput(src); in filterBounds()
67 skif::LayerSpace<SkIRect> outputCrop = mapping.paramToLayer( in filterBounds()
68 skif::ParameterSpace<SkRect>(as_IFB(this)->getCropRect().rect())).roundOut(); in filterBounds()
76 skif::LayerSpace<SkIRect> content(inputRect ? *inputRect : src); in filterBounds()
80 skif::LayerSpace<SkIRect> content(src); in filterBounds()
81 skif::LayerSpace<SkIRect> output = as_IFB(this)->onGetOutputLayerBounds(mapping, content); in filterBounds()
222 skif::FilterResult SkImageFilter_Base::filterImage(const skif::Context& context) const { in filterImage()
229 skif::FilterResult result; in filterImage()
257 skif::LayerSpace<SkIRect> SkImageFilter_Base::getInputBounds( in getInputBounds()
[all …]
DSkImageFilterCache.cpp38 Value(const Key& key, const skif::FilterResult& image, in Value()
43 skif::FilterResult fImage;
54 bool get(const Key& key, skif::FilterResult* result) const override { in get()
71 const skif::FilterResult& result) override { in set()
DSkCanvas.cpp690 static skif::ParameterSpace<SkPoint> compute_decomposition_center( in compute_decomposition_center()
692 const skif::ParameterSpace<SkRect>* contentBounds, in compute_decomposition_center()
693 const skif::DeviceSpace<SkIRect>& targetOutput) { in compute_decomposition_center()
703 return skif::ParameterSpace<SkPoint>(center); in compute_decomposition_center()
712 static std::pair<skif::Mapping, skif::LayerSpace<SkIRect>> get_layer_mapping_and_bounds( in get_layer_mapping_and_bounds()
715 const skif::DeviceSpace<SkIRect>& targetOutput, in get_layer_mapping_and_bounds()
716 const skif::ParameterSpace<SkRect>* contentBounds = nullptr, in get_layer_mapping_and_bounds()
720 return std::make_pair<skif::Mapping, skif::LayerSpace<SkIRect>>( in get_layer_mapping_and_bounds()
721 {}, skif::LayerSpace<SkIRect>::Empty()); in get_layer_mapping_and_bounds()
730 skif::ParameterSpace<SkPoint> center = in get_layer_mapping_and_bounds()
[all …]
DSkImageFilterCache.h63 skif::FilterResult* result) const = 0;
67 const skif::FilterResult& result) = 0;
DSkDevice.cpp332 void SkBaseDevice::drawFilteredImage(const skif::Mapping& mapping, SkSpecialImage* src, in drawFilteredImage()
337 skif::LayerSpace<SkIRect> targetOutput = mapping.deviceToLayer( in drawFilteredImage()
338 skif::DeviceSpace<SkIRect>(this->devClipBounds())); in drawFilteredImage()
351 skif::Context ctx(mapping, targetOutput, cache.get(), colorType, this->imageInfo().colorSpace(), in drawFilteredImage()
352 skif::FilterResult(sk_ref_sp(src))); in drawFilteredImage()
DSkImageFilterTypes.cpp27 namespace skif { namespace
30 const skif::ParameterSpace<SkPoint>& representativePt) { in decomposeCTM()
DSkDevice.h34 namespace skif { class Mapping; }
330 virtual void drawFilteredImage(const skif::Mapping& mapping, SkSpecialImage* src,
524 void drawFilteredImage(const skif::Mapping&, SkSpecialImage* src, const SkImageFilter*, in drawFilteredImage()
DSkLocalMatrixImageFilter.cpp50 skif::Mapping newMapping = ctx.mapping(); in onFilterImage()
DSkImageFilterTypes.h26 namespace skif {
439 const skif::ParameterSpace<SkPoint>& representativePt);
/third_party/skia/tests/
DImageFilterCacheTest.cpp52 cache->set(key1, filter.get(), skif::FilterResult(image, skif::LayerSpace<SkIPoint>(offset))); in test_find_existing()
54 skif::FilterResult foundImage; in test_find_existing()
80 cache->set(key0, filter.get(), skif::FilterResult(image, skif::LayerSpace<SkIPoint>(offset))); in test_dont_find_if_diff_key()
82 skif::FilterResult foundImage; in test_dont_find_if_diff_key()
101 cache->set(key1, filter1.get(), skif::FilterResult(image, skif::LayerSpace<SkIPoint>(offset))); in test_internal_purge()
103 skif::FilterResult foundImage; in test_internal_purge()
109 skif::FilterResult(image, skif::LayerSpace<SkIPoint>(offset))); in test_internal_purge()
130 skif::FilterResult(image, skif::LayerSpace<SkIPoint>(offset))); in test_explicit_purging()
132 skif::FilterResult(image, skif::LayerSpace<SkIPoint>(offset))); in test_explicit_purging()
135 skif::FilterResult foundImage; in test_explicit_purging()
/third_party/skia/samplecode/
DSampleImageFilterDAG.cpp45 skif::ParameterSpace<SkRect> fContent;
47 skif::Mapping fMapping;
51 skif::LayerSpace<SkIRect> fUnhintedLayerBounds;
56 skif::LayerSpace<SkIRect> fHintedLayerBounds;
60 skif::LayerSpace<SkIRect> fOutputBounds;
63 const skif::Mapping& mapping, in FilterNode()
64 const skif::ParameterSpace<SkRect>& content, in FilterNode()
86 skif::Mapping layerOnly = skif::Mapping(SkMatrix::I(), fMapping.layerMatrix()); in computeOutputBounds()
87 skif::DeviceSpace<SkIRect> pseudoDeviceBounds = in computeOutputBounds()
104 skif::DeviceSpace<SkIRect> targetOutput(fMapping.totalMatrix() in computeInputBounds()
[all …]
DSampleFilterBounds.cpp126 static void draw_scale_factors(SkCanvas* canvas, const skif::Mapping& mapping, const SkRect& rect) { in draw_scale_factors()
133 SkPoint(mapping.paramToLayer(skif::ParameterSpace<SkPoint>(testPoints[i])))); in draw_scale_factors()
196 skif::DeviceSpace<SkIRect> targetOutput(target); in onDrawContent()
197 skif::ParameterSpace<SkRect> contentBounds(localContentRect); in onDrawContent()
198 skif::ParameterSpace<SkPoint> contentCenter({localContentRect.centerX(), in onDrawContent()
200 skif::Mapping mapping; in onDrawContent()
221 skif::LayerSpace<SkIRect> targetOutputInLayer = mapping.deviceToLayer(targetOutput); in onDrawContent()
222 skif::LayerSpace<SkIRect> hintedLayerBounds = as_IFB(fBlur)->getInputBounds( in onDrawContent()
224 skif::LayerSpace<SkIRect> unhintedLayerBounds = as_IFB(fBlur)->getInputBounds( in onDrawContent()
235 skif::Mapping layerOnly(SkMatrix::I(), mapping.layerMatrix()); in onDrawContent()
[all …]
/third_party/skia/include/effects/
DSkImageFilters.h26 namespace skif {
41 CropRect() : fCropRect(skif::kNoCropRect) {} in CropRect()
44 CropRect(std::nullptr_t) : fCropRect(skif::kNoCropRect) {} in CropRect()
48 : skif::kNoCropRect) {} in CropRect()
50 : skif::kNoCropRect) {} in CropRect()
52 … operator const SkRect*() const { return fCropRect == skif::kNoCropRect ? nullptr : &fCropRect; }