Home
last modified time | relevance | path

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

12345678910>>...38

/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 …]
DWritePixelsTest.cpp27 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H);
216 SkIRect writeRect = SkIRect::MakeXYWH(writeX, writeY, bitmap.width(), bitmap.height()); in check_write()
307 const SkIRect testRects[] = { in test_write_pixels()
311 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in test_write_pixels()
313 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), in test_write_pixels()
315 SkIRect::MakeLTRB(-10, -10, -1, -1), in test_write_pixels()
317 SkIRect::MakeLTRB(-10, -10, 0, 0), in test_write_pixels()
319 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), in test_write_pixels()
321 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H / 4), in test_write_pixels()
323 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, 0), in test_write_pixels()
[all …]
DImageFilterCacheTest.cpp35 SkIRect clip = SkIRect::MakeWH(100, 100); in test_find_existing()
59 SkIRect clip1 = SkIRect::MakeWH(100, 100); in test_dont_find_if_diff_key()
60 SkIRect clip2 = SkIRect::MakeWH(200, 200); in test_dont_find_if_diff_key()
84 SkIRect clip = SkIRect::MakeWH(100, 100); in test_internal_purge()
109 SkIRect clip = SkIRect::MakeWH(100, 100); in test_explicit_purging()
139 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in DEF_TEST()
143 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); in DEF_TEST()
156 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in test_image_backed()
161 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); in test_image_backed()
258 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/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 …]
DWritePixelsTest.cpp27 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H);
206 SkIRect writeRect = SkIRect::MakeXYWH(writeX, writeY, bitmap.width(), bitmap.height()); in check_write()
297 const SkIRect testRects[] = { in test_write_pixels()
301 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in test_write_pixels()
303 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), in test_write_pixels()
305 SkIRect::MakeLTRB(-10, -10, -1, -1), in test_write_pixels()
307 SkIRect::MakeLTRB(-10, -10, 0, 0), in test_write_pixels()
309 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), in test_write_pixels()
311 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H / 4), in test_write_pixels()
313 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, 0), in test_write_pixels()
[all …]
DImageFilterCacheTest.cpp35 SkIRect clip = SkIRect::MakeWH(100, 100); in test_find_existing()
59 SkIRect clip1 = SkIRect::MakeWH(100, 100); in test_dont_find_if_diff_key()
60 SkIRect clip2 = SkIRect::MakeWH(200, 200); in test_dont_find_if_diff_key()
84 SkIRect clip = SkIRect::MakeWH(100, 100); in test_internal_purge()
109 SkIRect clip = SkIRect::MakeWH(100, 100); in test_explicit_purging()
139 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in DEF_TEST()
143 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); in DEF_TEST()
156 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in test_image_backed()
161 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); in test_image_backed()
258 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/external/skqp/src/core/
DSkRasterClip.h17 SkIRect fBounds;
18 const SkIRect* fClipRestrictionRect;
20 inline void applyClipRestriction(SkRegion::Op op, SkIRect* bounds) { in applyClipRestriction()
30 SkConservativeClip() : fBounds(SkIRect::MakeEmpty()), fClipRestrictionRect(nullptr) {} in SkConservativeClip()
34 const SkIRect& getBounds() const { return fBounds; } in getBounds()
37 void setRect(const SkIRect& r) { fBounds = r; } in setRect()
38 void setDeviceClipRestriction(const SkIRect* rect) { in setDeviceClipRestriction()
42 void opRect(const SkRect&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA);
43 void opRRect(const SkRRect&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA);
44 void opPath(const SkPath&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA);
[all …]
DSkGpuBlurUtils.cpp25 static void scale_irect_roundout(SkIRect* rect, float xScale, float yScale) { in scale_irect_roundout()
32 static void scale_irect(SkIRect* rect, int xScale, int yScale) { in scale_irect()
43 static void shrink_irect_by_2(SkIRect* rect, bool xAxis, bool yAxis) { in shrink_irect_by_2()
73 const SkIRect& dstRect, in convolve_gaussian_1d()
96 const SkIRect& dstRect, in convolve_gaussian_2d()
103 const SkIRect& srcBounds, in convolve_gaussian_2d()
122 const SkIRect& srcRect, in convolve_gaussian()
127 const SkIRect& srcBounds, in convolve_gaussian()
131 SkIRect dstRect = SkIRect::MakeWH(srcRect.width(), srcRect.height()); in convolve_gaussian()
138 SkIRect midRect = srcBounds, leftRect, rightRect; in convolve_gaussian()
[all …]
DSkScan.h24 typedef SkIRect SkXRect;
44 static void FillPath(const SkPath&, const SkIRect&, SkBlitter*);
49 static void FillIRect(const SkIRect&, const SkRasterClip&, SkBlitter*);
82 static void FillIRect(const SkIRect&, const SkRegion* clip, SkBlitter*);
95 static void AAAFillPath(const SkPath& path, SkBlitter* blitter, const SkIRect& pathIR,
96 const SkIRect& clipBounds, bool forceRLE);
97 static void DAAFillPath(const SkPath& path, SkBlitter* blitter, const SkIRect& pathIR,
98 const SkIRect& clipBounds, bool forceRLE);
99 static void SAAFillPath(const SkPath& path, SkBlitter* blitter, const SkIRect& pathIR,
100 const SkIRect& clipBounds, bool forceRLE);
[all …]
/external/skia/src/core/
DSkRasterClip.h17 SkIRect fBounds;
18 const SkIRect* fClipRestrictionRect;
20 inline void applyClipRestriction(SkRegion::Op op, SkIRect* bounds) { in applyClipRestriction()
30 SkConservativeClip() : fBounds(SkIRect::MakeEmpty()), fClipRestrictionRect(nullptr) {} in SkConservativeClip()
34 const SkIRect& getBounds() const { return fBounds; } in getBounds()
37 void setRect(const SkIRect& r) { fBounds = r; } in setRect()
38 void setDeviceClipRestriction(const SkIRect* rect) { in setDeviceClipRestriction()
42 void opRect(const SkRect&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA);
43 void opRRect(const SkRRect&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA);
44 void opPath(const SkPath&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA);
[all …]
DSkGpuBlurUtils.cpp25 static void scale_irect_roundout(SkIRect* rect, float xScale, float yScale) { in scale_irect_roundout()
32 static void scale_irect(SkIRect* rect, int xScale, int yScale) { in scale_irect()
43 static void shrink_irect_by_2(SkIRect* rect, bool xAxis, bool yAxis) { in shrink_irect_by_2()
73 const SkIRect& dstRect, in convolve_gaussian_1d()
96 const SkIRect& dstRect, in convolve_gaussian_2d()
103 const SkIRect& srcBounds, in convolve_gaussian_2d()
122 const SkIRect& srcRect, in convolve_gaussian()
127 const SkIRect& srcBounds, in convolve_gaussian()
131 SkIRect dstRect = SkIRect::MakeWH(srcRect.width(), srcRect.height()); in convolve_gaussian()
138 SkIRect midRect = srcBounds, leftRect, rightRect; in convolve_gaussian()
[all …]
DSkScan.h25 typedef SkIRect SkXRect;
45 static void FillPath(const SkPath&, const SkIRect&, SkBlitter*);
50 static void FillIRect(const SkIRect&, const SkRasterClip&, SkBlitter*);
84 static void FillIRect(const SkIRect&, const SkRegion* clip, SkBlitter*);
97 static void AAAFillPath(const SkPath& path, SkBlitter* blitter, const SkIRect& pathIR,
98 const SkIRect& clipBounds, bool forceRLE);
99 static void DAAFillPath(const SkPath& path, SkBlitter* blitter, const SkIRect& pathIR,
100 const SkIRect& clipBounds, bool forceRLE, SkDAARecord* daaRecord);
101 static void SAAFillPath(const SkPath& path, SkBlitter* blitter, const SkIRect& pathIR,
102 const SkIRect& clipBounds, bool forceRLE);
[all …]
/external/skia/include/core/
DSkRegion.h39 explicit SkRegion(const SkIRect&);
85 const SkIRect& getBounds() const { return fBounds; } in getBounds()
114 bool setRect(const SkIRect&);
130 bool setRects(const SkIRect rects[], int count);
150 bool intersects(const SkIRect&) const;
169 bool contains(const SkIRect&) const;
185 bool quickContains(const SkIRect& r) const { in quickContains()
212 bool quickReject(const SkIRect& rect) const { in quickReject()
214 !SkIRect::Intersects(fBounds, rect); in quickReject()
224 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject()
[all …]
DSkRect.h25 struct SK_API SkIRect { struct
54 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument
55 return SkIRect{0, 0, 0, 0}; in MakeEmpty()
61 static SkIRect SK_WARN_UNUSED_RESULT MakeLargest() { in MakeLargest() argument
73 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeWH(int32_t w, int32_t h) { in MakeWH() argument
74 return SkIRect{0, 0, w, h}; in MakeWH()
83 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeSize(const SkISize& size) { in MakeSize() argument
84 return SkIRect{0, 0, size.fWidth, size.fHeight}; in MakeSize()
96 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeLTRB(int32_t l, int32_t t, in MakeLTRB() argument
98 return SkIRect{l, t, r, b}; in MakeLTRB()
[all …]
DSkImageFilter.h56 Context(const SkMatrix& ctm, const SkIRect& clipBounds, SkImageFilterCache* cache, in Context()
65 const SkIRect& clipBounds() const { return fClipBounds; } in clipBounds()
81 SkIRect fClipBounds;
114 void applyTo(const SkIRect& imageBounds, const SkMatrix& matrix, bool embiggen,
115 SkIRect* cropped) const;
161 SkIRect filterBounds(const SkIRect& src, const SkMatrix& ctm,
167 const SkIRect& bounds,
333 virtual SkIRect onFilterBounds(const SkIRect&, const SkMatrix&, MapDirection) const;
348 virtual SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix&, MapDirection) const;
381 bool applyCropRect(const Context&, const SkIRect& srcBounds, SkIRect* dstBounds) const;
[all …]
/external/skqp/include/core/
DSkRegion.h39 explicit SkRegion(const SkIRect&);
85 const SkIRect& getBounds() const { return fBounds; } in getBounds()
114 bool setRect(const SkIRect&);
130 bool setRects(const SkIRect rects[], int count);
150 bool intersects(const SkIRect&) const;
169 bool contains(const SkIRect&) const;
185 bool quickContains(const SkIRect& r) const { in quickContains()
212 bool quickReject(const SkIRect& rect) const { in quickReject()
214 !SkIRect::Intersects(fBounds, rect); in quickReject()
224 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject()
[all …]
DSkRect.h25 struct SK_API SkIRect { struct
54 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument
55 return SkIRect{0, 0, 0, 0}; in MakeEmpty()
64 static SkIRect SK_WARN_UNUSED_RESULT MakeLargest() { in MakeLargest() argument
76 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeWH(int32_t w, int32_t h) { in MakeWH() argument
77 return SkIRect{0, 0, w, h}; in MakeWH()
86 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeSize(const SkISize& size) { in MakeSize() argument
87 return SkIRect{0, 0, size.fWidth, size.fHeight}; in MakeSize()
99 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeLTRB(int32_t l, int32_t t, in MakeLTRB() argument
101 return SkIRect{l, t, r, b}; in MakeLTRB()
[all …]
DSkImageFilter.h56 Context(const SkMatrix& ctm, const SkIRect& clipBounds, SkImageFilterCache* cache, in Context()
65 const SkIRect& clipBounds() const { return fClipBounds; } in clipBounds()
81 SkIRect fClipBounds;
114 void applyTo(const SkIRect& imageBounds, const SkMatrix& matrix, bool embiggen,
115 SkIRect* cropped) const;
161 SkIRect filterBounds(const SkIRect& src, const SkMatrix& ctm,
167 const SkIRect& bounds,
333 virtual SkIRect onFilterBounds(const SkIRect&, const SkMatrix&, MapDirection) const;
348 virtual SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix&, MapDirection) const;
381 bool applyCropRect(const Context&, const SkIRect& srcBounds, SkIRect* dstBounds) const;
[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/skqp/include/effects/
DSkMatrixConvolutionImageFilter.h88 SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix&, MapDirection) const override;
103 const SkIRect& rect,
104 const SkIRect& bounds) const;
108 const SkIRect& rect,
109 const SkIRect& bounds) const;
112 const SkIRect& rect,
113 const SkIRect& bounds) const;
116 const SkIRect& rect,
117 const SkIRect& bounds) const;
/external/skia/include/effects/
DSkMatrixConvolutionImageFilter.h88 SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix&, MapDirection) const override;
103 const SkIRect& rect,
104 const SkIRect& bounds) const;
108 const SkIRect& rect,
109 const SkIRect& bounds) const;
112 const SkIRect& rect,
113 const SkIRect& bounds) const;
116 const SkIRect& rect,
117 const SkIRect& bounds) const;
/external/skia/src/effects/
DSkMatrixConvolutionImageFilter.cpp129 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
136 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
145 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
160 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
172 const SkIRect& r, in filterPixels()
173 const SkIRect& bounds) const { in filterPixels()
174 SkIRect rect(r); in filterPixels()
216 const SkIRect& rect, in filterPixels()
217 const SkIRect& bounds) const { in filterPixels()
227 const SkIRect& rect, in filterInteriorPixels()
[all …]
/external/skqp/src/effects/
DSkMatrixConvolutionImageFilter.cpp129 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
136 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
145 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
160 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch()
172 const SkIRect& r, in filterPixels()
173 const SkIRect& bounds) const { in filterPixels()
174 SkIRect rect(r); in filterPixels()
216 const SkIRect& rect, in filterPixels()
217 const SkIRect& bounds) const { in filterPixels()
227 const SkIRect& rect, in filterInteriorPixels()
[all …]
/external/skqp/docs/
DSkIRect_Reference.bmh11 #Struct SkIRect
13 SkIRect holds four 32 bit integer coordinates describing the upper and
14 lower bounds of a rectangle. SkIRect may be created from outer bounds or
15 from position, width, and height. SkIRect describes an area; if its right
72 #Method static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeEmpty()
84 SkIRect rect = SkIRect::MakeEmpty();
106 #Method static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeWH(int32_t w, int32_t h)
119 SkIRect rect1 = SkIRect::MakeWH(25, 35);
120 SkIRect rect2 = SkIRect::MakeSize({25, 35});
121 SkIRect rect3 = SkIRect::MakeXYWH(0, 0, 25, 35);
[all …]

12345678910>>...38