Home
last modified time | relevance | path

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

12345678910>>...28

/external/skia/tests/
DRegionTest.cpp12 static void Union(SkRegion* rgn, const SkIRect& rect) { in Union()
24 Union(&r, SkIRect::MakeXYWH(0, 0, 1, 1)); in test_fromchrome()
25 TEST_NO_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 0, 0)); in test_fromchrome()
26 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 2, 2)); in test_fromchrome()
27 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, 0, 2, 2)); in test_fromchrome()
28 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 2, 2)); in test_fromchrome()
29 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, -1, 2, 2)); in test_fromchrome()
30 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 3, 3)); in test_fromchrome()
32 Union(&r, SkIRect::MakeXYWH(0, 0, 3, 3)); in test_fromchrome()
33 Union(&r, SkIRect::MakeXYWH(10, 0, 3, 3)); in test_fromchrome()
[all …]
DReadPixelsTest.cpp21 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H);
170 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bw, bh); in checkRead()
171 SkIRect clippedSrcRect = DEV_RECT; in checkRead()
220 static void init_bitmap(SkBitmap* bitmap, const SkIRect& rect, BitmapInit init, SkColorType ct, in init_bitmap()
246 const SkIRect testRects[] = { in DEF_GPUTEST()
250 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in DEF_GPUTEST()
252 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), in DEF_GPUTEST()
254 SkIRect::MakeLTRB(-10, -10, -1, -1), in DEF_GPUTEST()
256 SkIRect::MakeLTRB(-10, -10, 0, 0), in DEF_GPUTEST()
258 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), in DEF_GPUTEST()
[all …]
DWritePixelsTest.cpp25 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H);
222 SkIRect writeRect = SkIRect::MakeXYWH(writeX, writeY, bitmap.width(), bitmap.height()); in checkWrite()
357 const SkIRect testRects[] = { in DEF_GPUTEST()
361 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in DEF_GPUTEST()
363 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), in DEF_GPUTEST()
365 SkIRect::MakeLTRB(-10, -10, -1, -1), in DEF_GPUTEST()
367 SkIRect::MakeLTRB(-10, -10, 0, 0), in DEF_GPUTEST()
369 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), in DEF_GPUTEST()
371 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H / 4), in DEF_GPUTEST()
373 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, 0), in DEF_GPUTEST()
[all …]
DTileGridTest.cpp35 static void verifyTileHits(skiatest::Reporter* reporter, SkIRect rect, in verifyTileHits()
227 verifyTileHits(reporter, SkIRect::MakeXYWH(30, 0, 1, 1), 0); in DEF_TEST()
228 verifyTileHits(reporter, SkIRect::MakeXYWH(0, 30, 1, 1), 0); in DEF_TEST()
229 verifyTileHits(reporter, SkIRect::MakeXYWH(-10, 0, 1, 1), 0); in DEF_TEST()
230 verifyTileHits(reporter, SkIRect::MakeXYWH(0, -10, 1, 1), 0); in DEF_TEST()
233 verifyTileHits(reporter, SkIRect::MakeXYWH(0, 0, 9, 9), kTopLeft_Tile); in DEF_TEST()
234 verifyTileHits(reporter, SkIRect::MakeXYWH(0, 0, 10, 10), kAll_Tile); in DEF_TEST()
235 verifyTileHits(reporter, SkIRect::MakeXYWH(9, 9, 1, 1), kAll_Tile); in DEF_TEST()
236 verifyTileHits(reporter, SkIRect::MakeXYWH(10, 10, 1, 1), kAll_Tile); in DEF_TEST()
237 verifyTileHits(reporter, SkIRect::MakeXYWH(11, 11, 1, 1), kBottomRight_Tile); in DEF_TEST()
[all …]
/external/chromium_org/third_party/skia/tests/
DRegionTest.cpp12 static void Union(SkRegion* rgn, const SkIRect& rect) { in Union()
24 Union(&r, SkIRect::MakeXYWH(0, 0, 1, 1)); in test_fromchrome()
25 TEST_NO_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 0, 0)); in test_fromchrome()
26 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 2, 2)); in test_fromchrome()
27 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, 0, 2, 2)); in test_fromchrome()
28 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 2, 2)); in test_fromchrome()
29 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, -1, 2, 2)); in test_fromchrome()
30 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 3, 3)); in test_fromchrome()
32 Union(&r, SkIRect::MakeXYWH(0, 0, 3, 3)); in test_fromchrome()
33 Union(&r, SkIRect::MakeXYWH(10, 0, 3, 3)); in test_fromchrome()
[all …]
DReadPixelsTest.cpp21 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H);
170 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bw, bh); in checkRead()
171 SkIRect clippedSrcRect = DEV_RECT; in checkRead()
220 static void init_bitmap(SkBitmap* bitmap, const SkIRect& rect, BitmapInit init, SkColorType ct, in init_bitmap()
246 const SkIRect testRects[] = { in DEF_GPUTEST()
250 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in DEF_GPUTEST()
252 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), in DEF_GPUTEST()
254 SkIRect::MakeLTRB(-10, -10, -1, -1), in DEF_GPUTEST()
256 SkIRect::MakeLTRB(-10, -10, 0, 0), in DEF_GPUTEST()
258 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), in DEF_GPUTEST()
[all …]
DWritePixelsTest.cpp25 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H);
222 SkIRect writeRect = SkIRect::MakeXYWH(writeX, writeY, bitmap.width(), bitmap.height()); in checkWrite()
357 const SkIRect testRects[] = { in DEF_GPUTEST()
361 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in DEF_GPUTEST()
363 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), in DEF_GPUTEST()
365 SkIRect::MakeLTRB(-10, -10, -1, -1), in DEF_GPUTEST()
367 SkIRect::MakeLTRB(-10, -10, 0, 0), in DEF_GPUTEST()
369 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), in DEF_GPUTEST()
371 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H / 4), in DEF_GPUTEST()
373 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, 0), in DEF_GPUTEST()
[all …]
DTileGridTest.cpp35 static void verifyTileHits(skiatest::Reporter* reporter, SkIRect rect, in verifyTileHits()
227 verifyTileHits(reporter, SkIRect::MakeXYWH(30, 0, 1, 1), 0); in DEF_TEST()
228 verifyTileHits(reporter, SkIRect::MakeXYWH(0, 30, 1, 1), 0); in DEF_TEST()
229 verifyTileHits(reporter, SkIRect::MakeXYWH(-10, 0, 1, 1), 0); in DEF_TEST()
230 verifyTileHits(reporter, SkIRect::MakeXYWH(0, -10, 1, 1), 0); in DEF_TEST()
233 verifyTileHits(reporter, SkIRect::MakeXYWH(0, 0, 9, 9), kTopLeft_Tile); in DEF_TEST()
234 verifyTileHits(reporter, SkIRect::MakeXYWH(0, 0, 10, 10), kAll_Tile); in DEF_TEST()
235 verifyTileHits(reporter, SkIRect::MakeXYWH(9, 9, 1, 1), kAll_Tile); in DEF_TEST()
236 verifyTileHits(reporter, SkIRect::MakeXYWH(10, 10, 1, 1), kAll_Tile); in DEF_TEST()
237 verifyTileHits(reporter, SkIRect::MakeXYWH(11, 11, 1, 1), kBottomRight_Tile); in DEF_TEST()
[all …]
/external/chromium_org/third_party/skia/include/core/
DSkRegion.h39 explicit SkRegion(const SkIRect&);
86 const SkIRect& getBounds() const { return fBounds; } in getBounds()
115 bool setRect(const SkIRect&);
129 bool setRects(const SkIRect rects[], int count);
149 bool intersects(const SkIRect&) const;
168 bool contains(const SkIRect&) const;
184 bool quickContains(const SkIRect& r) const { in quickContains()
211 bool quickReject(const SkIRect& rect) const { in quickReject()
213 !SkIRect::Intersects(fBounds, rect); in quickReject()
223 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject()
[all …]
DSkRect.h20 struct SK_API SkIRect { struct
23 static SkIRect SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument
24 SkIRect r; in MakeEmpty()
29 static SkIRect SK_WARN_UNUSED_RESULT MakeLargest() { in MakeLargest() argument
30 SkIRect r; in MakeLargest()
35 static SkIRect SK_WARN_UNUSED_RESULT MakeWH(int32_t w, int32_t h) { in MakeWH() argument
36 SkIRect r; in MakeWH()
41 static SkIRect SK_WARN_UNUSED_RESULT MakeSize(const SkISize& size) { in MakeSize() argument
42 SkIRect r; in MakeSize()
47 static SkIRect SK_WARN_UNUSED_RESULT MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b) { in MakeLTRB() argument
[all …]
/external/skia/include/core/
DSkRegion.h39 explicit SkRegion(const SkIRect&);
86 const SkIRect& getBounds() const { return fBounds; } in getBounds()
115 bool setRect(const SkIRect&);
129 bool setRects(const SkIRect rects[], int count);
149 bool intersects(const SkIRect&) const;
168 bool contains(const SkIRect&) const;
184 bool quickContains(const SkIRect& r) const { in quickContains()
211 bool quickReject(const SkIRect& rect) const { in quickReject()
213 !SkIRect::Intersects(fBounds, rect); in quickReject()
223 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject()
[all …]
DSkRect.h20 struct SK_API SkIRect { struct
23 static SkIRect SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument
24 SkIRect r; in MakeEmpty()
29 static SkIRect SK_WARN_UNUSED_RESULT MakeLargest() { in MakeLargest() argument
30 SkIRect r; in MakeLargest()
35 static SkIRect SK_WARN_UNUSED_RESULT MakeWH(int32_t w, int32_t h) { in MakeWH() argument
36 SkIRect r; in MakeWH()
41 static SkIRect SK_WARN_UNUSED_RESULT MakeSize(const SkISize& size) { in MakeSize() argument
42 SkIRect r; in MakeSize()
47 static SkIRect SK_WARN_UNUSED_RESULT MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b) { in MakeLTRB() argument
[all …]
/external/skia/include/effects/
DSkMatrixConvolutionImageFilter.h85 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const SK_OVERRIDE;
92 const SkIRect& bounds) const SK_OVERRIDE;
108 const SkIRect& rect,
109 const SkIRect& bounds) const;
113 const SkIRect& rect,
114 const SkIRect& bounds) const;
117 const SkIRect& rect,
118 const SkIRect& bounds) const;
121 const SkIRect& rect,
122 const SkIRect& bounds) const;
/external/chromium_org/third_party/skia/include/effects/
DSkMatrixConvolutionImageFilter.h85 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const SK_OVERRIDE;
92 const SkIRect& bounds) const SK_OVERRIDE;
108 const SkIRect& rect,
109 const SkIRect& bounds) const;
113 const SkIRect& rect,
114 const SkIRect& bounds) const;
117 const SkIRect& rect,
118 const SkIRect& bounds) const;
121 const SkIRect& rect,
122 const SkIRect& bounds) const;
/external/chromium_org/third_party/skia/src/core/
DSkRTree.cpp11 static inline uint32_t get_area(const SkIRect& rect);
12 static inline uint32_t get_overlap(const SkIRect& rect1, const SkIRect& rect2);
13 static inline uint32_t get_margin(const SkIRect& rect);
14 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2);
15 static inline void join_no_empty_check(const SkIRect& joinWith, SkIRect* out);
47 void SkRTree::insert(void* data, const SkIRect& bounds, bool defer) { in insert()
105 void SkRTree::search(const SkIRect& query, SkTDArray<void*>* results) { in search()
110 if (!this->isEmpty() && SkIRect::IntersectsNoEmptyCheck(fRoot.fBounds, query)) { in search()
184 const SkIRect& subtreeBounds = root->child(i)->fBounds; in chooseSubtree()
202 const SkIRect& subtreeBounds = root->child(i)->fBounds; in chooseSubtree()
[all …]
DSkRasterClip.h17 SkRasterClip(const SkIRect&);
37 const SkIRect& getBounds() const;
40 bool setRect(const SkIRect&);
43 bool setPath(const SkPath& path, const SkIRect& clip, bool doAA);
45 bool op(const SkIRect&, SkRegion::Op);
55 bool quickContains(const SkIRect& rect) const;
57 return quickContains(SkIRect::MakeLTRB(left, top, right, bottom)); in quickContains()
65 bool quickReject(const SkIRect& rect) const { in quickReject()
67 !SkIRect::Intersects(this->getBounds(), rect); in quickReject()
142 const SkIRect& getBounds() const { in getBounds()
DSkScanPriv.h18 SkScanClipper(SkBlitter* blitter, const SkRegion* clip, const SkIRect& bounds,
22 const SkIRect* getClipRect() const { return fClipRect; } in getClipRect()
28 const SkIRect* fClipRect;
32 void sk_fill_path(const SkPath& path, const SkIRect* clipRect,
37 void sk_blit_above(SkBlitter*, const SkIRect& avoid, const SkRegion& clip);
38 void sk_blit_below(SkBlitter*, const SkIRect& avoid, const SkRegion& clip);
DSkQuadTree.h35 SkQuadTree(const SkIRect& bounds);
47 virtual void insert(void* data, const SkIRect& bounds, bool defer = false) SK_OVERRIDE;
57 virtual void search(const SkIRect& query, SkTDArray<void*>* results) SK_OVERRIDE;
78 SkIRect fBounds;
92 SkIRect fBounds;
101 SkIRect fRootBounds;
106 void search(Node* node, const SkIRect& query, SkTDArray<void*>* results) const;
/external/skia/src/core/
DSkRTree.cpp11 static inline uint32_t get_area(const SkIRect& rect);
12 static inline uint32_t get_overlap(const SkIRect& rect1, const SkIRect& rect2);
13 static inline uint32_t get_margin(const SkIRect& rect);
14 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2);
15 static inline void join_no_empty_check(const SkIRect& joinWith, SkIRect* out);
47 void SkRTree::insert(void* data, const SkIRect& bounds, bool defer) { in insert()
105 void SkRTree::search(const SkIRect& query, SkTDArray<void*>* results) { in search()
110 if (!this->isEmpty() && SkIRect::IntersectsNoEmptyCheck(fRoot.fBounds, query)) { in search()
184 const SkIRect& subtreeBounds = root->child(i)->fBounds; in chooseSubtree()
202 const SkIRect& subtreeBounds = root->child(i)->fBounds; in chooseSubtree()
[all …]
DSkRasterClip.h17 SkRasterClip(const SkIRect&);
37 const SkIRect& getBounds() const;
40 bool setRect(const SkIRect&);
43 bool setPath(const SkPath& path, const SkIRect& clip, bool doAA);
45 bool op(const SkIRect&, SkRegion::Op);
55 bool quickContains(const SkIRect& rect) const;
57 return quickContains(SkIRect::MakeLTRB(left, top, right, bottom)); in quickContains()
65 bool quickReject(const SkIRect& rect) const { in quickReject()
67 !SkIRect::Intersects(this->getBounds(), rect); in quickReject()
142 const SkIRect& getBounds() const { in getBounds()
DSkScanPriv.h18 SkScanClipper(SkBlitter* blitter, const SkRegion* clip, const SkIRect& bounds,
22 const SkIRect* getClipRect() const { return fClipRect; } in getClipRect()
28 const SkIRect* fClipRect;
32 void sk_fill_path(const SkPath& path, const SkIRect* clipRect,
37 void sk_blit_above(SkBlitter*, const SkIRect& avoid, const SkRegion& clip);
38 void sk_blit_below(SkBlitter*, const SkIRect& avoid, const SkRegion& clip);
DSkQuadTree.h35 SkQuadTree(const SkIRect& bounds);
47 virtual void insert(void* data, const SkIRect& bounds, bool defer = false) SK_OVERRIDE;
57 virtual void search(const SkIRect& query, SkTDArray<void*>* results) SK_OVERRIDE;
78 SkIRect fBounds;
92 SkIRect fBounds;
101 SkIRect fRootBounds;
106 void search(Node* node, const SkIRect& query, SkTDArray<void*>* results) const;
/external/chromium_org/skia/ext/
Dskia_utils_win.cc16 SK_COMPILE_ASSERT(offsetof(RECT, left) == offsetof(SkIRect, fLeft), o1);
17 SK_COMPILE_ASSERT(offsetof(RECT, top) == offsetof(SkIRect, fTop), o2);
18 SK_COMPILE_ASSERT(offsetof(RECT, right) == offsetof(SkIRect, fRight), o3);
19 SK_COMPILE_ASSERT(offsetof(RECT, bottom) == offsetof(SkIRect, fBottom), o4);
20 SK_COMPILE_ASSERT(sizeof(RECT().left) == sizeof(SkIRect().fLeft), o5);
21 SK_COMPILE_ASSERT(sizeof(RECT().top) == sizeof(SkIRect().fTop), o6);
22 SK_COMPILE_ASSERT(sizeof(RECT().right) == sizeof(SkIRect().fRight), o7);
23 SK_COMPILE_ASSERT(sizeof(RECT().bottom) == sizeof(SkIRect().fBottom), o8);
24 SK_COMPILE_ASSERT(sizeof(RECT) == sizeof(SkIRect), o9);
/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/
DNativeImageSkia.h96 bool hasResizedBitmap(const SkISize& scaledImageSize, const SkIRect& scaledImageSubset) const;
106 SkBitmap resizedBitmap(const SkISize& scaledImageSize, const SkIRect& scaledImageSubset) const;
129 SkIRect scaledImageSubset;
133 … bool isEqual(const SkISize& otherScaledImageSize, const SkIRect& otherScaledImageSubset) const;
134 void set(const SkISize& otherScaledImageSize, const SkIRect& otherScaledImageSubset);
135 SkIRect rectInSubset(const SkIRect& otherScaledImageRect);
153 …bool shouldCacheResampling(const SkISize& scaledImageSize, const SkIRect& scaledImageSubset) const;
/external/chromium_org/third_party/skia/src/gpu/
DGrClipMaskManager.h119 const SkIRect& clipSpaceIBounds,
126 const SkIRect& clipSpaceIBounds);
131 const SkIRect& clipSpaceIBounds);
135 GrTexture* getCachedMaskTexture(int32_t elementsGenID, const SkIRect& clipSpaceIBounds);
141 const SkIRect& clipSpaceIBounds,
159 const SkIRect& dstBound,
160 const SkIRect& srcBound);
165 const SkIRect& bounds);

12345678910>>...28