/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 | WritePixelsTest.cpp | 23 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); 213 SkIRect writeRect = SkIRect::MakeXYWH(writeX, writeY, bitmap.width(), bitmap.height()); in check_write() 305 const SkIRect testRects[] = { in test_write_pixels() 309 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in test_write_pixels() 311 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), in test_write_pixels() 313 SkIRect::MakeLTRB(-10, -10, -1, -1), in test_write_pixels() 315 SkIRect::MakeLTRB(-10, -10, 0, 0), in test_write_pixels() 317 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), in test_write_pixels() 319 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H / 4), in test_write_pixels() 321 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, 0), in test_write_pixels() [all …]
|
D | ClearTest.cpp | 18 static bool check_rect(GrDrawContext* dc, const SkIRect& rect, uint32_t expectedValue, in check_rect() 72 SkIRect fullRect = SkIRect::MakeWH(kW, kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 78 SkIRect mid1Rect = SkIRect::MakeXYWH(1, 1, kW-2, kH-2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 79 SkIRect outerLeftEdge = SkIRect::MakeXYWH(0, 0, 1, kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 80 SkIRect outerTopEdge = SkIRect::MakeXYWH(0, 0, kW, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 81 SkIRect outerRightEdge = SkIRect::MakeXYWH(kW-1, 0, 1, kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 82 SkIRect outerBottomEdge = SkIRect::MakeXYWH(0, kH-1, kW, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 86 SkIRect mid2Rect = SkIRect::MakeXYWH(2, 2, kW-4, kH-4); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 87 SkIRect innerLeftEdge = SkIRect::MakeXYWH(1, 1, 1, kH-2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 88 SkIRect innerTopEdge = SkIRect::MakeXYWH(1, 1, kW-2, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | ImageFilterCacheTest.cpp | 35 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() 136 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in DEF_TEST() 140 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); in DEF_TEST() 153 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in test_image_backed() 157 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); in test_image_backed() 219 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | ReadPixelsTest.cpp | 23 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); 184 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bw, bh); in check_read() 185 SkIRect clippedSrcRect = DEV_RECT; in check_read() 243 static void init_bitmap(SkBitmap* bitmap, const SkIRect& rect, BitmapInit init, SkColorType ct, in init_bitmap() 280 const SkIRect gReadPixelsTestRects[] = { 284 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), 286 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), 288 SkIRect::MakeLTRB(-10, -10, -1, -1), 290 SkIRect::MakeLTRB(-10, -10, 0, 0), 292 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), [all …]
|
D | SpecialSurfaceTest.cpp | 20 static const SkIRect& Subset(const SkSpecialSurface* surf) { in Subset() 24 static const SkIRect& Subset(const SkSpecialImage* img) { in Subset() 38 const SkIRect surfSubset = TestingSpecialSurfaceAccess::Subset(surf); in test_surface() 52 const SkIRect imgSubset = TestingSpecialSurfaceAccess::Subset(img); in test_surface() 72 const SkIRect subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); in DEF_TEST() 106 const SkIRect subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | VkClearTests.cpp | 64 SkIRect rect = SkIRect::MakeWH(5, 5); in basic_clear_test() 120 SkIRect fullRect = SkIRect::MakeWH(10, 10); in sub_clear_test() 130 SkIRect rect; in sub_clear_test() 131 rect = SkIRect::MakeXYWH(0, 0, subWidth, subHeight); in sub_clear_test() 133 rect = SkIRect::MakeXYWH(subWidth, 0, subWidth, subHeight); in sub_clear_test() 135 rect = SkIRect::MakeXYWH(0, subHeight, subWidth, subHeight); in sub_clear_test() 146 rect = SkIRect::MakeXYWH(subWidth, subHeight, subWidth, subHeight); in sub_clear_test() 162 rect = SkIRect::MakeXYWH(0, 0, subWidth, subHeight); in sub_clear_test() 164 rect = SkIRect::MakeXYWH(subWidth, 0, subWidth, subHeight); in sub_clear_test() 166 rect = SkIRect::MakeXYWH(0, subHeight, subWidth, subHeight); in sub_clear_test() [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 | 26 SkIRect fRCBounds; 27 SkIRect fRect; 62 SkIRect r = rc.getBounds(); in test_simple() 79 const SkIRect baseR = SkIRect::MakeWH(w, h); in make_rgn() 85 SkIRect r = baseR; in make_rgn() 114 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()
|
/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 | 55 Context(const SkMatrix& ctm, const SkIRect& clipBounds, Cache* cache) in Context() 62 const SkIRect& clipBounds() const { return fClipBounds; } in clipBounds() 67 SkIRect fClipBounds; 96 void applyTo(const SkIRect& imageBounds, const SkMatrix&, SkIRect* cropped) const; 169 bool filterBounds(const SkIRect& src, const SkMatrix& ctm, SkIRect* dst, 364 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*, MapDirection) const; 379 virtual void onFilterNodeBounds(const SkIRect&, const SkMatrix&, SkIRect*, MapDirection) const; 406 bool applyCropRect(const Context&, const SkIRect& srcBounds, SkIRect* dstBounds) const; 418 SkIPoint* srcOffset, SkIRect* bounds, SkBitmap* result) const; 436 const SkIRect& bounds) const;
|
/external/skia/src/core/ |
D | SkRasterClip.h | 19 SkRasterClip(const SkIRect&, bool forceConservativeRects = false); 41 const SkIRect& getBounds() const; 44 bool setRect(const SkIRect&); 46 bool op(const SkIRect&, SkRegion::Op); 48 bool op(const SkRect&, const SkIRect&, SkRegion::Op, bool doAA); 49 bool op(const SkRRect&, const SkIRect&, SkRegion::Op, bool doAA); 50 bool op(const SkPath&, const SkIRect&, SkRegion::Op, bool doAA); 57 bool quickContains(const SkIRect& rect) const; 59 return quickContains(SkIRect::MakeLTRB(left, top, right, bottom)); in quickContains() 67 bool quickReject(const SkIRect& rect) const { in quickReject() [all …]
|
D | SkSpecialSurface.cpp | 17 const SkIRect& subset, const SkSurfaceProps* props) in SkSpecialSurface_Base() 45 const SkIRect& subset, in SkSpecialSurface() 71 const SkIRect& subset, in SkSpecialSurface_Raster() 95 const SkIRect& subset, SkBitmap& bm, in NewFromBitmap() 108 const SkIRect subset = SkIRect::MakeWH(pr->info().width(), pr->info().height()); in NewRaster() 122 const SkIRect& subset, in SkSpecialSurface_Gpu() 152 const SkIRect& subset, in NewFromTexture() 175 const SkIRect subset = SkIRect::MakeWH(desc.fWidth, desc.fHeight); in NewRenderTarget() 183 const SkIRect& subset, in NewFromTexture()
|
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 | 39 static SkIRect get_bounds_from_bitmap(const SkBitmap& bm) { in get_bounds_from_bitmap() 41 return SkIRect::MakeEmpty(); in get_bounds_from_bitmap() 44 return SkIRect::MakeXYWH(origin.fX, origin.fY, bm.width(), bm.height()); in get_bounds_from_bitmap() 52 static SkIRect get_bounds_from_image(const SkImage* image) { in get_bounds_from_image() 53 return SkIRect::MakeWH(image->width(), image->height()); in get_bounds_from_image() 87 BitmapKey(uint32_t genID, int width, int height, const SkIRect& bounds) in BitmapKey() 115 const SkIRect fBounds; 119 BitmapRec(uint32_t genID, int width, int height, const SkIRect& bounds, in BitmapRec() 185 bool SkBitmapCache::Find(uint32_t genID, const SkIRect& subset, SkBitmap* result, in Find() 192 bool SkBitmapCache::Add(SkPixelRef* pr, const SkIRect& subset, const SkBitmap& result, in Add() [all …]
|
D | SkImageFilterCacheKey.h | 13 const SkIRect& clipBounds, uint32_t srcGenID, const SkIRect& srcSubset) in Key() 20 static_assert(sizeof(Key) == sizeof(uint32_t) + sizeof(SkMatrix) + sizeof(SkIRect) + in Key() 28 SkIRect fClipBounds; 30 SkIRect fSrcSubset;
|
D | SkSpecialImage.h | 44 const SkIRect& subset() const { return fSubset; } in subset() 55 static SkSpecialImage* NewFromImage(const SkIRect& subset, const SkImage*); 57 const SkIRect& subset, 60 const SkIRect& subset, 76 SkSpecialImage(SkImageFilter::Proxy* proxy, const SkIRect& subset, uint32_t uniqueID) in SkSpecialImage() 109 const SkIRect fSubset;
|
/external/skia/include/effects/ |
D | SkMatrixConvolutionImageFilter.h | 82 void onFilterNodeBounds(const SkIRect&, const SkMatrix&, SkIRect*, MapDirection) 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 …]
|
D | SkMorphologyImageFilter.cpp | 42 …ogyImageFilter::Proc procX, const SkBitmap& src, SkBitmap* dst, int radiusX, const SkIRect& bounds) in callProcX() 49 …ogyImageFilter::Proc procY, const SkBitmap& src, SkBitmap* dst, int radiusY, const SkIRect& bounds) in callProcY() 73 SkIRect bounds; in filterImageGeneric() 94 SkIRect srcBounds = bounds; in filterImageGeneric() 119 SkIRect tmpBounds = SkIRect::MakeWH(srcBounds.width(), srcBounds.height()); in filterImageGeneric() 154 void SkMorphologyImageFilter::onFilterNodeBounds(const SkIRect& src, const SkMatrix& ctm, in onFilterNodeBounds() 155 SkIRect* dst, MapDirection) const { in onFilterNodeBounds() 454 const SkIRect& srcRect, in apply_morphology_rect() 455 const SkIRect& dstRect, in apply_morphology_rect() 474 const SkIRect& srcRect, in apply_morphology_rect_no_bounds() [all …]
|
/external/skia/src/gpu/ |
D | GrLayerCache.h | 153 const SkIRect& srcIR, in GrCachedLayer() 154 const SkIRect& dstIR, in GrCachedLayer() 169 , fRect(SkIRect::MakeEmpty()) in GrCachedLayer() 198 const SkIRect& srcIR() const { return fSrcIR; } in srcIR() 199 const SkIRect& dstIR() const { return fDstIR; } in dstIR() 201 void setTexture(GrTexture* texture, const SkIRect& rect, bool atlased) { in setTexture() 218 const SkIRect& rect() const { return fRect; } in rect() 247 const SkIRect fSrcIR; 249 const SkIRect fDstIR; 272 SkIRect fRect; [all …]
|
/external/skia/site/user/api/ |
D | skrect.md | 13 SkIRect is the integer counter part to SkRect, but is specified using 32 Converting between SkRect and SkIRect is asymetric. Short of overflow 33 issues when SkScalar is an int, converting from SkIRect to SkRect is 38 SkRect::set(const SkIRect&); 40 However, convert from SkRect to SkIRect needs to know how to go from 45 SkRect::round(SkIRect*) const; // Round each coordinate. 46 SkRect::roundOut(SkIRect*) const; // Apply floor to left/top, 71 The same conventions hold for the integer counterpart: SkIRect. This 73 membership, and which uses SkIRect.
|