OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:fRandom
(Results
1 - 25
of
135
) sorted by null
1
2
3
4
5
6
/external/skia/samplecode/
SampleManyRects.cpp
39
SkRect rect = SkRect::MakeWH(SkIntToScalar(
fRandom
.nextRangeU(10, 100)),
40
SkIntToScalar(
fRandom
.nextRangeU(10, 100)));
41
int x =
fRandom
.nextRangeU(0, dsize.fWidth);
42
int y =
fRandom
.nextRangeU(0, dsize.fHeight);
49
rotate.setRotate(
fRandom
.nextUScalar1() * 360,
60
paint.setColor(
fRandom
.nextU());
67
SkRandom
fRandom
;
/external/skqp/samplecode/
SampleManyRects.cpp
39
SkRect rect = SkRect::MakeWH(SkIntToScalar(
fRandom
.nextRangeU(10, 100)),
40
SkIntToScalar(
fRandom
.nextRangeU(10, 100)));
41
int x =
fRandom
.nextRangeU(0, dsize.fWidth);
42
int y =
fRandom
.nextRangeU(0, dsize.fHeight);
49
rotate.setRotate(
fRandom
.nextUScalar1() * 360,
60
paint.setColor(
fRandom
.nextU());
67
SkRandom
fRandom
;
/external/skia/src/gpu/effects/
GrConstColorProcessor.fp
67
int colorPicker = d->
fRandom
->nextULessThan(3);
70
uint32_t a = d->
fRandom
->nextULessThan(0x100);
71
uint32_t r = d->
fRandom
->nextULessThan(a+1);
72
uint32_t g = d->
fRandom
->nextULessThan(a+1);
73
uint32_t b = d->
fRandom
->nextULessThan(a+1);
81
uint32_t c = d->
fRandom
->nextULessThan(0x100);
85
InputMode mode = static_cast<InputMode>(d->
fRandom
->nextULessThan(kInputModeCnt));
GrConstColorProcessor.cpp
82
int colorPicker = d->
fRandom
->nextULessThan(3);
85
uint32_t a = d->
fRandom
->nextULessThan(0x100);
86
uint32_t r = d->
fRandom
->nextULessThan(a + 1);
87
uint32_t g = d->
fRandom
->nextULessThan(a + 1);
88
uint32_t b = d->
fRandom
->nextULessThan(a + 1);
96
uint32_t c = d->
fRandom
->nextULessThan(0x100);
100
InputMode mode = static_cast<InputMode>(d->
fRandom
->nextULessThan(kInputModeCnt));
GrAARectEffect.fp
53
SkRect rect = SkRect::MakeLTRB(d->
fRandom
->nextSScalar1(),
54
d->
fRandom
->nextSScalar1(),
55
d->
fRandom
->nextSScalar1(),
56
d->
fRandom
->nextSScalar1());
60
d->
fRandom
->nextULessThan(kGrClipEdgeTypeCnt));
GrSimpleTextureEffect.fp
59
int texIdx = testData->
fRandom
->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx
62
GrTest::TestWrapModes(testData->
fRandom
, wrapModes);
70
GrSamplerState params(wrapModes, testData->
fRandom
->nextBool()
74
const SkMatrix& matrix = GrTest::TestMatrix(testData->
fRandom
);
GrAlphaThresholdFragmentProcessor.fp
66
float innerThresh = testData->
fRandom
->nextUScalar1() * .99f + 0.005f;
67
float outerThresh = testData->
fRandom
->nextUScalar1() * .99f + 0.005f;
70
uint32_t width = testData->
fRandom
->nextULessThan(kMaxWidth);
71
uint32_t height = testData->
fRandom
->nextULessThan(kMaxHeight);
72
uint32_t x = testData->
fRandom
->nextULessThan(kMaxWidth - width);
73
uint32_t y = testData->
fRandom
->nextULessThan(kMaxHeight - height);
GrAlphaThresholdFragmentProcessor.cpp
112
float innerThresh = testData->
fRandom
->nextUScalar1() * .99f + 0.005f;
113
float outerThresh = testData->
fRandom
->nextUScalar1() * .99f + 0.005f;
116
uint32_t width = testData->
fRandom
->nextULessThan(kMaxWidth);
117
uint32_t height = testData->
fRandom
->nextULessThan(kMaxHeight);
118
uint32_t x = testData->
fRandom
->nextULessThan(kMaxWidth - width);
119
uint32_t y = testData->
fRandom
->nextULessThan(kMaxHeight - height);
GrSimpleTextureEffect.cpp
70
int texIdx = testData->
fRandom
->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx
73
GrTest::TestWrapModes(testData->
fRandom
, wrapModes);
81
GrSamplerState params(wrapModes, testData->
fRandom
->nextBool()
85
const SkMatrix& matrix = GrTest::TestMatrix(testData->
fRandom
);
/external/skqp/src/gpu/effects/
GrConstColorProcessor.fp
67
int colorPicker = d->
fRandom
->nextULessThan(3);
70
uint32_t a = d->
fRandom
->nextULessThan(0x100);
71
uint32_t r = d->
fRandom
->nextULessThan(a+1);
72
uint32_t g = d->
fRandom
->nextULessThan(a+1);
73
uint32_t b = d->
fRandom
->nextULessThan(a+1);
81
uint32_t c = d->
fRandom
->nextULessThan(0x100);
85
InputMode mode = static_cast<InputMode>(d->
fRandom
->nextULessThan(kInputModeCnt));
GrConstColorProcessor.cpp
82
int colorPicker = d->
fRandom
->nextULessThan(3);
85
uint32_t a = d->
fRandom
->nextULessThan(0x100);
86
uint32_t r = d->
fRandom
->nextULessThan(a + 1);
87
uint32_t g = d->
fRandom
->nextULessThan(a + 1);
88
uint32_t b = d->
fRandom
->nextULessThan(a + 1);
96
uint32_t c = d->
fRandom
->nextULessThan(0x100);
100
InputMode mode = static_cast<InputMode>(d->
fRandom
->nextULessThan(kInputModeCnt));
GrAARectEffect.fp
53
SkRect rect = SkRect::MakeLTRB(d->
fRandom
->nextSScalar1(),
54
d->
fRandom
->nextSScalar1(),
55
d->
fRandom
->nextSScalar1(),
56
d->
fRandom
->nextSScalar1());
60
d->
fRandom
->nextULessThan(kGrClipEdgeTypeCnt));
GrCircleEffect.fp
73
center.fX = testData->
fRandom
->nextRangeScalar(0.f, 1000.f);
74
center.fY = testData->
fRandom
->nextRangeScalar(0.f, 1000.f);
75
SkScalar radius = testData->
fRandom
->nextRangeF(1.f, 1000.f);
78
et = (GrClipEdgeType) testData->
fRandom
->nextULessThan(kGrClipEdgeTypeCnt);
GrSimpleTextureEffect.fp
59
int texIdx = testData->
fRandom
->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx
62
GrTest::TestWrapModes(testData->
fRandom
, wrapModes);
70
GrSamplerState params(wrapModes, testData->
fRandom
->nextBool()
74
const SkMatrix& matrix = GrTest::TestMatrix(testData->
fRandom
);
GrAlphaThresholdFragmentProcessor.fp
66
float innerThresh = testData->
fRandom
->nextUScalar1() * .99f + 0.005f;
67
float outerThresh = testData->
fRandom
->nextUScalar1() * .99f + 0.005f;
70
uint32_t width = testData->
fRandom
->nextULessThan(kMaxWidth);
71
uint32_t height = testData->
fRandom
->nextULessThan(kMaxHeight);
72
uint32_t x = testData->
fRandom
->nextULessThan(kMaxWidth - width);
73
uint32_t y = testData->
fRandom
->nextULessThan(kMaxHeight - height);
GrEllipseEffect.fp
111
center.fX = testData->
fRandom
->nextRangeScalar(0.f, 1000.f);
112
center.fY = testData->
fRandom
->nextRangeScalar(0.f, 1000.f);
113
SkScalar rx = testData->
fRandom
->nextRangeF(0.f, 1000.f);
114
SkScalar ry = testData->
fRandom
->nextRangeF(0.f, 1000.f);
117
et = (GrClipEdgeType) testData->
fRandom
->nextULessThan(kGrClipEdgeTypeCnt);
GrAlphaThresholdFragmentProcessor.cpp
112
float innerThresh = testData->
fRandom
->nextUScalar1() * .99f + 0.005f;
113
float outerThresh = testData->
fRandom
->nextUScalar1() * .99f + 0.005f;
116
uint32_t width = testData->
fRandom
->nextULessThan(kMaxWidth);
117
uint32_t height = testData->
fRandom
->nextULessThan(kMaxHeight);
118
uint32_t x = testData->
fRandom
->nextULessThan(kMaxWidth - width);
119
uint32_t y = testData->
fRandom
->nextULessThan(kMaxHeight - height);
/external/skia/src/gpu/gradients/
GrLinearGradientLayout.fp
52
SkPoint points[] = {{d->
fRandom
->nextRangeScalar(0.0f, scale),
53
d->
fRandom
->nextRangeScalar(0.0f, scale)},
54
{d->
fRandom
->nextRangeScalar(0.0f, scale),
55
d->
fRandom
->nextRangeScalar(0.0f, scale)}};
57
GrGradientShader::RandomParams params(d->
fRandom
);
GrRadialGradientLayout.fp
54
GrGradientShader::RandomParams params(d->
fRandom
);
55
SkPoint center = {d->
fRandom
->nextRangeScalar(0.0f, scale),
56
d->
fRandom
->nextRangeScalar(0.0f, scale)};
57
SkScalar radius = d->
fRandom
->nextRangeScalar(0.0f, scale);
GrLinearGradientLayout.cpp
61
{d->
fRandom
->nextRangeScalar(0.0f, scale), d->
fRandom
->nextRangeScalar(0.0f, scale)},
62
{d->
fRandom
->nextRangeScalar(0.0f, scale), d->
fRandom
->nextRangeScalar(0.0f, scale)}};
64
GrGradientShader::RandomParams params(d->
fRandom
);
GrRadialGradientLayout.cpp
62
GrGradientShader::RandomParams params(d->
fRandom
);
63
SkPoint center = {d->
fRandom
->nextRangeScalar(0.0f, scale),
64
d->
fRandom
->nextRangeScalar(0.0f, scale)};
65
SkScalar radius = d->
fRandom
->nextRangeScalar(0.0f, scale);
/external/skqp/src/gpu/gradients/
GrLinearGradientLayout.fp
52
SkPoint points[] = {{d->
fRandom
->nextRangeScalar(0.0f, scale),
53
d->
fRandom
->nextRangeScalar(0.0f, scale)},
54
{d->
fRandom
->nextRangeScalar(0.0f, scale),
55
d->
fRandom
->nextRangeScalar(0.0f, scale)}};
57
GrGradientShader::RandomParams params(d->
fRandom
);
GrRadialGradientLayout.fp
54
GrGradientShader::RandomParams params(d->
fRandom
);
55
SkPoint center = {d->
fRandom
->nextRangeScalar(0.0f, scale),
56
d->
fRandom
->nextRangeScalar(0.0f, scale)};
57
SkScalar radius = d->
fRandom
->nextRangeScalar(0.0f, scale);
GrLinearGradientLayout.cpp
61
{d->
fRandom
->nextRangeScalar(0.0f, scale), d->
fRandom
->nextRangeScalar(0.0f, scale)},
62
{d->
fRandom
->nextRangeScalar(0.0f, scale), d->
fRandom
->nextRangeScalar(0.0f, scale)}};
64
GrGradientShader::RandomParams params(d->
fRandom
);
GrSweepGradientLayout.fp
70
SkPoint center = {d->
fRandom
->nextRangeScalar(0.0f, scale),
71
d->
fRandom
->nextRangeScalar(0.0f, scale)};
73
GrGradientShader::RandomParams params(d->
fRandom
);
Completed in 734 milliseconds
1
2
3
4
5
6