Lines Matching defs:mapping
713 // Null filters are permitted and act as the identity. The returned mapping will be compatible with
743 // Determine initial mapping and a reasonable maximum dimension to prevent layer-to-device
745 skif::Mapping mapping;
746 if (!mapping.decomposeCTM(localToDst, filter, center)) {
752 !mapping.adjustLayerSpace(SkMatrix::Scale(scaleFactor, scaleFactor))) {
756 // Perspective and skew could exceed this since mapping.deviceToLayer(targetOutput) is
768 layerBounds = as_IFB(filter)->getInputBounds(mapping, targetOutput, contentBounds);
772 skif::Mapping idealMapping(SkMatrix::I(), mapping.layerMatrix());
779 layerBounds = mapping.deviceToLayer(targetOutput);
783 skif::LayerSpace<SkIRect> knownBounds = mapping.paramToLayer(*contentBounds).roundOut();
797 if (!mapping.adjustLayerSpace(adjust)) {
804 return {mapping, layerBounds};
850 skif::Mapping mapping;
856 mapping = skif::Mapping(src->getRelativeTransform(*dst), localToSrc);
860 // Compute the image filter mapping by decomposing the local->device matrix of dst and
862 std::tie(mapping, requiredInput) = get_layer_mapping_and_bounds(
869 // The above mapping transforms from local to dst's device space, where the layer space
875 srcToIntermediate.postConcat(mapping.layerMatrix());
878 // automatically when taking a subset of src if we update the mapping.
881 mapping.applyOrigin(srcOrigin);
899 mapping.applyOrigin(srcSubset.topLeft());
942 mapping.applyOrigin(requiredInput.topLeft());
947 const bool use_nn = draw_layer_as_sprite(mapping.deviceMatrix(),
951 dst->drawFilteredImage(mapping, filterInput.get(), filter, sampling, paint);
953 dst->drawSpecial(filterInput.get(), mapping.deviceMatrix(), sampling, paint);
1105 // Configure device to match determined mapping for any image filters.
1115 // mapping until being combined with the previous device-to-global matrix, at which point
2232 skif::Mapping mapping(layerToDevice, SkMatrix::Translate(-x, -y));
2235 device->drawFilteredImage(mapping, special.get(), filter.get(), sampling,realPaint);