Home
last modified time | relevance | path

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

12345678910>>...28

/external/skia/tests/
DRecordDrawTest.cpp63 recorder.drawRect(SkRect::MakeWH(200, 300), SkPaint()); in DEF_TEST()
64 recorder.clipRect(SkRect::MakeWH(100, 200)); in DEF_TEST()
126 void insert(const SkRect boundsArray[], int N) override { in insert()
134 void search(const SkRect& query, SkTDArray<unsigned>* results) const override {} in search()
136 SkRect getRootBound() const override { return SkRect::MakeEmpty(); } in getRootBound()
140 SkRect bounds;
146 static bool sloppy_rect_eq(SkRect a, SkRect b) { in sloppy_rect_eq()
147 SkRect inset(a), outset(a); in sloppy_rect_eq()
159 recorder.clipRect(SkRect::MakeWH(400, 500)); in DEF_TEST()
161 recorder.drawRect(SkRect::MakeWH(320, 240), SkPaint()); in DEF_TEST()
[all …]
DClipStackTest.cpp38 SkRect r = SkRect::MakeLTRB(1, 2, 3, 4); in test_assign_and_comparison()
40 r = SkRect::MakeLTRB(10, 11, 12, 13); in test_assign_and_comparison()
46 r = SkRect::MakeLTRB(14, 15, 16, 17); in test_assign_and_comparison()
61 r = SkRect::MakeLTRB(14, 15, 16, 17); in test_assign_and_comparison()
70 r = SkRect::MakeLTRB(14, 15, 16, 17); in test_assign_and_comparison()
88 r = SkRect::MakeLTRB(24, 25, 26, 27); in test_assign_and_comparison()
131 static const SkRect gRects[] = { in test_iterators()
190 static const SkRect gAnswerRectsBW[gNumCases] = { in test_bounds()
228 SkRect rectA, rectB; in test_bounds()
243 SkRect devClipBound; in test_bounds()
[all …]
DRecordPatternTest.cpp26 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
45 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
66 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
67 recorder.drawRect(SkRect::MakeWH(600, 300), SkPaint()); in DEF_TEST()
81 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
87 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
88 recorder.clipRect(SkRect::MakeWH(100, 100)); in DEF_TEST()
106 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
116 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
117 recorder.drawRect(SkRect::MakeWH(100, 3000), SkPaint()); in DEF_TEST()
[all …]
DRecordingXfermodeTest.cpp37 void draw(SkCanvas* canvas, const SkRect& clipRect, SkXfermode::Mode mode) const { in draw()
47 SkRect canvasRect(SkRect::MakeWH(SkIntToScalar(fImageInfo.width()), in draw()
56 canvas->drawBitmapRect(fCircleBM, SkRect::MakeXYWH(20,20,60,60), &blackPaint); in draw()
70 const SkRect& intoClip,
82 const SkRect& intoClip, in recordAndReplay()
108 const SkRect& intoClip, in recordAndReplay()
112 SkRect canvasRect(SkRect::MakeWH(SkIntToScalar(fWidth),SkIntToScalar(fHeight))); in recordAndReplay()
148 const SkRect& clip = SkRect::MakeXYWH(100, 0, 100, 100); in DEF_TEST()
/external/skia/bench/
DBlurRectsBench.cpp18 BlurRectsBench(SkRect outer, SkRect inner, SkScalar radius) { in BlurRectsBench()
47 SkRect fOuter;
48 SkRect fInner;
56 BlurRectsNinePatchBench(SkRect outer, SkRect inner, SkScalar radius) in BlurRectsNinePatchBench()
66 BlurRectsNonNinePatchBench(SkRect outer, SkRect inner, SkScalar radius) in BlurRectsNonNinePatchBench()
75 DEF_BENCH(return new BlurRectsNinePatchBench(SkRect::MakeXYWH(10, 10, 100, 100),
76 SkRect::MakeXYWH(20, 20, 60, 60),
78 DEF_BENCH(return new BlurRectsNonNinePatchBench(SkRect::MakeXYWH(10, 10, 100, 100),
79 SkRect::MakeXYWH(50, 50, 10, 10),
DRTreeBench.cpp20 typedef SkRect (*MakeRectProc)(SkRandom&, int, int);
39 SkAutoTMalloc<SkRect> rects(NUM_BUILD_RECTS); in onDraw()
72 SkAutoTMalloc<SkRect> rects(NUM_QUERY_RECTS); in onPreDraw()
83 SkRect query; in onDraw()
98 static inline SkRect make_XYordered_rects(SkRandom& rand, int index, int numRects) { in make_XYordered_rects()
99 SkRect out; in make_XYordered_rects()
106 static inline SkRect make_YXordered_rects(SkRandom& rand, int index, int numRects) { in make_YXordered_rects()
107 SkRect out; in make_YXordered_rects()
115 static inline SkRect make_random_rects(SkRandom& rand, int index, int numRects) { in make_random_rects()
116 SkRect out; in make_random_rects()
[all …]
/external/skia/src/gpu/
DGrAARectRenderer.h36 const SkRect& rect, in SK_DECLARE_INST_COUNT()
37 const SkRect& devRect) { in SK_DECLARE_INST_COUNT()
45 const SkRect& rect,
46 const SkRect& devRect,
54 const SkRect rects[2]);
61 const SkRect& rect,
62 const SkRect& devRect);
68 const SkRect& devOutside,
69 const SkRect& devOutsideAssist,
70 const SkRect& devInside,
DGrReducedClip.cpp13 const SkRect& queryBounds, in reduced_stack_walker()
60 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) { in reduced_stack_walker()
68 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) { in reduced_stack_walker()
84 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) { in reduced_stack_walker()
90 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) { in reduced_stack_walker()
106 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) { in reduced_stack_walker()
114 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) { in reduced_stack_walker()
130 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) { in reduced_stack_walker()
136 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) { in reduced_stack_walker()
153 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) { in reduced_stack_walker()
[all …]
DGrTestUtils.cpp99 const SkRect& TestRect(SkRandom* random) { in TestRect()
100 static SkRect gRects[7]; in TestRect()
104 gRects[0] = SkRect::MakeWH(1.f, 1.f); in TestRect()
105 gRects[1] = SkRect::MakeWH(1.0f, 256.0f); in TestRect()
106 gRects[2] = SkRect::MakeWH(256.0f, 1.0f); in TestRect()
107 gRects[4] = SkRect::MakeLargest(); in TestRect()
108 gRects[5] = SkRect::MakeLTRB(-65535.0f, -65535.0f, 65535.0f, 65535.0f); in TestRect()
109 gRects[6] = SkRect::MakeLTRB(-10.0f, -10.0f, 10.0f, 10.0f); in TestRect()
115 const SkRect& TestSquare(SkRandom* random) { in TestSquare()
116 static SkRect gRects[2]; in TestSquare()
[all …]
/external/skia/include/core/
DSkCanvas.h332 int saveLayer(const SkRect* bounds, const SkPaint* paint);
350 int saveLayer(const SkRect* bounds, const SkPaint* paint, SaveFlags flags);
363 int saveLayerAlpha(const SkRect* bounds, U8CPU alpha);
380 int saveLayerAlpha(const SkRect* bounds, U8CPU alpha, SaveFlags flags);
446 void clipRect(const SkRect& rect,
512 bool quickReject(const SkRect& rect) const;
552 const SkRect& clipR = this->getLocalClipBounds(); in quickRejectY()
565 virtual bool getClipBounds(SkRect* bounds) const;
682 void drawRect(const SkRect& rect, const SkPaint& paint);
690 SkRect r; in drawIRect()
[all …]
DSkClipStack.h63 Element(const SkRect& rect, SkRegion::Op op, bool doAA) { in Element()
91 const SkRect& getRect() const { in getRect()
123 const SkRect& getBounds() const { in getBounds()
124 static const SkRect kEmpty = { 0, 0, 0, 0 }; in getBounds()
143 bool contains(const SkRect& rect) const { in contains()
200 SkRect fFiniteBound;
217 Element(int saveCount, const SkRect& rect, SkRegion::Op op, bool doAA) { in Element()
237 void initRect(int saveCount, const SkRect& rect, SkRegion::Op op, bool doAA) { in initRect()
264 bool rectRectIntersectAllowed(const SkRect& newR, bool newAA) const;
276 inline void combineBoundsDiff(FillCombo combination, const SkRect& prevFinite);
[all …]
DSkTextBlob.h28 const SkRect& bounds() const { return fBounds; } in bounds()
80 SkTextBlob(int runCount, const SkRect& bounds);
103 const SkRect fBounds;
154 const SkRect* bounds = NULL);
170 const SkRect* bounds = NULL);
185 const RunBuffer& allocRunPos(const SkPaint& font, int count, const SkRect* bounds = NULL);
190 int count, SkPoint offset, const SkRect* bounds);
195 static SkRect ConservativeRunBounds(const SkTextBlob::RunRecord&);
196 static SkRect TightRunBounds(const SkTextBlob::RunRecord&);
202 SkRect fBounds;
DSkRect.h14 struct SkRect;
258 bool contains(const SkRect& r) const;
390 struct SK_API SkRect { struct
393 static SkRect SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument
394 SkRect r; in MakeEmpty()
399 static SkRect SK_WARN_UNUSED_RESULT MakeLargest() { in MakeLargest() argument
400 SkRect r; in MakeLargest()
405 static SkRect SK_WARN_UNUSED_RESULT MakeWH(SkScalar w, SkScalar h) { in MakeWH() argument
406 SkRect r; in MakeWH()
411 static SkRect SK_WARN_UNUSED_RESULT MakeIWH(int w, int h) { in MakeIWH() argument
[all …]
/external/skia/gm/
Drrects.cpp75 static const SkRect kMaxTileBound = SkRect::MakeWH(SkIntToScalar(kTileX), in onDraw()
78 static const SkRect kMaxImageBound = SkRect::MakeWH(SkIntToScalar(kImageWidth), in onDraw()
95 SkRect imageSpaceBounds = fRRects[curRRect].getBounds(); in onDraw()
120 SkRect bounds = rrect.getBounds(); in onDraw()
158 fRRects[0].setRect(SkRect::MakeWH(kTileX-2, kTileY-2)); in setUpRRects()
159 fRRects[1].setOval(SkRect::MakeWH(kTileX-2, kTileY-2)); in setUpRRects()
160 fRRects[2].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 10, 10); in setUpRRects()
161 fRRects[3].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 10, 5); in setUpRRects()
163 fRRects[4].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 1, 1); in setUpRRects()
164 fRRects[5].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 0.5f, 0.5f); in setUpRRects()
[all …]
Dstrokes.cpp21 static void rnd_rect(SkRect* r, SkPaint* paint, SkRandom& rand) { in rnd_rect()
60 canvas->clipRect(SkRect::MakeLTRB( in onDraw()
67 SkRect r; in onDraw()
120 canvas->clipRect(SkRect::MakeLTRB(SkIntToScalar(2), in onDraw()
127 SkRect r; in onDraw()
141 static SkRect inset(const SkRect& r) { in inset()
142 SkRect rr(r); in inset()
148 static void make0(SkPath* path, const SkRect& bounds, SkString* title) { in make0()
154 static void make1(SkPath* path, const SkRect& bounds, SkString* title) { in make1()
160 static void make2(SkPath* path, const SkRect& bounds, SkString* title) { in make2()
[all …]
Dresizeimagefilter.cpp28 const SkRect& rect, in draw()
32 SkRect dstRect; in draw()
50 SkRect ovalRect = rect; in draw()
64 SkRect srcRect = SkRect::MakeWH(96, 96); in onDraw()
98 SkRect ovalRect = SkRect::MakeWH(16, 16); in onDraw()
102 SkRect inRect = SkRect::MakeXYWH(-4, -4, 20, 20); in onDraw()
103 SkRect outRect = SkRect::MakeXYWH(-24, -24, 120, 120); in onDraw()
Dclip_strokerect.cpp34 SkRect r = SkRect::MakeXYWH(20, 20, 100, 100); in onDraw()
36 SkRect rect = SkRect::MakeXYWH(20, 0, 100, 20); in onDraw()
52 SkRect r2 = SkRect::MakeXYWH(20, 140, 100, 100); in onDraw()
54 SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19); in onDraw()
Dfilterfastbounds.cpp20 typedef void(*drawMth)(SkCanvas* canvas, const SkRect& r, const SkPaint& p);
22 static void draw_rect(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_rect()
26 static void draw_oval(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_oval()
30 static void draw_rrect(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_rrect()
39 static void draw_drrect(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_drrect()
50 static void draw_path(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_path()
61 static void draw_points(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_points()
69 static void draw_bitmap(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_bitmap()
179 const SkRect r = SkRect::MakeLTRB(20, 20, 30, 30); in draw_geom_with_paint()
180 SkRect storage; in draw_geom_with_paint()
[all …]
Ddcshader.cpp132 SkRect draw(SkCanvas* canvas, const SkPaint& paint) override { in onOnceBeforeDraw()
133 SkRect rect = SkRect::MakeXYWH(0, 0, 50, 50); in onOnceBeforeDraw()
140 SkRect draw(SkCanvas* canvas, const SkPaint& paint) override { in onOnceBeforeDraw()
143 return SkRect::MakeXYWH(0, 0, 2 * radius, 2 * radius); in onOnceBeforeDraw()
148 SkRect draw(SkCanvas* canvas, const SkPaint& paint) override { in onOnceBeforeDraw()
150 rrect.setRectXY(SkRect::MakeXYWH(0, 0, 50, 50), 10, 10); in onOnceBeforeDraw()
157 SkRect draw(SkCanvas* canvas, const SkPaint& paint) override { in onOnceBeforeDraw()
159 outerRRect.setRectXY(SkRect::MakeXYWH(0, 0, 50, 50), 5, 5); in onOnceBeforeDraw()
161 innerRRect.setRectXY(SkRect::MakeXYWH(5, 8, 35, 30), 8, 3); in onOnceBeforeDraw()
167 SkRect draw(SkCanvas* canvas, const SkPaint& paint) override { in onOnceBeforeDraw()
[all …]
Dimagefilterscropped.cpp24 static void draw_paint(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_paint()
34 static void draw_path(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_path()
42 static void draw_text(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_text()
53 static void draw_bitmap(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_bitmap()
69 static void draw_sprite(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_sprite()
82 c.drawRect(SkRect::Make(cropRect), paint); in draw_sprite()
117 canvas.drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); in make_checkerboard()
118 canvas.drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); in make_checkerboard()
119 canvas.drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); in make_checkerboard()
120 canvas.drawRect(SkRect::MakeXYWH(8, 8, 8, 8), darkPaint); in make_checkerboard()
[all …]
Dclipdrawdraw.cpp30 static void Draw(SkCanvas* canvas, const SkRect& rect) { in Draw()
34 const SkRect bigRect = SkRect::MakeWH(600, 600); in Draw()
51 const SkRect rect1 = SkRect::MakeLTRB(136.5f, 137.5f, 338.5f, 293.5f); in onDraw()
55 const SkRect rect2 = SkRect::MakeLTRB(207.5f, 179.499f, 530.5f, 429.5f); in onDraw()
/external/skia/src/gpu/effects/
DGrTextureDomain.h17 struct SkRect;
44 static const SkRect gDummyRect = {0, 0, 0, 0}; in IgnoredDomain()
53 GrTextureDomain(const SkRect& domain, Mode, int index = -1);
55 const SkRect& domain() const { return fDomain; } in domain()
60 static const SkRect MakeTexelDomain(const GrTexture* texture, const SkIRect& texelRect) { in MakeTexelDomain()
63 SkRect result = { in MakeTexelDomain()
72 …static const SkRect MakeTexelDomainForMode(const GrTexture* texture, const SkIRect& texelRect, Mod… in MakeTexelDomainForMode()
77 return SkRect::MakeLTRB( in MakeTexelDomainForMode()
148 SkRect fDomain;
162 const SkRect& domain,
[all …]
/external/skia/src/effects/
DSkGpuBlurUtils.cpp24 static void scale_rect(SkRect* rect, float xScale, float yScale) { in scale_rect()
49 const SkRect& srcRect, in convolve_gaussian_1d()
50 const SkRect& dstRect, in convolve_gaussian_1d()
67 const SkRect& srcRect, in convolve_gaussian_2d()
68 const SkRect& dstRect, in convolve_gaussian_2d()
90 const SkRect& srcRect, in convolve_gaussian()
91 const SkRect& dstRect, in convolve_gaussian()
103 SkRect lowerSrcRect = srcRect, lowerDstRect = dstRect; in convolve_gaussian()
104 SkRect middleSrcRect = srcRect, middleDstRect = dstRect; in convolve_gaussian()
105 SkRect upperSrcRect = srcRect, upperDstRect = dstRect; in convolve_gaussian()
[all …]
/external/skia/include/effects/
DSkBitmapSource.h20 const SkRect& srcRect, const SkRect& dstRect,
24 void computeFastBounds(const SkRect& src, SkRect* dst) const override;
32 const SkRect& srcRect, const SkRect& dstRect,
41 SkRect fSrcRect, fDstRect;
/external/skia/samplecode/
DSampleAARects.cpp21 SkRect r; in createBitmap()
74 SkRect rect; in onDrawContent()
87 rect = SkRect::MakeLTRB(0.f, in onDrawContent()
94 rect = SkRect::MakeLTRB(0.5f, in onDrawContent()
101 rect = SkRect::MakeLTRB(0.5f, in onDrawContent()
108 rect = SkRect::MakeLTRB(0.75f, in onDrawContent()
117 rect = SkRect::MakeLTRB(0.0f, in onDrawContent()
130 rect = SkRect::MakeLTRB(-20.0f, in onDrawContent()
140 rect = SkRect::MakeLTRB(0.0f, in onDrawContent()
150 rect = SkRect::MakeLTRB(0.5f, in onDrawContent()
[all …]

12345678910>>...28