/third_party/skia/src/gpu/ |
D | GrTestUtils.h | 39 const SkMatrix& TestMatrix(SkRandom*); 40 const SkMatrix& TestMatrixPreservesRightAngles(SkRandom*); 41 const SkMatrix& TestMatrixRectStaysRect(SkRandom*); 42 const SkMatrix& TestMatrixInvertible(SkRandom*); 43 const SkMatrix& TestMatrixPerspective(SkRandom*); 44 void TestWrapModes(SkRandom*, GrSamplerState::WrapMode[2]); 45 const SkRect& TestRect(SkRandom*); 46 const SkRect& TestSquare(SkRandom*); 47 const SkRRect& TestRRectSimple(SkRandom*); 48 const SkPath& TestPath(SkRandom*); [all …]
|
D | GrTestUtils.cpp | 21 static const SkMatrix& test_matrix(SkRandom* random, in test_matrix() 54 const SkMatrix& TestMatrix(SkRandom* random) { return test_matrix(random, true, true); } in TestMatrix() 56 const SkMatrix& TestMatrixPreservesRightAngles(SkRandom* random) { in TestMatrixPreservesRightAngles() 82 const SkMatrix& TestMatrixRectStaysRect(SkRandom* random) { in TestMatrixRectStaysRect() 108 const SkMatrix& TestMatrixInvertible(SkRandom* random) { return test_matrix(random, true, false); } in TestMatrixInvertible() 109 const SkMatrix& TestMatrixPerspective(SkRandom* random) { return test_matrix(random, false, true); } in TestMatrixPerspective() 111 void TestWrapModes(SkRandom* random, GrSamplerState::WrapMode wrapModes[2]) { in TestWrapModes() 120 const SkRect& TestRect(SkRandom* random) { in TestRect() 136 const SkRect& TestSquare(SkRandom* random) { in TestSquare() 147 const SkRRect& TestRRectSimple(SkRandom* random) { in TestRRectSimple() [all …]
|
D | GrDrawOpTest.h | 22 class SkRandom; variable 25 void GrDrawRandomOp(SkRandom*, skgpu::v1::SurfaceDrawContext*, GrPaint&&); 30 SkRandom* random, \ 36 SkRandom*, \ 42 const GrUserStencilSettings* GrGetRandomStencil(SkRandom* random, GrContext_Base*);
|
D | GrProcessorUnitTest.h | 51 GrProcessorTestData(SkRandom* random, GrRecordingContext* context, int maxTreeDepth, 53 GrProcessorTestData(SkRandom* random, GrRecordingContext* context, int maxTreeDepth, 68 SkRandom* fRandom;
|
/third_party/skia/include/utils/ |
D | SkRandom.h | 23 class SkRandom { 25 SkRandom() { init(0); } in SkRandom() function 26 SkRandom(uint32_t seed) { init(seed); } in SkRandom() function 27 SkRandom(const SkRandom& rand) : fK(rand.fK), fJ(rand.fJ) {} in SkRandom() function 29 SkRandom& operator=(const SkRandom& rand) {
|
/third_party/skia/bench/ |
D | RTreeBench.cpp | 21 typedef SkRect (*MakeRectProc)(SkRandom&, int, int); 39 SkRandom rand; in onDraw() 72 SkRandom rand; in onDelayedSetup() 81 SkRandom rand; in onDraw() 99 static inline SkRect make_XYordered_rects(SkRandom& rand, int index, int numRects) { in make_XYordered_rects() 107 static inline SkRect make_YXordered_rects(SkRandom& rand, int index, int numRects) { in make_YXordered_rects() 116 static inline SkRect make_random_rects(SkRandom& rand, int index, int numRects) { in make_random_rects() 125 static inline SkRect make_concentric_rects(SkRandom&, int index, int numRects) { in make_concentric_rects() argument
|
D | StrokeBench.cpp | 56 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()
|
D | MathBench.cpp | 37 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 CTZBench() 514 SkRandom rand; in NormalizeBench() 562 SkRandom rand; in FixedMathBench() 676 SkRandom rand; in Floor2IntBench()
|
D | HairlinePathBench.cpp | 89 SkRandom rand; in makePath() 121 SkRandom rand; in makePath() 153 SkRandom rand; in makePath() 154 SkRandom randWeight; in makePath() 189 SkRandom rand; in makePath()
|
D | ScalarBench.cpp | 47 SkRandom rand; in init9() 97 SkRandom rand; in IsFiniteScalarBench() 135 SkRandom rand; in RectBoundsBench()
|
D | PDFBench.cpp | 47 PDFScalarBench(const char* n, float (*f)(SkRandom*)) : fName(n), fNextFloat(f) {} in PDFScalarBench() 49 float (*fNextFloat)(SkRandom*); 55 SkRandom random; in onDraw() 64 float next_common(SkRandom* random) { in next_common() 67 float next_any(SkRandom* random) { in next_any()
|
D | QuickRejectBench.cpp | 21 SkRandom rand; in onDelayedSetup() 48 SkRandom r; in onDelayedSetup()
|
D | MatrixBench.cpp | 90 SkRandom rand; in init9() 139 SkRandom fRnd; 167 SkRandom fRandom; 284 SkRandom rand; in MapPointsMatrixBench()
|
/third_party/skia/tests/ |
D | SkPathRangeIterTest.cpp | 12 SkPoint next_point(SkRandom& rand) { return {rand.nextF(), rand.nextF()}; } in next_point() 40 class : SkRandom { in DEF_TEST() 42 SkPoint p() { return {this->SkRandom::nextF(), this->SkRandom::nextF()}; } in DEF_TEST() 43 float w() { return this->SkRandom::nextF(); } in DEF_TEST()
|
D | RandomTest.cpp | 63 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()
|
D | WangsFormulaTest.cpp | 82 static void for_random_matrices(SkRandom* rand, std::function<void(const SkMatrix&)> f) { in for_random_matrices() 104 static void for_random_beziers(int numPoints, SkRandom* rand, in for_random_beziers() 256 SkRandom rand; in DEF_TEST() 297 SkRandom rand; in DEF_TEST() 339 SkRandom rand; in DEF_TEST() 357 SkRandom rand; in DEF_TEST() 407 SkRandom rand; in DEF_TEST() 449 SkRandom rand; in DEF_TEST() 482 SkRandom rand; in DEF_TEST() 507 SkRandom rand; in DEF_TEST()
|
D | RTreeTest.cpp | 16 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()
|
D | StrokerTest.cpp | 138 static SkScalar unbounded(SkRandom& r) { in unbounded() 143 static SkScalar unboundedPos(SkRandom& r) { in unboundedPos() 149 SkRandom r; in DEF_TEST() 187 SkRandom r; in DEF_TEST() 228 SkRandom r; in DEF_TEST() 279 SkRandom r; in DEF_TEST() 338 SkRandom r; in DEF_TEST() 383 SkRandom r; in DEF_TEST()
|
/third_party/skia/tools/ |
D | random_parse_path.cpp | 32 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()
|
D | random_parse_path.h | 13 class SkRandom; variable 15 SkString MakeRandomParsePathPiece(SkRandom* rand);
|
/third_party/skia/samplecode/ |
D | SamplePathText.cpp | 81 void init(SkRandom& rand, const SkPath& path); 82 void reset(SkRandom& rand, int w, int h); 95 virtual void reset(SkRandom*, int screenWidth, int screenHeight) {} in reset() argument 118 SkRandom fRand{25}; 124 void PathText::Glyph::init(SkRandom& rand, const SkPath& path) { in init() 130 void PathText::Glyph::reset(SkRandom& rand, int w, int h) { in reset() 157 void reset(SkRandom* rand, int screenWidth, int screenHeight) override { in reset() 265 void reset(SkRandom* rand, int screenWidth, int screenHeight) override { in reset() 340 void reset(SkRandom& rand, int w, int h); 360 void PathText::WavyGlyphAnimator::Waves::reset(SkRandom& rand, int w, int h) { in reset()
|
/third_party/skia/gm/ |
D | manypaths.cpp | 22 static SkColor gen_color(SkRandom* rand) { in gen_color() 52 SkRandom rand(1); in onDraw() 91 SkRandom rand(1); in onDraw()
|
D | points.cpp | 36 static void fill_pts(SkPoint pts[], size_t n, SkRandom* rand) { in fill_pts() 50 SkRandom rand; in onDraw() 86 SkRandom rand;
|
D | beziers.cpp | 23 static SkPath rnd_quad(SkPaint* paint, SkRandom& rand) { in rnd_quad() 44 static SkPath rnd_cubic(SkPaint* paint, SkRandom& rand) { in rnd_cubic() 87 SkRandom rand; in onDraw()
|
/third_party/skia/tools/gpu/ |
D | GrTest.cpp | 38 SkRandom*, \ 67 void GrDrawRandomOp(SkRandom* random, skgpu::v1::SurfaceDrawContext* sdc, GrPaint&& paint) { in GrDrawRandomOp() 70 SkRandom*, in GrDrawRandomOp()
|