Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(468)

Unified Diff: src/gpu/GrOvalRenderer.cpp

Issue 1213623022: fix up test create functions (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more cleanup Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrDefaultGeoProcFactory.cpp ('k') | src/gpu/effects/GrBezierEffect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrOvalRenderer.cpp
diff --git a/src/gpu/GrOvalRenderer.cpp b/src/gpu/GrOvalRenderer.cpp
index 57e53b69d6b0f5119887897ee0c1eef2a13b85d9..0d7da2ebcf798b273f2c38f84c6179785c0327f3 100644
--- a/src/gpu/GrOvalRenderer.cpp
+++ b/src/gpu/GrOvalRenderer.cpp
@@ -203,14 +203,11 @@ private:
GR_DEFINE_GEOMETRY_PROCESSOR_TEST(CircleEdgeEffect);
-GrGeometryProcessor* CircleEdgeEffect::TestCreate(SkRandom* random,
- GrContext* context,
- const GrCaps&,
- GrTexture* textures[]) {
- return CircleEdgeEffect::Create(GrRandomColor(random),
- random->nextBool(),
- GrTest::TestMatrix(random),
- random->nextBool());
+GrGeometryProcessor* CircleEdgeEffect::TestCreate(GrProcessorTestData* d) {
+ return CircleEdgeEffect::Create(GrRandomColor(d->fRandom),
+ d->fRandom->nextBool(),
+ GrTest::TestMatrix(d->fRandom),
+ d->fRandom->nextBool());
}
///////////////////////////////////////////////////////////////////////////////
@@ -385,14 +382,11 @@ private:
GR_DEFINE_GEOMETRY_PROCESSOR_TEST(EllipseEdgeEffect);
-GrGeometryProcessor* EllipseEdgeEffect::TestCreate(SkRandom* random,
- GrContext* context,
- const GrCaps&,
- GrTexture* textures[]) {
- return EllipseEdgeEffect::Create(GrRandomColor(random),
- random->nextBool(),
- GrTest::TestMatrix(random),
- random->nextBool());
+GrGeometryProcessor* EllipseEdgeEffect::TestCreate(GrProcessorTestData* d) {
+ return EllipseEdgeEffect::Create(GrRandomColor(d->fRandom),
+ d->fRandom->nextBool(),
+ GrTest::TestMatrix(d->fRandom),
+ d->fRandom->nextBool());
}
///////////////////////////////////////////////////////////////////////////////
@@ -589,14 +583,11 @@ private:
GR_DEFINE_GEOMETRY_PROCESSOR_TEST(DIEllipseEdgeEffect);
-GrGeometryProcessor* DIEllipseEdgeEffect::TestCreate(SkRandom* random,
- GrContext* context,
- const GrCaps&,
- GrTexture* textures[]) {
- return DIEllipseEdgeEffect::Create(GrRandomColor(random),
- GrTest::TestMatrix(random),
- (Mode)(random->nextRangeU(0,2)),
- random->nextBool());
+GrGeometryProcessor* DIEllipseEdgeEffect::TestCreate(GrProcessorTestData* d) {
+ return DIEllipseEdgeEffect::Create(GrRandomColor(d->fRandom),
+ GrTest::TestMatrix(d->fRandom),
+ (Mode)(d->fRandom->nextRangeU(0,2)),
+ d->fRandom->nextBool());
}
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « src/gpu/GrDefaultGeoProcFactory.cpp ('k') | src/gpu/effects/GrBezierEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698