Lines Matching defs:src

26 #include "src/core/SkArenaAlloc.h"
27 #include "src/core/SkBitmapDevice.h"
28 #include "src/core/SkCanvasPriv.h"
29 #include "src/core/SkClipStack.h"
30 #include "src/core/SkColorFilterBase.h"
31 #include "src/core/SkDraw.h"
32 #include "src/core/SkGlyphRun.h"
33 #include "src/core/SkImageFilterCache.h"
34 #include "src/core/SkImageFilter_Base.h"
35 #include "src/core/SkLatticeIter.h"
36 #include "src/core/SkMSAN.h"
37 #include "src/core/SkMarkerStack.h"
38 #include "src/core/SkMatrixPriv.h"
39 #include "src/core/SkMatrixUtils.h"
40 #include "src/core/SkPaintPriv.h"
41 #include "src/core/SkRasterClip.h"
42 #include "src/core/SkSpecialImage.h"
43 #include "src/core/SkStrikeCache.h"
44 #include "src/core/SkTLazy.h"
45 #include "src/core/SkTextFormatParams.h"
46 #include "src/core/SkTraceEvent.h"
47 #include "src/core/SkVerticesPriv.h"
48 #include "src/image/SkImage_Base.h"
49 #include "src/image/SkSurface_Base.h"
50 #include "src/utils/SkPatchUtils.h"
56 #include "src/core/SkPathComplexityDfx.h"
61 #include "src/gpu/BaseDevice.h"
62 #include "src/gpu/SkGr.h"
64 # include "src/gpu/GrRenderTarget.h"
65 # include "src/gpu/GrRenderTargetProxy.h"
292 * 2. Generate the src pixels:
298 * src pixels of the primitive). It returns a new "filtered" buffer, which we
685 // In our current design/features, we should never have a layer (src) in a different colorspace
689 static void check_drawdevice_colorspaces(SkColorSpace* src, SkColorSpace* dst) {
690 SkASSERT(src == dst);
829 void SkCanvas::internalDrawDeviceWithFilter(SkBaseDevice* src,
836 src->imageInfo().colorSpace());
838 // 'filter' sees the src device's buffer as the implicit input image, and processes the image
841 // was set on 'src' (e.g. because we've popped src off the stack already).
843 SkMatrix localToSrc = (src->globalToDevice() * fMCRec->fMatrix).asM33();
844 SkISize srcDims = src->imageInfo().dimensions();
846 // Whether or not we need to make a transformed tmp image from 'src', and what that transform is
853 // Just use the relative transform from src to dst and the src's whole image, since
856 mapping = skif::Mapping(src->getRelativeTransform(*dst), localToSrc);
870 // represents the intermediate buffer. Now we need to determine the transform from src to
877 // src differs from intermediate by just an integer translation, so it can be applied
878 // automatically when taking a subset of src if we update the mapping.
884 // The contents of 'src' will be drawn to an intermediate buffer using srcToIntermediate
892 // The src device can be snapped directly
895 filterInput = src->snapSpecial(SkIRect(srcSubset));
902 // We need to produce a temporary image that is equivalent to 'src' but transformed to
918 (srcImage = src->snapSpecial(srcSubset))) {
921 SkBaseDevice::CreateInfo info(make_layer_info(src->imageInfo(), requiredInput.width(),
926 sk_sp<SkBaseDevice> intermediateDevice(src->onCreateDevice(info, &paint));
985 SkColorFilters::Blend(/* src */ paint->getColor(), SkBlendMode::kDstIn),
1134 this->internalDrawDeviceWithFilter(priorDevice, // src
1235 this->internalDrawDeviceWithFilter(layer->fDevice.get(), // src
1624 bool SkCanvas::quickReject(const SkRect& src) const {
1630 SkRect devRect = SkMatrixPriv::MapRect(fMCRec->fMatrix, src);
2248 void SkCanvas::onDrawImageRect2(const SkImage* image, const SkRect& src, const SkRect& dst,
2261 this->topDevice()->drawImageRect(image, &src, dst, sampling, layer->paint(), constraint);
2286 void SkCanvas::drawImageRect(const SkImage* image, const SkRect& src, const SkRect& dst,
2290 if (!fillable(dst) || !fillable(src)) {
2293 this->onDrawImageRect2(image, src, dst, sampling, paint, constraint);