Home
last modified time | relevance | path

Searched refs:SkRandom (Results 1 – 25 of 179) sorted by relevance

12345678

/external/skia/src/gpu/
DGrTestUtils.h34 const SkMatrix& TestMatrix(SkRandom*);
35 const SkMatrix& TestMatrixPreservesRightAngles(SkRandom*);
36 const SkMatrix& TestMatrixRectStaysRect(SkRandom*);
37 const SkMatrix& TestMatrixInvertible(SkRandom*);
38 const SkMatrix& TestMatrixPerspective(SkRandom*);
39 const SkRect& TestRect(SkRandom*);
40 const SkRect& TestSquare(SkRandom*);
41 const SkRRect& TestRRectSimple(SkRandom*);
42 const SkPath& TestPath(SkRandom*);
43 const SkPath& TestPathConvex(SkRandom*);
[all …]
DGrTestUtils.cpp19 static const SkMatrix& test_matrix(SkRandom* random, in test_matrix()
52 const SkMatrix& TestMatrix(SkRandom* random) { return test_matrix(random, true, true); } in TestMatrix()
54 const SkMatrix& TestMatrixPreservesRightAngles(SkRandom* random) { in TestMatrixPreservesRightAngles()
80 const SkMatrix& TestMatrixRectStaysRect(SkRandom* random) { in TestMatrixRectStaysRect()
106 const SkMatrix& TestMatrixInvertible(SkRandom* random) { return test_matrix(random, true, false); } in TestMatrixInvertible()
107 const SkMatrix& TestMatrixPerspective(SkRandom* random) { return test_matrix(random, false, true); } in TestMatrixPerspective()
109 const SkRect& TestRect(SkRandom* random) { in TestRect()
125 const SkRect& TestSquare(SkRandom* random) { in TestSquare()
136 const SkRRect& TestRRectSimple(SkRandom* random) { in TestRRectSimple()
154 const SkPath& TestPath(SkRandom* random) { in TestPath()
[all …]
DGrDrawOpTest.h20 class SkRandom; variable
23 void GrDrawRandomOp(SkRandom*, GrRenderTargetContext*, GrPaint&&);
27 std::unique_ptr<GrDrawOp> Op##__Test(GrPaint&& paint, SkRandom* random, GrContext* context, \
30 friend std::unique_ptr<GrDrawOp> Op##__Test(GrPaint&& paint, SkRandom* random, \
34 const GrUserStencilSettings* GrGetRandomStencil(SkRandom* random, GrContext*);
/external/skia/include/utils/
DSkRandom.h22 class SkRandom {
24 SkRandom() { init(0); } in SkRandom() function
25 SkRandom(uint32_t seed) { init(seed); } in SkRandom() function
26 SkRandom(const SkRandom& rand) : fK(rand.fK), fJ(rand.fJ) {} in SkRandom() function
28 SkRandom& operator=(const SkRandom& rand) {
/external/skia/bench/
DRTreeBench.cpp20 typedef SkRect (*MakeRectProc)(SkRandom&, int, int);
38 SkRandom rand; in onDraw()
71 SkRandom rand; in onDelayedSetup()
80 SkRandom rand; in onDraw()
98 static inline SkRect make_XYordered_rects(SkRandom& rand, int index, int numRects) { in make_XYordered_rects()
106 static inline SkRect make_YXordered_rects(SkRandom& rand, int index, int numRects) { in make_YXordered_rects()
115 static inline SkRect make_random_rects(SkRandom& rand, int index, int numRects) { in make_random_rects()
124 static inline SkRect make_concentric_rects(SkRandom&, int index, int numRects) { in make_concentric_rects() argument
DStrokeBench.cpp56 static SkPoint rand_pt(SkRandom& rand) { in rand_pt()
62 SkRandom rand; in line_path_maker()
71 SkRandom rand; in quad_path_maker()
80 SkRandom rand; in conic_path_maker()
89 SkRandom rand; in cubic_path_maker()
DHairlinePathBench.cpp89 SkRandom rand; in makePath()
121 SkRandom rand; in makePath()
153 SkRandom rand; in makePath()
154 SkRandom randWeight; in makePath()
189 SkRandom rand; in makePath()
DScalarBench.cpp47 SkRandom rand; in init9()
97 SkRandom rand; in IsFiniteScalarBench()
135 SkRandom rand; in RectBoundsBench()
DGrMemoryPoolBench.cpp47 SkRandom r; in onDraw()
109 SkRandom r; in onDraw()
157 SkRandom r; in onDraw()
DMathBench.cpp37 SkRandom rand; in MathBench()
262 SkRandom rand; in IsFiniteBench()
332 SkRandom rand; in FloorBench()
353 SkRandom rand; in onDraw()
394 SkRandom rand; in CLZBench()
454 SkRandom rand; in NormalizeBench()
502 SkRandom rand; in FixedMathBench()
DQuickRejectBench.cpp21 SkRandom rand; in onDelayedSetup()
48 SkRandom r; in onDelayedSetup()
DRegionContainBench.cpp31 SkIRect randrect(SkRandom& rand, int i) { in randrect()
40 SkRandom rand; in RegionContainBench()
DPathIterBench.cpp17 static int rand_pts(SkRandom& rand, SkPoint pts[4]) { in rand_pts()
38 SkRandom rand; in PathIterBench()
/external/skia/tools/
Drandom_parse_path.cpp32 static void add_white(SkRandom* rand, SkString* atom) { in add_white()
46 static void add_comma(SkRandom* rand, SkString* atom) { in add_comma()
61 static void add_some_white(SkRandom* rand, SkString* atom) { in add_some_white()
68 SkString MakeRandomParsePathPiece(SkRandom* rand) { in MakeRandomParsePathPiece()
Drandom_parse_path.h13 class SkRandom; variable
15 SkString MakeRandomParsePathPiece(SkRandom* rand);
/external/skia/tests/
DRandomTest.cpp63 SkRandom rand; in test_random_byte()
75 SkRandom rand; in test_random_float()
110 SkRandom rand; in test_single_gorilla()
163 SkRandom rand; in test_range()
DRTreeTest.cpp16 static SkRect random_rect(SkRandom& rand) { in random_rect()
46 static void run_queries(skiatest::Reporter* reporter, SkRandom& rand, SkRect rects[], in run_queries()
73 SkRandom rand; in DEF_TEST()
DStrokerTest.cpp135 static SkScalar unbounded(SkRandom& r) { in unbounded()
140 static SkScalar unboundedPos(SkRandom& r) { in unboundedPos()
146 SkRandom r; in DEF_TEST()
184 SkRandom r; in DEF_TEST()
225 SkRandom r; in DEF_TEST()
276 SkRandom r; in DEF_TEST()
335 SkRandom r; in DEF_TEST()
380 SkRandom r; in DEF_TEST()
DSortTest.cpp20 static void rand_array(SkRandom& rand, int array[], int n) { in rand_array()
44 SkRandom rand; in DEF_TEST()
/external/skia/gm/
Dmanypaths.cpp16 static SkColor gen_color(SkRandom* rand) { in gen_color()
46 SkRandom rand(1); in onDraw()
85 SkRandom rand(1); in onDraw()
Dbeziers.cpp18 static void rnd_quad(SkPath* p, SkPaint* paint, SkRandom& rand) { in rnd_quad()
36 static void rnd_cubic(SkPath* p, SkPaint* paint, SkRandom& rand) { in rnd_cubic()
76 SkRandom rand; in onDraw()
Dpoints.cpp26 static void fill_pts(SkPoint pts[], size_t n, SkRandom* rand) { in fill_pts()
40 SkRandom rand; in onDraw()
/external/skia/samplecode/
DSampleClip.cpp22 SkRandom rand; in show_text()
37 SkRandom rand; in show_fill()
58 static SkScalar randRange(SkRandom& rand, SkScalar min, SkScalar max) { in randRange()
64 SkRandom rand; in show_stroke()
DSamplePathText.cpp72 void init(SkRandom& rand, const SkPath& path);
73 void reset(SkRandom& rand, int w, int h);
84 SkRandom fRand;
89 void PathText::Glyph::init(SkRandom& rand, const SkPath& path) { in init()
95 void PathText::Glyph::reset(SkRandom& rand, int w, int h) { in reset()
314 void reset(SkRandom& rand, int w, int h);
336 void WavyPathText::Waves::reset(SkRandom& rand, int w, int h) { in reset()
DSamplePoints.cpp38 static void fill_pts(SkPoint pts[], size_t n, SkRandom* rand) { in fill_pts()
46 SkRandom rand; in onDrawContent()

12345678