Home
last modified time | relevance | path

Searched refs:SkIRect (Results 1 – 25 of 1010) sorted by relevance

12345678910>>...41

/external/skia/tests/
DRegionTest.cpp14 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::MakeXYWH(10, 0, 3, 3)); in test_fromchrome()
[all …]
/external/skqp/tests/
DRegionTest.cpp14 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::MakeXYWH(10, 0, 3, 3)); in test_fromchrome()
[all …]
/external/skqp/src/core/
DSkRasterClip.h18 SkIRect fBounds;
19 const SkIRect* fClipRestrictionRect;
21 inline void applyClipRestriction(SkRegion::Op op, SkIRect* bounds) { in applyClipRestriction()
31 SkConservativeClip() : fBounds(SkIRect::MakeEmpty()), fClipRestrictionRect(nullptr) {} in SkConservativeClip()
35 const SkIRect& getBounds() const { return fBounds; } in getBounds()
38 void setRect(const SkIRect& r) { fBounds = r; } in setRect()
39 void setDeviceClipRestriction(const SkIRect* rect) { in setDeviceClipRestriction()
43 void opRect(const SkRect&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA);
44 void opRRect(const SkRRect&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA);
45 void opPath(const SkPath&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA);
[all …]
DSkImageFilter.cpp32 void SkImageFilter::CropRect::applyTo(const SkIRect& imageBounds, in applyTo()
35 SkIRect* cropped) const { in applyTo()
40 SkIRect devICropR = devCropR.roundOut(); in applyTo()
169 const SkIRect srcSubset = fUsesSrcInput ? src->subset() : SkIRect::MakeWH(0, 0); in filterImage()
196 SkIRect SkImageFilter::filterBounds(const SkIRect& src, const SkMatrix& ctm, in filterBounds()
197 MapDirection direction, const SkIRect* inputRect) const { in filterBounds()
199 SkIRect bounds = this->onFilterNodeBounds(src, ctm, direction, inputRect); in filterBounds()
203 SkIRect bounds = this->onFilterBounds(src, ctm, direction, nullptr); in filterBounds()
205 SkIRect dst; in filterBounds()
243 const SkIRect& bounds, in DrawWithFP()
[all …]
DSkGpuBlurUtils.cpp27 static void scale_irect_roundout(SkIRect* rect, float xScale, float yScale) { in scale_irect_roundout()
34 static void scale_irect(SkIRect* rect, int xScale, int yScale) { in scale_irect()
45 static void shrink_irect_by_2(SkIRect* rect, bool xAxis, bool yAxis) { in shrink_irect_by_2()
75 const SkIRect& dstRect, in convolve_gaussian_1d()
108 const SkIRect& srcBounds, in convolve_gaussian_2d()
155 const SkIRect& srcRect, in convolve_gaussian()
160 SkIRect* contentRect, in convolve_gaussian()
189 SkIRect dstRect = SkIRect::MakeWH(srcRect.width(), srcRect.height()); in convolve_gaussian()
198 SkIRect midRect = *contentRect, leftRect, rightRect; in convolve_gaussian()
200 SkIRect topRect, bottomRect; in convolve_gaussian()
[all …]
/external/skia/src/core/
DSkRasterClip.h18 SkIRect fBounds;
19 const SkIRect* fClipRestrictionRect;
21 inline void applyClipRestriction(SkRegion::Op op, SkIRect* bounds) { in applyClipRestriction()
31 SkConservativeClip() : fBounds(SkIRect::MakeEmpty()), fClipRestrictionRect(nullptr) {} in SkConservativeClip()
35 const SkIRect& getBounds() const { return fBounds; } in getBounds()
38 void setRect(const SkIRect& r) { fBounds = r; } in setRect()
39 void setDeviceClipRestriction(const SkIRect* rect) { in setDeviceClipRestriction()
43 void opRect(const SkRect&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA);
44 void opRRect(const SkRRect&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA);
45 void opPath(const SkPath&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA);
[all …]
DSkImageFilter.cpp35 void SkImageFilter::CropRect::applyTo(const SkIRect& imageBounds, in applyTo()
38 SkIRect* cropped) const { in applyTo()
43 SkIRect devICropR = devCropR.roundOut(); in applyTo()
172 const SkIRect srcSubset = fUsesSrcInput ? src->subset() : SkIRect::MakeWH(0, 0); in filterImage()
199 SkIRect SkImageFilter::filterBounds(const SkIRect& src, const SkMatrix& ctm, in filterBounds()
200 MapDirection direction, const SkIRect* inputRect) const { in filterBounds()
202 SkIRect bounds = this->onFilterNodeBounds(src, ctm, direction, inputRect); in filterBounds()
206 SkIRect bounds = this->onFilterBounds(src, ctm, direction, nullptr); in filterBounds()
208 SkIRect dst; in filterBounds()
246 const SkIRect& bounds, in DrawWithFP()
[all …]
DSkGpuBlurUtils.cpp28 static void scale_irect_roundout(SkIRect* rect, float xScale, float yScale) { in scale_irect_roundout()
35 static void scale_irect(SkIRect* rect, int xScale, int yScale) { in scale_irect()
46 static void shrink_irect_by_2(SkIRect* rect, bool xAxis, bool yAxis) { in shrink_irect_by_2()
76 const SkIRect& dstRect, in convolve_gaussian_1d()
110 const SkIRect& srcBounds, in convolve_gaussian_2d()
157 const SkIRect& srcRect, in convolve_gaussian()
162 SkIRect* contentRect, in convolve_gaussian()
191 SkIRect dstRect = SkIRect::MakeWH(srcRect.width(), srcRect.height()); in convolve_gaussian()
200 SkIRect midRect = *contentRect, leftRect, rightRect; in convolve_gaussian()
202 SkIRect topRect, bottomRect; in convolve_gaussian()
[all …]
/external/skia/site/user/api/
DSkIRect_Reference.md1 SkIRect Reference
5 <a name='SkIRect'></a>
10 struct <a href='SkIRect_Reference#SkIRect'>SkIRect</a> {
17 …static constexpr <a href='SkIRect_Reference#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeEmpty'>Make…
18 …static constexpr <a href='SkIRect_Reference#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeWH'>MakeWH<…
19 …static constexpr <a href='SkIRect_Reference#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeSize'>MakeS…
20 …static constexpr <a href='SkIRect_Reference#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeLTRB'>MakeL…
22 …static constexpr <a href='SkIRect_Reference#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeXYWH'>MakeX…
37 …=</a>(const <a href='SkIRect_Reference#SkIRect'>SkIRect</a>& a, const <a href='SkIRect_Reference#S…
38 …=</a>(const <a href='SkIRect_Reference#SkIRect'>SkIRect</a>& a, const <a href='SkIRect_Reference#S…
[all …]
/external/skqp/site/user/api/
DSkIRect_Reference.md1 SkIRect Reference
5 <a name='SkIRect'></a>
10 struct <a href='SkIRect_Reference#SkIRect'>SkIRect</a> {
17 …static constexpr <a href='SkIRect_Reference#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeEmpty'>Make…
18 …static constexpr <a href='SkIRect_Reference#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeWH'>MakeWH<…
19 …static constexpr <a href='SkIRect_Reference#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeSize'>MakeS…
20 …static constexpr <a href='SkIRect_Reference#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeLTRB'>MakeL…
22 …static constexpr <a href='SkIRect_Reference#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeXYWH'>MakeX…
37 …=</a>(const <a href='SkIRect_Reference#SkIRect'>SkIRect</a>& a, const <a href='SkIRect_Reference#S…
38 …=</a>(const <a href='SkIRect_Reference#SkIRect'>SkIRect</a>& a, const <a href='SkIRect_Reference#S…
[all …]
/external/skia/include/core/
DSkRegion.h63 explicit SkRegion(const SkIRect& rect);
154 const SkIRect& getBounds() const { return fBounds; } in getBounds()
189 bool setRect(const SkIRect& rect);
214 bool setRects(const SkIRect rects[], int count);
248 bool intersects(const SkIRect& rect) const;
273 bool contains(const SkIRect& other) const;
289 bool quickContains(const SkIRect& r) const { in quickContains()
322 bool quickReject(const SkIRect& rect) const { in quickReject()
324 !SkIRect::Intersects(fBounds, rect); in quickReject()
336 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject()
[all …]
DSkImageFilter.h60 Context(const SkMatrix& ctm, const SkIRect& clipBounds, SkImageFilterCache* cache, in Context()
69 const SkIRect& clipBounds() const { return fClipBounds; } in clipBounds()
85 SkIRect fClipBounds;
115 void applyTo(const SkIRect& imageBounds, const SkMatrix& matrix, bool embiggen,
116 SkIRect* cropped) const;
166 SkIRect filterBounds(const SkIRect& src, const SkMatrix& ctm,
167 MapDirection, const SkIRect* inputRect = nullptr) const;
172 const SkIRect& bounds,
352 virtual SkIRect onFilterBounds(const SkIRect&, const SkMatrix& ctm,
353 MapDirection, const SkIRect* inputRect) const;
[all …]
DSkRect.h37 struct SK_API SkIRect { struct
50 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument
51 return SkIRect{0, 0, 0, 0}; in MakeEmpty()
61 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeWH(int32_t w, int32_t h) { in MakeWH() argument
62 return SkIRect{0, 0, w, h}; in MakeWH()
71 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeSize(const SkISize& size) { in MakeSize() argument
72 return SkIRect{0, 0, size.fWidth, size.fHeight}; in MakeSize()
84 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeLTRB(int32_t l, int32_t t, in MakeLTRB() argument
86 return SkIRect{l, t, r, b}; in MakeLTRB()
98 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeXYWH(int32_t x, int32_t y, in MakeXYWH() argument
[all …]
/external/skqp/include/core/
DSkRegion.h63 explicit SkRegion(const SkIRect& rect);
154 const SkIRect& getBounds() const { return fBounds; } in getBounds()
189 bool setRect(const SkIRect& rect);
214 bool setRects(const SkIRect rects[], int count);
248 bool intersects(const SkIRect& rect) const;
273 bool contains(const SkIRect& other) const;
289 bool quickContains(const SkIRect& r) const { in quickContains()
322 bool quickReject(const SkIRect& rect) const { in quickReject()
324 !SkIRect::Intersects(fBounds, rect); in quickReject()
336 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject()
[all …]
DSkImageFilter.h60 Context(const SkMatrix& ctm, const SkIRect& clipBounds, SkImageFilterCache* cache, in Context()
69 const SkIRect& clipBounds() const { return fClipBounds; } in clipBounds()
85 SkIRect fClipBounds;
115 void applyTo(const SkIRect& imageBounds, const SkMatrix& matrix, bool embiggen,
116 SkIRect* cropped) const;
166 SkIRect filterBounds(const SkIRect& src, const SkMatrix& ctm,
167 MapDirection, const SkIRect* inputRect = nullptr) const;
172 const SkIRect& bounds,
352 virtual SkIRect onFilterBounds(const SkIRect&, const SkMatrix& ctm,
353 MapDirection, const SkIRect* inputRect) const;
[all …]
DSkRect.h37 struct SK_API SkIRect { struct
50 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument
51 return SkIRect{0, 0, 0, 0}; in MakeEmpty()
61 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeWH(int32_t w, int32_t h) { in MakeWH() argument
62 return SkIRect{0, 0, w, h}; in MakeWH()
71 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeSize(const SkISize& size) { in MakeSize() argument
72 return SkIRect{0, 0, size.fWidth, size.fHeight}; in MakeSize()
84 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeLTRB(int32_t l, int32_t t, in MakeLTRB() argument
86 return SkIRect{l, t, r, b}; in MakeLTRB()
98 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeXYWH(int32_t x, int32_t y, in MakeXYWH() argument
[all …]
/external/skia/docs/
DSkIRect_Reference.bmh5 #Struct SkIRect
11 SkIRect holds four 32-bit integer coordinates describing the upper and
12 lower bounds of a rectangle. SkIRect may be created from outer bounds or
13 from position, width, and height. SkIRect describes an area; if its right
43 #Method static constexpr SkIRect MakeEmpty()
50 SkIRect rect = SkIRect::MakeEmpty();
72 #Method static constexpr SkIRect MakeWH(int32_t w, int32_t h)
79 SkIRect rect1 = SkIRect::MakeWH(25, 35);
80 SkIRect rect2 = SkIRect::MakeSize({25, 35});
81 SkIRect rect3 = SkIRect::MakeXYWH(0, 0, 25, 35);
[all …]
/external/skqp/docs/
DSkIRect_Reference.bmh5 #Struct SkIRect
11 SkIRect holds four 32-bit integer coordinates describing the upper and
12 lower bounds of a rectangle. SkIRect may be created from outer bounds or
13 from position, width, and height. SkIRect describes an area; if its right
43 #Method static constexpr SkIRect MakeEmpty()
50 SkIRect rect = SkIRect::MakeEmpty();
72 #Method static constexpr SkIRect MakeWH(int32_t w, int32_t h)
79 SkIRect rect1 = SkIRect::MakeWH(25, 35);
80 SkIRect rect2 = SkIRect::MakeSize({25, 35});
81 SkIRect rect3 = SkIRect::MakeXYWH(0, 0, 25, 35);
[all …]
/external/skqp/src/gpu/
DGrWindowRectangles.h26 const SkIRect* data() const;
31 SkIRect& addWindow(const SkIRect& window) { return this->addWindow() = window; } in addWindow()
32 SkIRect& addWindow();
45 SkIRect fLocalWindows[kNumLocalWindows]; // If fCount <= kNumLocalWindows.
51 Rec(const SkIRect* windows, int numWindows) { in Rec()
53 memcpy(fData, windows, sizeof(SkIRect) * numWindows); in Rec()
57 SkIRect fData[kMaxWindows];
60 inline const SkIRect* GrWindowRectangles::data() const { in data()
73 memcpy(fLocalWindows, that.fLocalWindows, fCount * sizeof(SkIRect));
86 SkIRect* windows; in makeOffset()
[all …]
/external/skia/src/gpu/
DGrWindowRectangles.h26 const SkIRect* data() const;
31 SkIRect& addWindow(const SkIRect& window) { return this->addWindow() = window; } in addWindow()
32 SkIRect& addWindow();
45 SkIRect fLocalWindows[kNumLocalWindows]; // If fCount <= kNumLocalWindows.
51 Rec(const SkIRect* windows, int numWindows) { in Rec()
53 memcpy(fData, windows, sizeof(SkIRect) * numWindows); in Rec()
57 SkIRect fData[kMaxWindows];
60 inline const SkIRect* GrWindowRectangles::data() const { in data()
73 memcpy(fLocalWindows, that.fLocalWindows, fCount * sizeof(SkIRect));
86 SkIRect* windows; in makeOffset()
[all …]
/external/skia/include/effects/
DSkMatrixConvolutionImageFilter.h86 SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix& ctm,
87 MapDirection, const SkIRect* inputRect) const override;
105 const SkIRect& rect,
106 const SkIRect& bounds) const;
111 const SkIRect& rect,
112 const SkIRect& bounds) const;
116 const SkIRect& rect,
117 const SkIRect& bounds) const;
121 const SkIRect& rect,
122 const SkIRect& bounds) const;
/external/skqp/include/effects/
DSkMatrixConvolutionImageFilter.h86 SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix& ctm,
87 MapDirection, const SkIRect* inputRect) const override;
105 const SkIRect& rect,
106 const SkIRect& bounds) const;
111 const SkIRect& rect,
112 const SkIRect& bounds) const;
116 const SkIRect& rect,
117 const SkIRect& bounds) const;
121 const SkIRect& rect,
122 const SkIRect& bounds) const;
/external/skqp/src/effects/imagefilters/
DSkMatrixConvolutionImageFilter.cpp135 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
142 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
151 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
166 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
179 const SkIRect& r, in filterPixels()
180 const SkIRect& bounds) const { in filterPixels()
181 SkIRect rect(r); in filterPixels()
224 const SkIRect& rect, in filterPixels()
225 const SkIRect& bounds) const { in filterPixels()
236 const SkIRect& rect, in filterInteriorPixels()
[all …]
DSkXfermodeImageFilter.cpp42 SkIRect onFilterBounds(const SkIRect&, const SkMatrix& ctm,
43 MapDirection, const SkIRect* inputRect) const override;
51 const SkIRect& bounds,
57 void drawForeground(SkCanvas* canvas, SkSpecialImage*, const SkIRect&) const;
120 SkIRect foregroundBounds = SkIRect::EmptyIRect(); in onFilterImage()
122 foregroundBounds = SkIRect::MakeXYWH(foregroundOffset.x(), foregroundOffset.y(), in onFilterImage()
126 SkIRect srcBounds = SkIRect::EmptyIRect(); in onFilterImage()
128 srcBounds = SkIRect::MakeXYWH(backgroundOffset.x(), backgroundOffset.y(), in onFilterImage()
137 SkIRect bounds; in onFilterImage()
178 SkIRect SkXfermodeImageFilter_Base::onFilterBounds(const SkIRect& src, in onFilterBounds()
[all …]
/external/skia/src/effects/imagefilters/
DSkMatrixConvolutionImageFilter.cpp135 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
142 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
151 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
166 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
179 const SkIRect& r, in filterPixels()
180 const SkIRect& bounds) const { in filterPixels()
181 SkIRect rect(r); in filterPixels()
224 const SkIRect& rect, in filterPixels()
225 const SkIRect& bounds) const { in filterPixels()
236 const SkIRect& rect, in filterInteriorPixels()
[all …]

12345678910>>...41