/third_party/skia/src/core/ |
H A D | SkImageFilter.cpp | 58 SkIRect SkImageFilter::filterBounds(const SkIRect& src, const SkMatrix& ctm, in filterBounds() 59 MapDirection direction, const SkIRect* inputRect) const { in filterBounds() 65 skif::LayerSpace<SkIRect> targetOutput(src); in filterBounds() 67 skif::LayerSpace<SkIRect> outputCrop = mapping.paramToLayer( in filterBounds() 73 return SkIRect::MakeEmpty(); in filterBounds() 76 skif::LayerSpace<SkIRect> content(inputRect ? *inputRect : src); in filterBounds() 77 return SkIRect(as_IFB(this)->onGetInputLayerBounds(mapping, targetOutput, content)); in filterBounds() 80 skif::LayerSpace<SkIRect> content(src); in filterBounds() 81 skif::LayerSpace<SkIRect> outpu in filterBounds() [all...] |
H A D | SkImageFilter_Base.h | 71 skif::LayerSpace<SkIRect> getInputBounds( 72 const skif::Mapping& mapping, const skif::DeviceSpace<SkIRect>& desiredOutput, 99 skif::DeviceSpace<SkIRect> getOutputBounds( 158 void applyTo(const SkIRect& imageBounds, const SkMatrix& matrix, bool embiggen, 159 SkIRect* cropped) const; 213 virtual SkIRect onFilterBounds(const SkIRect&, const SkMatrix& ctm, 214 MapDirection, const SkIRect* inputRect) const; 215 virtual SkIRect onFilterNodeBounds(const SkIRect [all...] |
H A D | SkScan.h | 21 /** Defines a fixed-point rectangle, identical to the integer SkIRect, but its 24 typedef SkIRect SkXRect; 42 static void FillPath(const SkPath&, const SkIRect&, SkBlitter*); 47 static bool DowngradeClipAA(const SkIRect& bounds); 52 static void FillIRect(const SkIRect&, const SkRasterClip&, SkBlitter*); 82 static void FillIRect(const SkIRect&, const SkRegion* clip, SkBlitter*); 94 static void AAAFillPath(const SkPath& path, SkBlitter* blitter, const SkIRect& pathIR, 95 const SkIRect& clipBounds, bool forceRLE); 96 static void SAAFillPath(const SkPath& path, SkBlitter* blitter, const SkIRect& pathIR, 97 const SkIRect [all...] |
H A D | SkRectPriv.h | 18 static SkIRect MakeILarge() { in MakeILarge() 25 static SkIRect MakeILargestInverted() { in MakeILargestInverted() 57 static bool Is16Bit(const SkIRect& r) { in Is16Bit() 75 static bool Subtract(const SkIRect& a, const SkIRect& b, SkIRect* out); 84 static SkIRect Subtract(const SkIRect& a, const SkIRect& b) { in Subtract() 85 SkIRect dif in Subtract() [all...] |
/third_party/skia/tests/ |
H A D | RegionTest.cpp | 14 static void Union(SkRegion* rgn, const SkIRect& rect) { in Union() 26 Union(&r, SkIRect::MakeXYWH(0, 0, 1, 1)); in test_fromchrome() 27 TEST_NO_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 0, 0)); in test_fromchrome() 28 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 2, 2)); in test_fromchrome() 29 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, 0, 2, 2)); in test_fromchrome() 30 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 2, 2)); in test_fromchrome() 31 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, -1, 2, 2)); in test_fromchrome() 32 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 3, 3)); in test_fromchrome() 34 Union(&r, SkIRect::MakeXYWH(0, 0, 3, 3)); in test_fromchrome() 35 Union(&r, SkIRect in test_fromchrome() [all...] |
H A D | ImageFilterTest.cpp | 116 FilterList(sk_sp<SkImageFilter> input, const SkIRect* cropRect = nullptr) { in FilterList() 163 SkIRect leftSideCropRect = SkIRect::MakeXYWH(0, 0, 32, 64); in FilterList() 166 SkIRect rightSideCropRect = SkIRect::MakeXYWH(32, 0, 32, 64); in FilterList() 206 recordingCanvas->drawRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 30, 20)), greenPaint); in FilterList() 248 FixedBoundsImageFilter(const SkIRect& bounds) in FixedBoundsImageFilter() 259 SkIRect onFilterBounds(const SkIRect&, const SkMatrix&, 260 MapDirection, const SkIRect*) cons [all...] |
H A D | WritePixelsTest.cpp | 25 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); 230 SkIRect writeRect = SkIRect::MakeXYWH(writeX, writeY, bitmap.width(), bitmap.height()); in check_write() 326 const SkIRect testRects[] = { in test_write_pixels() 330 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in test_write_pixels() 332 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), in test_write_pixels() 334 SkIRect::MakeLTRB(-10, -10, -1, -1), in test_write_pixels() 336 SkIRect::MakeLTRB(-10, -10, 0, 0), in test_write_pixels() 338 SkIRect in test_write_pixels() [all...] |
H A D | ReadPixelsTest.cpp | 20 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); 175 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bw, bh); in check_read() 176 SkIRect clippedSrcRect = DEV_RECT; in check_read() 252 static void init_bitmap(SkBitmap* bitmap, const SkIRect& rect, TightRowBytes tightRB, in init_bitmap() 273 const SkIRect gReadPixelsTestRects[] = { 277 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), 279 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), 281 SkIRect [all...] |
H A D | ClearTest.cpp | 39 const SkIRect& rect, in check_rect() 80 SkIRect fullRect = SkIRect::MakeWH(kW, kH); in clear_op_test() 85 SkIRect mid1Rect = SkIRect::MakeXYWH(1, 1, kW-2, kH-2); in clear_op_test() 86 SkIRect outerLeftEdge = SkIRect::MakeXYWH(0, 0, 1, kH); in clear_op_test() 87 SkIRect outerTopEdge = SkIRect::MakeXYWH(0, 0, kW, 1); in clear_op_test() 88 SkIRect outerRightEdg in clear_op_test() [all...] |
H A D | RectTest.cpp | 174 SkIRect fA; in DEF_TEST() 175 SkIRect fB; in DEF_TEST() 176 SkIRect fExpected; in DEF_TEST() 180 SkIRect a = SkIRect::MakeLTRB(2, 3, 12, 15); in DEF_TEST() 183 {a, a.makeOutset(2, 2), SkIRect::MakeEmpty(), true}, in DEF_TEST() 187 {SkIRect::MakeEmpty(), a, SkIRect::MakeEmpty(), true}, in DEF_TEST() 189 {a, SkIRect::MakeEmpty(), a, true}, in DEF_TEST() 191 {SkIRect in DEF_TEST() [all...] |
/third_party/skia/include/core/ |
H A D | SkRegion.h | 59 explicit SkRegion(const SkIRect& rect); 119 /** Exchanges SkIRect array of SkRegion and other. swap() internally exchanges pointers, 141 /** Returns true if SkRegion is one SkIRect with positive dimensions. 143 @return true if SkRegion contains one SkIRect 149 @return true if SkRegion contains more than one SkIRect 153 /** Returns minimum and maximum axes values of SkIRect array. 156 @return combined bounds of all SkIRect elements 158 const SkIRect& getBounds() const { return fBounds; } in getBounds() 162 Returns one if SkRegion equals SkIRect; otherwise, returns 201 bool setRect(const SkIRect [all...] |
H A D | SkRect.h | 21 /** \struct SkIRect 22 SkIRect holds four 32-bit integer coordinates describing the upper and 23 lower bounds of a rectangle. SkIRect may be created from outer bounds or 24 from position, width, and height. SkIRect describes an area; if its right 28 struct SK_API SkIRect { struct 34 /** Writes text representation of SkIRect to string. 40 /** Returns constructed SkIRect set to (0, 0, 0, 0). 47 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() 48 return SkIRect{0, 0, 0, 0}; in MakeEmpty() 51 /** Returns constructed SkIRect se [all...] |
/third_party/skia/src/effects/imagefilters/ |
H A D | SkCropImageFilter.cpp | 37 skif::LayerSpace<SkIRect> onGetInputLayerBounds( 39 const skif::LayerSpace<SkIRect>& desiredOutput, 40 const skif::LayerSpace<SkIRect>& contentBounds, 43 skif::LayerSpace<SkIRect> onGetOutputLayerBounds( 45 const skif::LayerSpace<SkIRect>& contentBounds) const override; 50 skif::LayerSpace<SkIRect> cropRect(const skif::Mapping& mapping) const { in cropRect() 89 skif::LayerSpace<SkIRect> cropBounds = this->cropRect(context.mapping()); in onFilterImage() 113 skif::LayerSpace<SkIRect> SkCropImageFilter::onGetInputLayerBounds( in onGetInputLayerBounds() 115 const skif::LayerSpace<SkIRect>& desiredOutput, in onGetInputLayerBounds() 116 const skif::LayerSpace<SkIRect> in onGetInputLayerBounds() [all...] |
H A D | SkMatrixConvolutionImageFilter.cpp | 59 SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix& ctm, 60 MapDirection, const SkIRect* inputRect) const override; 79 SkIRect rect, 80 const SkIRect& bounds) const; 85 const SkIRect& rect, 86 const SkIRect& bounds) const; 90 const SkIRect& rect, 91 const SkIRect& bounds) const; 95 const SkIRect [all...] |
H A D | SkTileImageFilter.cpp | 31 SkIRect onFilterBounds(const SkIRect& src, const SkMatrix& ctm, 32 MapDirection, const SkIRect* inputRect) const override; 33 SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix& ctm, 34 MapDirection, const SkIRect* inputRect) const override; 109 const SkIRect dstIRect = dstRect.makeInset(kRoundOutInset, kRoundOutInset).roundOut(); in onFilterImage() 116 SkIRect srcIRect = srcRect.makeInset(kRoundOutInset, kRoundOutInset).roundOut(); in onFilterImage() 118 const SkIRect inputBounds = SkIRect in onFilterImage() [all...] |
H A D | SkArithmeticImageFilter.cpp | 43 SkIRect onFilterBounds(const SkIRect&, const SkMatrix& ctm, 44 MapDirection, const SkIRect* inputRect) const override; 52 const SkIRect& bounds) const; 57 void drawForeground(SkCanvas* canvas, SkSpecialImage*, const SkIRect&) const; 173 SkIRect dstR = SkIRect::MakeWH(dst->width(), dst->height()); in intersect() 174 SkIRect srcR = SkIRect::MakeXYWH(srcDx, srcDy, src->width(), src->height()); in intersect() 175 SkIRect sec in intersect() [all...] |
H A D | SkComposeImageFilter.cpp | 28 SkIRect onFilterBounds(const SkIRect&, const SkMatrix& ctm, 29 MapDirection, const SkIRect* inputRect) const override; 78 SkIRect innerClipBounds; in onFilterImage() 81 Context innerContext = ctx.withNewDesiredOutput(skif::LayerSpace<SkIRect>(innerClipBounds)); in onFilterImage() 93 SkIRect clipBounds = ctx.clipBounds(); in onFilterImage() 113 SkIRect SkComposeImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, in onFilterBounds() 114 MapDirection dir, const SkIRect* inputRect) const { in onFilterBounds() 122 const SkIRect outerRec in onFilterBounds() [all...] |
/third_party/skia/docs/examples/ |
H A D | IRect_MakeWH.cpp | 7 SkIRect rect1 = SkIRect::MakeWH(25, 35); in REG_FIDDLE() 8 SkIRect rect2 = SkIRect::MakeSize({25, 35}); in REG_FIDDLE() 9 SkIRect rect3 = SkIRect::MakeXYWH(0, 0, 25, 35); in REG_FIDDLE() 10 SkIRect rect4 = SkIRect::MakeLTRB(0, 0, 25, 35); in REG_FIDDLE()
|
/third_party/skia/gm/ |
H A D | imagemakewithfilter.cpp | 40 static void show_bounds(SkCanvas* canvas, const SkIRect* clip, const SkIRect* inSubset, in show_bounds() 41 const SkIRect* outSubset) { in show_bounds() 42 const SkIRect* rects[] { clip, inSubset, outSubset }; in show_bounds() 60 typedef sk_sp<SkImageFilter> (*FilterFactory)(sk_sp<SkImage> auxImage, const SkIRect* cropRect); 62 static sk_sp<SkImageFilter> color_filter_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in color_filter_factory() 69 static sk_sp<SkImageFilter> blur_filter_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in blur_filter_factory() 73 static sk_sp<SkImageFilter> drop_shadow_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in drop_shadow_factory() 77 static sk_sp<SkImageFilter> offset_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in offset_factory() 81 static sk_sp<SkImageFilter> dilate_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRec [all...] |
H A D | gpu_blur_utils.cpp | 26 SkIRect dstB, in blur() 27 SkIRect srcB, in blur() 51 SkIRect dstB, in slow_blur() 52 SkIRect srcB, in slow_blur() 57 SkIRect srcTileRect, in slow_blur() 83 dstB = SkIRect::MakePtSize(outset, dstB.size()); in slow_blur() 102 auto bounds = SkIRect::MakeSize(src.dimensions()); in slow_blur() 120 auto srcRect = SkIRect::MakeSize(src.dimensions()); in slow_blur() 129 const SkIRect* contentArea = nullptr) { in make_src_image() 199 SkIRect srcRec in run() [all...] |
/third_party/skia/src/gpu/ |
H A D | GrWindowRectangles.h | 26 const SkIRect* data() const; 31 SkIRect& addWindow(const SkIRect& window) { return this->addWindow() = window; } in addWindow() 32 SkIRect& addWindow(); 44 SkIRect fLocalWindow; // If fCount <= 1 50 Rec(const SkIRect* windows, int numWindows) { in Rec() 52 memcpy(fData, windows, sizeof(SkIRect) * numWindows); in Rec() 56 SkIRect fData[kMaxWindows]; 59 inline const SkIRect* GrWindowRectangles::data() const { in data() 85 SkIRect* window in makeOffset() [all...] |
H A D | GrClip.h | 56 virtual SkIRect getConservativeBounds() const = 0; 87 SkIRect pixelBounds = GetPixelIBounds(drawBounds, aa); in preApply() 88 bool outside = !SkIRect::Intersects(pixelBounds, this->getConservativeBounds()); in preApply() 117 static bool IsInsideClip(const SkIRect& innerClipBounds, const SkRect& drawBounds, GrAA aa) { in IsInsideClip() 128 static bool IsOutsideClip(const SkIRect& outerClipBounds, const SkRect& drawBounds, GrAA aa) { in IsOutsideClip() 129 return !SkIRect::Intersects(outerClipBounds, GetPixelIBounds(drawBounds, aa)); in IsOutsideClip() 162 static SkIRect GetPixelIBounds(const SkRect& bounds, GrAA aa, in GetPixelIBounds() 176 return SkIRect::MakeEmpty(); in GetPixelIBounds() 180 return SkIRect::MakeLTRB(roundLow(bounds.fLeft), roundLow(bounds.fTop), in GetPixelIBounds() 183 return SkIRect in GetPixelIBounds() [all...] |
H A D | GrBlurUtils.cpp | 37 static bool clip_bounds_quick_reject(const SkIRect& clipBounds, const SkIRect& rect) { in clip_bounds_quick_reject() 38 return clipBounds.isEmpty() || rect.isEmpty() || !SkIRect::Intersects(clipBounds, rect); in clip_bounds_quick_reject() 49 const SkIRect& maskBounds, in draw_mask() 80 static sk_sp<SkData> create_data(const SkIRect& drawRect, const SkIRect& origDevBounds) { in create_data() 89 static SkIRect extract_draw_rect_from_data(SkData* data, const SkIRect& origDevBounds) { in extract_draw_rect_from_data() 92 return SkIRect::MakeXYWH(origDevBounds.fLeft + drawRectData->fOffset.fX, in extract_draw_rect_from_data() 102 const SkIRect in sw_create_filtered_mask() [all...] |
H A D | SurfaceFillContext.h | 32 void clear(const SkIRect& rect, const SkRGBA4f<AlphaType>& color) { in clear() 46 void clearAtLeast(const SkIRect& scissor, const SkRGBA4f<AlphaType>& color) { in clearAtLeast() 53 virtual void fillRectWithFP(const SkIRect& dstRect, std::unique_ptr<GrFragmentProcessor>) = 0; 59 void fillRectWithFP(const SkIRect& dstRect, 65 const SkIRect& dstRect, in fillRectToRectWithFP() 72 void fillRectToRectWithFP(const SkIRect& srcRect, in fillRectToRectWithFP() 73 const SkIRect& dstRect, in fillRectToRectWithFP() 80 this->fillRectWithFP(SkIRect::MakeSize(fWriteView.proxy()->dimensions()), std::move(fp)); in fillWithFP() 88 this->fillRectWithFP(SkIRect::MakeSize(fWriteView.proxy()->dimensions()), in fillWithFP() 99 const SkIRect [all...] |
/third_party/skia/src/gpu/v1/ |
H A D | ClipStack.h | 44 ClipStack(const SkIRect& deviceBounds, const SkMatrixProvider* matrixProvider, bool forceAA); 74 void replaceClip(const SkIRect& rect); 80 SkIRect getConservativeBounds() const override; 109 const SkIRect& outerBounds() const { return fOuterBounds; } in outerBounds() 119 const SkIRect& innerBounds() const { return fInnerBounds; } in innerBounds() 145 void simplify(const SkIRect& deviceBounds, bool forceAA); 154 SkIRect fInnerBounds; 155 SkIRect fOuterBounds; 172 Mask(const SaveRecord& current, const SkIRect& bounds); 180 const SkIRect in key() [all...] |