/external/skia/tests/ |
D | RegionTest.cpp | 13 static void Union(SkRegion* rgn, const SkIRect& rect) { in Union() 25 Union(&r, SkIRect::MakeXYWH(0, 0, 1, 1)); in test_fromchrome() 26 TEST_NO_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 0, 0)); in test_fromchrome() 27 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 2, 2)); in test_fromchrome() 28 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, 0, 2, 2)); in test_fromchrome() 29 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 2, 2)); in test_fromchrome() 30 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, -1, 2, 2)); in test_fromchrome() 31 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 3, 3)); in test_fromchrome() 33 Union(&r, SkIRect::MakeXYWH(0, 0, 3, 3)); in test_fromchrome() 34 Union(&r, SkIRect::MakeXYWH(10, 0, 3, 3)); in test_fromchrome() [all …]
|
D | ReadPixelsTest.cpp | 22 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); 169 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bw, bh); in checkRead() 170 SkIRect clippedSrcRect = DEV_RECT; in checkRead() 219 static void init_bitmap(SkBitmap* bitmap, const SkIRect& rect, BitmapInit init, SkColorType ct, in init_bitmap() 245 const SkIRect testRects[] = { in DEF_GPUTEST() 249 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in DEF_GPUTEST() 251 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), in DEF_GPUTEST() 253 SkIRect::MakeLTRB(-10, -10, -1, -1), in DEF_GPUTEST() 255 SkIRect::MakeLTRB(-10, -10, 0, 0), in DEF_GPUTEST() 257 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), in DEF_GPUTEST() [all …]
|
D | WritePixelsTest.cpp | 26 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() 364 const SkIRect testRects[] = { in DEF_GPUTEST() 368 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in DEF_GPUTEST() 370 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), in DEF_GPUTEST() 372 SkIRect::MakeLTRB(-10, -10, -1, -1), in DEF_GPUTEST() 374 SkIRect::MakeLTRB(-10, -10, 0, 0), in DEF_GPUTEST() 376 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), in DEF_GPUTEST() 378 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H / 4), in DEF_GPUTEST() 380 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, 0), in DEF_GPUTEST() [all …]
|
D | DrawTextTest.cpp | 19 static void create(SkBitmap* bm, SkIRect bound) { in create() 32 static bool compare(const SkBitmap& ref, const SkIRect& iref, in compare() 33 const SkBitmap& test, const SkIRect& itest) in compare() 67 SkIRect drawTextRect = SkIRect::MakeWH(64, 64); in DEF_TEST() 72 SkIRect drawPosTextRect = SkIRect::MakeWH(64, 64); in DEF_TEST()
|
D | DeviceLooperTest.cpp | 27 SkIRect fRCBounds; 28 SkIRect fRect; 63 SkIRect r = rc.getBounds(); in test_simple() 80 const SkIRect baseR = SkIRect::MakeWH(w, h); in make_rgn() 86 SkIRect r = baseR; in make_rgn() 115 const SkIRect rect = SkIRect::MakeWH(w, h); in test_complex()
|
D | FontHostStreamTest.cpp | 23 static void create(SkBitmap* bm, SkIRect bound) { in create() 36 static bool compare(const SkBitmap& ref, const SkIRect& iref, in compare() 37 const SkBitmap& test, const SkIRect& itest) in compare() 76 SkIRect origRect = SkIRect::MakeWH(64, 64); in DEF_TEST() 81 SkIRect streamRect = SkIRect::MakeWH(64, 64); in DEF_TEST()
|
D | ClipCacheTest.cpp | 62 SkIRect intScreen = SkIRect::MakeWH(kXSize, kYSize); in test_clip_bounds() 91 SkIRect devGrClipBound; in test_clip_bounds() 107 const SkIRect& bound) { in check_state() 112 SkIRect cacheBound; in check_state() 122 SkIRect emptyBound; in check_empty_state() 125 SkIRect cacheBound; in check_empty_state() 146 SkIRect bound1; in test_cache() 175 SkIRect bound2; in test_cache()
|
/external/skia/include/core/ |
D | SkRegion.h | 39 explicit SkRegion(const SkIRect&); 85 const SkIRect& getBounds() const { return fBounds; } in getBounds() 114 bool setRect(const SkIRect&); 128 bool setRects(const SkIRect rects[], int count); 148 bool intersects(const SkIRect&) const; 167 bool contains(const SkIRect&) const; 183 bool quickContains(const SkIRect& r) const { in quickContains() 210 bool quickReject(const SkIRect& rect) const { in quickReject() 212 !SkIRect::Intersects(fBounds, rect); in quickReject() 222 !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 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 …]
|
D | SkImageFilter.h | 68 Context(const SkMatrix& ctm, const SkIRect& clipBounds, Cache* cache) : in Context() 72 const SkIRect& clipBounds() const { return fClipBounds; } in clipBounds() 76 SkIRect fClipBounds; 115 bool filterBounds(const SkIRect& src, const SkMatrix& ctm, SkIRect* dst) const; 296 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const; 313 SkIRect* bounds) const; 324 SkIRect* bounds, SkBitmap* result) const; 342 const SkIRect& bounds) const;
|
/external/skia/include/effects/ |
D | SkMatrixConvolutionImageFilter.h | 82 bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const override; 87 const SkIRect& bounds) 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/ |
D | SkMatrixConvolutionImageFilter.cpp | 122 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() 129 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() 138 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() 153 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() 165 const SkIRect& r, in filterPixels() 166 const SkIRect& bounds) const { in filterPixels() 167 SkIRect rect(r); in filterPixels() 209 const SkIRect& rect, in filterPixels() 210 const SkIRect& bounds) const { in filterPixels() 220 const SkIRect& rect, in filterInteriorPixels() [all …]
|
/external/skia/src/gpu/ |
D | GrTextContext.h | 34 SkScalar y, const SkIRect& clipBounds); 39 const SkPoint& offset, const SkIRect& clipBounds); 42 SkDrawFilter*, const SkIRect& clipBounds); 57 SkIRect fClipRect; 58 SkIRect fRegionClipBounds; 69 SkScalar x, SkScalar y, const SkIRect& clipBounds) = 0; 74 const SkPoint& offset, const SkIRect& clipBounds) = 0; 78 const SkIRect& clipBounds); 82 const SkPoint& offset, const SkIRect& clipBounds); 85 const SkIRect& regionClipBounds);
|
D | GrClipMaskManager.h | 107 const SkIRect& clipSpaceIBounds, 116 const SkIRect& clipSpaceIBounds); 123 const SkIRect& clipSpaceIBounds); 127 GrTexture* getCachedMaskTexture(int32_t elementsGenID, const SkIRect& clipSpaceIBounds); 132 const SkIRect& clipSpaceIBounds, 160 const SkIRect& dstBound, 161 const SkIRect& srcBound); 166 const SkIRect& bounds);
|
D | GrLayerCache.h | 147 const SkIRect& srcIR, const SkIRect& dstIR, in GrCachedLayer() 160 , fRect(SkIRect::MakeEmpty()) in GrCachedLayer() 187 const SkIRect& srcIR() const { return fSrcIR; } in srcIR() 188 const SkIRect& dstIR() const { return fDstIR; } in dstIR() 190 void setTexture(GrTexture* texture, const SkIRect& rect) { in setTexture() 200 const SkIRect& rect() const { return fRect; } in rect() 229 const SkIRect fSrcIR; 231 const SkIRect fDstIR; 250 SkIRect fRect; 297 const SkIRect& srcIR, [all …]
|
D | GrAtlasTextContext.h | 49 SkScalar x, SkScalar y, const SkIRect& regionClipBounds) override; 54 const SkPoint& offset, const SkIRect& regionClipBounds) override; 57 SkDrawFilter*, const SkIRect& clipBounds) override; 263 GrColor color, GrFontScaler*, const SkIRect& clipRect); 265 GrColor color, GrFontScaler*, const SkIRect& clipRect, SkScalar textRatio, 275 const SkMatrix& viewMatrix, const SkIRect& clipBounds, SkScalar x, 285 SkScalar transX, SkScalar transY, const SkIRect& clipBounds); 290 const SkIRect& clipBounds, SkScalar x, SkScalar y, SkScalar transX, SkScalar transY); 292 const GrPaint&, const GrClip&, const SkIRect& clipBounds); 303 const SkIRect& clipRect); [all …]
|
D | GrSoftwarePathRenderer.cpp | 48 SkIRect* devPathBounds, in get_path_and_clip_bounds() 49 SkIRect* devClipBounds) { in get_path_and_clip_bounds() 59 *devPathBounds = SkIRect::MakeWH(rt->width(), rt->height()); in get_path_and_clip_bounds() 66 SkIRect pathIBounds; in get_path_and_clip_bounds() 75 *devPathBounds = SkIRect::EmptyIRect(); in get_path_and_clip_bounds() 86 const SkIRect& devClipBounds, in draw_around_inv_path() 87 const SkIRect& devPathBounds) { in draw_around_inv_path() 131 SkIRect devPathBounds, devClipBounds; in onDrawPath()
|
D | SkGrPixelRef.cpp | 57 SkColorProfileType dstPT, const SkIRect* subset) { in copy_to_new_texture_pixelref() 67 SkIRect srcRect; in copy_to_new_texture_pixelref() 72 srcRect = SkIRect::MakeWH(texture->width(), texture->height()); in copy_to_new_texture_pixelref() 74 SkASSERT(SkIRect::MakeWH(texture->width(), texture->height()).contains(*subset)); in copy_to_new_texture_pixelref() 130 const SkIRect* subset) { in deepCopy() 154 bool SkGrPixelRef::onReadPixels(SkBitmap* dst, const SkIRect* subset) { in onReadPixels() 159 SkIRect bounds; in onReadPixels() 163 bounds = SkIRect::MakeWH(this->info().width(), this->info().height()); in onReadPixels()
|
/external/skia/src/core/ |
D | SkRasterClip.h | 17 SkRasterClip(const SkIRect&, bool forceConservativeRects = false); 39 const SkIRect& getBounds() const; 42 bool setRect(const SkIRect&); 44 bool op(const SkIRect&, SkRegion::Op); 54 bool quickContains(const SkIRect& rect) const; 56 return quickContains(SkIRect::MakeLTRB(left, top, right, bottom)); in quickContains() 64 bool quickReject(const SkIRect& rect) const { in quickReject() 65 return !SkIRect::Intersects(this->getBounds(), rect); in quickReject() 111 bool setPath(const SkPath& path, const SkIRect& clip, bool doAA); 113 bool setConservativeRect(const SkRect& r, const SkIRect& clipR, bool isInverse); [all …]
|
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() 58 SkIRect ir; in FillRect() 66 void SkScan::FillIRect(const SkIRect& r, const SkRasterClip& clip, in FillIRect()
|
D | SkBitmapCache.cpp | 38 static SkIRect get_bounds_from_bitmap(const SkBitmap& bm) { in get_bounds_from_bitmap() 40 return SkIRect::MakeEmpty(); in get_bounds_from_bitmap() 43 return SkIRect::MakeXYWH(origin.fX, origin.fY, bm.width(), bm.height()); in get_bounds_from_bitmap() 51 BitmapKey(uint32_t genID, SkScalar sx, SkScalar sy, const SkIRect& bounds) in BitmapKey() 64 SkIRect fBounds; 68 BitmapRec(uint32_t genID, SkScalar scaleX, SkScalar scaleY, const SkIRect& bounds, in BitmapRec() 119 bool SkBitmapCache::Find(uint32_t genID, const SkIRect& subset, SkBitmap* result, in Find() 126 bool SkBitmapCache::Add(SkPixelRef* pr, const SkIRect& subset, const SkBitmap& result, in Add() 153 MipMapKey(uint32_t genID, const SkIRect& bounds) : fGenID(genID), fBounds(bounds) { in MipMapKey() 159 SkIRect fBounds;
|
D | SkAAClip.h | 30 const SkIRect& getBounds() const { return fBounds; } in getBounds() 37 bool setRect(const SkIRect&); 46 bool op(const SkIRect&, SkRegion::Op); 64 bool quickContains(const SkIRect& r) const { in quickContains() 85 SkIRect fBounds; 117 void blitMask(const SkMask&, const SkIRect& clip) override; 123 SkIRect fAAClipBounds;
|
/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);
|
/external/skia/samplecode/ |
D | SampleAAClip.cpp | 14 static void testop(const SkIRect& r0, const SkIRect& r1, SkRegion::Op op, in testop() 15 const SkIRect& expectedR) { in testop() 21 SkDEBUGCODE(SkIRect r2 = c2.getBounds()); in testop() 26 SkIRect r0; 27 SkIRect r1; 29 SkIRect expectedR;
|