Home
last modified time | relevance | path

Searched refs:kBounds (Results 1 – 8 of 8) sorted by relevance

/external/skia/modules/sksg/samples/
DSampleSVGPong.cpp27 static const SkRect kBounds = SkRect::MakeLTRB(0.1f, 0.1f, 0.9f, 0.9f); variable
87 const SkRect fieldBounds = kBounds.makeOutset(kBallSize / 2, kBallSize / 2); in onOnceBeforeDraw()
94 SkPoint::Make(kBounds.centerX(), kBounds.centerY()), in onOnceBeforeDraw()
108 bgPath.moveTo(kBounds.left() , fieldBounds.top()) in onOnceBeforeDraw()
109 .lineTo(kBounds.right(), fieldBounds.top()) in onOnceBeforeDraw()
110 .moveTo(kBounds.left() , fieldBounds.bottom()) in onOnceBeforeDraw()
111 .lineTo(kBounds.right(), fieldBounds.bottom()); in onOnceBeforeDraw()
114 bgPath.moveTo(kBounds.centerX(), in onOnceBeforeDraw()
115 kBounds.top() + (i + 0.25f) * kBounds.height() / kBackgroundDashCount) in onOnceBeforeDraw()
116 .lineTo(kBounds.centerX(), in onOnceBeforeDraw()
[all …]
/external/skqp/modules/sksg/samples/
DSampleSVGPong.cpp24 static const SkRect kBounds = SkRect::MakeLTRB(0.1f, 0.1f, 0.9f, 0.9f); variable
84 const SkRect fieldBounds = kBounds.makeOutset(kBallSize / 2, kBallSize / 2); in onOnceBeforeDraw()
91 SkPoint::Make(kBounds.centerX(), kBounds.centerY()), in onOnceBeforeDraw()
105 bgPath.moveTo(kBounds.left() , fieldBounds.top()); in onOnceBeforeDraw()
106 bgPath.lineTo(kBounds.right(), fieldBounds.top()); in onOnceBeforeDraw()
107 bgPath.moveTo(kBounds.left() , fieldBounds.bottom()); in onOnceBeforeDraw()
108 bgPath.lineTo(kBounds.right(), fieldBounds.bottom()); in onOnceBeforeDraw()
111 bgPath.moveTo(kBounds.centerX(), in onOnceBeforeDraw()
112 kBounds.top() + (i + 0.25f) * kBounds.height() / kBackgroundDashCount); in onOnceBeforeDraw()
113 bgPath.lineTo(kBounds.centerX(), in onOnceBeforeDraw()
[all …]
/external/skia/gm/
Ddashcircle.cpp194 const SkRect kBounds = kThinCircle.makeOutset(kThinStrokeWidth / 2.f, in onDraw() local
198 m.mapRect(&devBounds, kBounds); in onDraw()
/external/skqp/gm/
Ddashcircle.cpp184 static const SkRect kBounds = kThinCircle.makeOutset(kThinStrokeWidth / 2.f, in onDraw() local
188 m.mapRect(&devBounds, kBounds); in onDraw()
/external/skqp/tests/
DClipStackTest.cpp952 static const SkRect kBounds = SkRect::Make(kIBounds); in test_reduced_clip_stack() local
1012 kBounds.width() * r.nextRangeScalar(kMinElemSizeFrac, kMaxElemSizeFrac), in test_reduced_clip_stack()
1013 kBounds.height() * r.nextRangeScalar(kMinElemSizeFrac, kMaxElemSizeFrac)); in test_reduced_clip_stack()
1015 SkPoint xy = {r.nextRangeScalar(kBounds.fLeft, kBounds.fRight - size.fWidth), in test_reduced_clip_stack()
1016 r.nextRangeScalar(kBounds.fTop, kBounds.fBottom - size.fHeight)}; in test_reduced_clip_stack()
1052 SkRect queryBounds = kBounds; in test_reduced_clip_stack()
1053 queryBounds.outset(kBounds.width() / 2, kBounds.height() / 2); in test_reduced_clip_stack()
/external/skia/tests/
DClipStackTest.cpp970 static const SkRect kBounds = SkRect::Make(kIBounds); in test_reduced_clip_stack() local
1033 kBounds.width() * r.nextRangeScalar(kMinElemSizeFrac, kMaxElemSizeFrac), in test_reduced_clip_stack()
1034 kBounds.height() * r.nextRangeScalar(kMinElemSizeFrac, kMaxElemSizeFrac)); in test_reduced_clip_stack()
1036 SkPoint xy = {r.nextRangeScalar(kBounds.fLeft, kBounds.fRight - size.fWidth), in test_reduced_clip_stack()
1037 r.nextRangeScalar(kBounds.fTop, kBounds.fBottom - size.fHeight)}; in test_reduced_clip_stack()
1076 SkRect queryBounds = kBounds; in test_reduced_clip_stack()
1077 queryBounds.outset(kBounds.width() / 2, kBounds.height() / 2); in test_reduced_clip_stack()
/external/skia/bench/
DPathBench.cpp864 xy.fX = rand.nextRangeScalar(kBounds.fLeft, kBounds.fRight - size.fWidth); in onDelayedSetup()
865 xy.fY = rand.nextRangeScalar(kBounds.fTop, kBounds.fBottom - size.fHeight); in onDelayedSetup()
874 static const SkRect kBounds; // bounds for all random query rects member in ConservativelyContainsBench
1148 const SkRect ConservativelyContainsBench::kBounds = SkRect::MakeWH(SkIntToScalar(100), SkIntToScala… member in ConservativelyContainsBench
/external/skqp/bench/
DPathBench.cpp862 xy.fX = rand.nextRangeScalar(kBounds.fLeft, kBounds.fRight - size.fWidth); in onDelayedSetup()
863 xy.fY = rand.nextRangeScalar(kBounds.fTop, kBounds.fBottom - size.fHeight); in onDelayedSetup()
872 static const SkRect kBounds; // bounds for all random query rects member in ConservativelyContainsBench
1111 const SkRect ConservativelyContainsBench::kBounds = SkRect::MakeWH(SkIntToScalar(100), SkIntToScala… member in ConservativelyContainsBench