/external/skia/tests/ |
D | RegionTest.cpp | 12 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 …]
|
D | ReadPixelsTest.cpp | 21 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); 182 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bw, bh); in checkRead() 183 SkIRect clippedSrcRect = DEV_RECT; in checkRead() 234 void init_bitmap(SkBitmap* bitmap, const SkIRect& rect, BitmapInit init) { in init_bitmap() 258 const SkIRect testRects[] = { in ReadPixelsTest() 262 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in ReadPixelsTest() 264 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), in ReadPixelsTest() 266 SkIRect::MakeLTRB(-10, -10, -1, -1), in ReadPixelsTest() 268 SkIRect::MakeLTRB(-10, -10, 0, 0), in ReadPixelsTest() 270 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), in ReadPixelsTest() [all …]
|
D | WritePixelsTest.cpp | 22 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); 243 SkIRect writeRect = SkIRect::MakeXYWH(writeX, writeY, bitmap.width(), bitmap.height()); in checkWrite() 352 const SkIRect testRects[] = { in WritePixelsTest() 356 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in WritePixelsTest() 358 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), in WritePixelsTest() 360 SkIRect::MakeLTRB(-10, -10, -1, -1), in WritePixelsTest() 362 SkIRect::MakeLTRB(-10, -10, 0, 0), in WritePixelsTest() 364 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), in WritePixelsTest() 366 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H / 4), in WritePixelsTest() 368 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, 0), in WritePixelsTest() [all …]
|
D | TileGridTest.cpp | 42 static void verifyTileHits(skiatest::Reporter* reporter, SkIRect rect, uint32_t tileMask) { in verifyTileHits() 111 verifyTileHits(reporter, SkIRect::MakeXYWH(30, 0, 1, 1), 0); in Test() 112 verifyTileHits(reporter, SkIRect::MakeXYWH(0, 30, 1, 1), 0); in Test() 113 verifyTileHits(reporter, SkIRect::MakeXYWH(-10, 0, 1, 1), 0); in Test() 114 verifyTileHits(reporter, SkIRect::MakeXYWH(0, -10, 1, 1), 0); in Test() 117 verifyTileHits(reporter, SkIRect::MakeXYWH(0, 0, 8, 8), kTopLeft_Tile); in Test() 118 verifyTileHits(reporter, SkIRect::MakeXYWH(0, 0, 9, 9), kAll_Tile); in Test() 119 verifyTileHits(reporter, SkIRect::MakeXYWH(10, 10, 1, 1), kAll_Tile); in Test() 120 verifyTileHits(reporter, SkIRect::MakeXYWH(11, 11, 1, 1), kBottomRight_Tile); in Test() 123 verifyTileHits(reporter, SkIRect::MakeXYWH(5, 5, 10, 1), kTopLeft_Tile | kTopRight_Tile); in Test() [all …]
|
D | FontHostStreamTest.cpp | 24 static void create(SkBitmap* bm, SkIRect bound, SkBitmap::Config config) { in create() 38 static bool compare(const SkBitmap& ref, const SkIRect& iref, in compare() 39 const SkBitmap& test, const SkIRect& itest) in compare() 77 SkIRect origRect = SkIRect::MakeWH(64, 64); in test_fontHostStream() 82 SkIRect streamRect = SkIRect::MakeWH(64, 64); in test_fontHostStream()
|
D | DrawTextTest.cpp | 21 static void create(SkBitmap* bm, SkIRect bound, SkBitmap::Config config) { in create() 35 static bool compare(const SkBitmap& ref, const SkIRect& iref, in compare() 36 const SkBitmap& test, const SkIRect& itest) in compare() 71 SkIRect drawTextRect = SkIRect::MakeWH(64, 64); in test_drawText() 76 SkIRect drawPosTextRect = SkIRect::MakeWH(64, 64); in test_drawText()
|
/external/skia/legacy/include/core/ |
D | SkRegion.h | 39 explicit SkRegion(const SkIRect&); 86 const SkIRect& getBounds() const { return fBounds; } in getBounds() 105 bool setRect(const SkIRect&); 119 bool setRects(const SkIRect rects[], int count); 139 bool intersects(const SkIRect&) const; 158 bool contains(const SkIRect&) const; 174 bool quickContains(const SkIRect& r) const { in quickContains() 201 bool quickReject(const SkIRect& rect) const { in quickReject() 203 !SkIRect::Intersects(fBounds, rect); in quickReject() 213 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject() [all …]
|
D | SkRect.h | 20 struct SK_API SkIRect { struct 23 static SkIRect MakeEmpty() { in MakeEmpty() argument 24 SkIRect r; in MakeEmpty() 29 static SkIRect MakeWH(int32_t w, int32_t h) { in MakeWH() argument 30 SkIRect r; in MakeWH() 35 static SkIRect MakeSize(const SkISize& size) { in MakeSize() argument 36 SkIRect r; in MakeSize() 41 static SkIRect MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b) { in MakeLTRB() argument 42 SkIRect rect; in MakeLTRB() 47 static SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h) { in MakeXYWH() argument [all …]
|
D | SkBounder.h | 18 struct SkIRect; 37 bool doIRect(const SkIRect&); 38 bool doIRectGlyph(const SkIRect& , int x, int y, const SkGlyph&); 47 virtual bool onIRect(const SkIRect&) { in onIRect() argument 65 virtual bool onIRectGlyph(const SkIRect& r, const GlyphRec&) { in onIRectGlyph()
|
/external/skia/include/core/ |
D | SkRegion.h | 39 explicit SkRegion(const SkIRect&); 86 const SkIRect& getBounds() const { return fBounds; } in getBounds() 105 bool setRect(const SkIRect&); 119 bool setRects(const SkIRect rects[], int count); 139 bool intersects(const SkIRect&) const; 158 bool contains(const SkIRect&) const; 174 bool quickContains(const SkIRect& r) const { in quickContains() 201 bool quickReject(const SkIRect& rect) const { in quickReject() 203 !SkIRect::Intersects(fBounds, rect); in quickReject() 213 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject() [all …]
|
D | SkRect.h | 20 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 MakeWH(int32_t w, int32_t h) { in MakeWH() argument 30 SkIRect r; in MakeWH() 35 static SkIRect SK_WARN_UNUSED_RESULT MakeSize(const SkISize& size) { in MakeSize() argument 36 SkIRect r; in MakeSize() 41 static SkIRect SK_WARN_UNUSED_RESULT MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b) { in MakeLTRB() argument 42 SkIRect rect; in MakeLTRB() 47 static SkIRect SK_WARN_UNUSED_RESULT MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h) { in MakeXYWH() argument [all …]
|
D | SkBounder.h | 18 struct SkIRect; 39 bool doIRect(const SkIRect&); 40 bool doIRectGlyph(const SkIRect& , int x, int y, const SkGlyph&); 49 virtual bool onIRect(const SkIRect&) { in onIRect() argument 67 virtual bool onIRectGlyph(const SkIRect& r, const GlyphRec&) { in onIRectGlyph()
|
/external/skia/src/core/ |
D | SkRTree.cpp | 12 static inline uint32_t get_area(const SkIRect& rect); 13 static inline uint32_t get_overlap(const SkIRect& rect1, const SkIRect& rect2); 14 static inline uint32_t get_margin(const SkIRect& rect); 15 static inline uint32_t get_overlap_increase(const SkIRect& rect1, const SkIRect& rect2, 16 SkIRect expandBy); 17 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2); 18 static inline void join_no_empty_check(const SkIRect& joinWith, SkIRect* out); 49 void SkRTree::insert(void* data, const SkIRect& bounds, bool defer) { in insert() 107 void SkRTree::search(const SkIRect& query, SkTDArray<void*>* results) { in search() 112 if (!this->isEmpty() && SkIRect::IntersectsNoEmptyCheck(fRoot.fBounds, query)) { in search() [all …]
|
D | SkRasterClip.h | 17 SkRasterClip(const SkIRect&); 37 const SkIRect& getBounds() const; 40 bool setRect(const SkIRect&); 43 bool setPath(const SkPath& path, const SkIRect& clip, bool doAA); 46 bool op(const SkIRect&, SkRegion::Op); 56 bool quickContains(const SkIRect& rect) const; 58 return quickContains(SkIRect::MakeLTRB(left, top, right, bottom)); in quickContains() 66 bool quickReject(const SkIRect& rect) const { in quickReject() 68 !SkIRect::Intersects(this->getBounds(), rect); in quickReject() 142 const SkIRect& getBounds() const { in getBounds()
|
D | SkScanPriv.h | 18 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);
|
D | SkScan.cpp | 14 static inline void blitrect(SkBlitter* blitter, const SkIRect& r) { in blitrect() 18 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, in FillIRect() 23 const SkIRect& clipBounds = clip->getBounds(); in FillIRect() 28 SkIRect rr = r; in FillIRect() 35 const SkIRect& rr = cliper.rect(); in FillIRect() 50 SkIRect r; in FillXRect() 60 SkIRect ir; in FillRect() 70 void SkScan::FillIRect(const SkIRect& r, const SkRasterClip& clip, in FillIRect()
|
D | SkRTree.h | 69 virtual void insert(void* data, const SkIRect& bounds, bool defer = false); 79 virtual void search(const SkIRect& query, SkTDArray<void*>* results); 102 SkIRect fBounds; 119 typedef int32_t SkIRect::*SortSide; 154 SkIRect computeBounds(Node* n); 156 void search(Node* root, const SkIRect query, SkTDArray<void*>* results) const; 172 int validateSubtree(Node* root, SkIRect bounds, bool isRoot = false);
|
D | SkAAClip.h | 30 const SkIRect& getBounds() const { return fBounds; } in getBounds() 33 bool setRect(const SkIRect&); 42 bool op(const SkIRect&, SkRegion::Op); 60 bool quickContains(const SkIRect& r) const { in quickContains() 79 SkIRect fBounds; 111 virtual void blitMask(const SkMask&, const SkIRect& clip) SK_OVERRIDE; 117 SkIRect fAAClipBounds;
|
/external/skia/legacy/src/core/ |
D | SkRasterClip.h | 17 SkRasterClip(const SkIRect&); 29 const SkIRect& getBounds() const; 32 bool setRect(const SkIRect&); 35 bool setPath(const SkPath& path, const SkIRect& clip, bool doAA); 38 bool op(const SkIRect&, SkRegion::Op); 48 bool quickContains(const SkIRect& rect) const; 50 return quickContains(SkIRect::MakeLTRB(left, top, right, bottom)); in quickContains() 58 bool quickReject(const SkIRect& rect) const { in quickReject() 60 !SkIRect::Intersects(this->getBounds(), rect); in quickReject() 117 const SkIRect& getBounds() const { in getBounds()
|
D | SkScanPriv.h | 18 SkScanClipper(SkBlitter* blitter, const SkRegion* clip, const SkIRect& bounds); 21 const SkIRect* getClipRect() const { return fClipRect; } in getClipRect() 27 const SkIRect* fClipRect; 31 void sk_fill_path(const SkPath& path, const SkIRect* clipRect, 36 void sk_blit_above(SkBlitter*, const SkIRect& avoid, const SkRegion& clip); 37 void sk_blit_below(SkBlitter*, const SkIRect& avoid, const SkRegion& clip);
|
D | SkScan.cpp | 14 static inline void blitrect(SkBlitter* blitter, const SkIRect& r) { in blitrect() 18 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, in FillIRect() 23 const SkIRect& clipBounds = clip->getBounds(); in FillIRect() 28 SkIRect rr = r; in FillIRect() 35 const SkIRect& rr = cliper.rect(); in FillIRect() 50 SkIRect r; in FillXRect() 60 SkIRect ir; in FillRect() 70 void SkScan::FillIRect(const SkIRect& r, const SkRasterClip& clip, in FillIRect()
|
D | SkAAClip.h | 30 const SkIRect& getBounds() const { return fBounds; } in getBounds() 33 bool setRect(const SkIRect&); 42 bool op(const SkIRect&, SkRegion::Op); 60 bool quickContains(const SkIRect& r) const { in quickContains() 79 SkIRect fBounds; 111 virtual void blitMask(const SkMask&, const SkIRect& clip) SK_OVERRIDE; 117 SkIRect fAAClipBounds;
|
/external/skia/bench/ |
D | RTreeBench.cpp | 21 typedef SkIRect (*MakeRectProc)(SkRandom&, int, int); 108 SkIRect query; in onDraw() 148 static inline SkIRect make_simple_rect(SkRandom&, int index, int numRects) { in make_simple_rect() 149 SkIRect out = {0, 0, GENERATE_EXTENTS, GENERATE_EXTENTS}; in make_simple_rect() 153 static inline SkIRect make_concentric_rects_increasing(SkRandom&, int index, int numRects) { in make_concentric_rects_increasing() 154 SkIRect out = {0, 0, index + 1, index + 1}; in make_concentric_rects_increasing() 158 static inline SkIRect make_concentric_rects_decreasing(SkRandom&, int index, int numRects) { in make_concentric_rects_decreasing() 159 SkIRect out = {0, 0, numRects - index, numRects - index}; in make_concentric_rects_decreasing() 163 static inline SkIRect make_point_rects(SkRandom& rand, int index, int numRects) { in make_point_rects() 164 SkIRect out; in make_point_rects() [all …]
|
/external/skia/legacy/include/utils/ |
D | SkCullPoints.h | 18 SkCullPoints(const SkIRect& r); 20 void reset(const SkIRect& r); 36 SkIRect fR; // the caller's rectangle 56 SkCullPointsPath(const SkIRect& r, SkPath* dst); 58 void reset(const SkIRect& r, SkPath* dst);
|
/external/skia/include/utils/ |
D | SkCullPoints.h | 18 SkCullPoints(const SkIRect& r); 20 void reset(const SkIRect& r); 36 SkIRect fR; // the caller's rectangle 56 SkCullPointsPath(const SkIRect& r, SkPath* dst); 58 void reset(const SkIRect& r, SkPath* dst);
|