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

Unified Diff: include/gpu/GrEffectUnitTest.h

Issue 23576015: Change old PRG to be SkLCGRandom; change new one to SkRandom (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix some spurious SkMWCRandoms Created 7 years, 3 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 | « gm/strokes.cpp ('k') | include/utils/SkRandom.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrEffectUnitTest.h
diff --git a/include/gpu/GrEffectUnitTest.h b/include/gpu/GrEffectUnitTest.h
index 557602fd5df9c9ca8b3831213c231fd85febb3b7..78506da1979a7355395923e567eb8ed427e17eae 100644
--- a/include/gpu/GrEffectUnitTest.h
+++ b/include/gpu/GrEffectUnitTest.h
@@ -25,7 +25,7 @@ enum {
/**
* A helper for use in GrEffect::TestCreate functions.
*/
-const SkMatrix& TestMatrix(SkMWCRandom*);
+const SkMatrix& TestMatrix(SkRandom*);
}
@@ -38,7 +38,7 @@ class GrTexture;
class GrEffectTestFactory : GrNoncopyable {
public:
- typedef GrEffectRef* (*CreateProc)(SkMWCRandom*,
+ typedef GrEffectRef* (*CreateProc)(SkRandom*,
GrContext*,
const GrDrawTargetCaps& caps,
GrTexture* dummyTextures[]);
@@ -48,7 +48,7 @@ public:
GetFactories()->push_back(this);
}
- static GrEffectRef* CreateStage(SkMWCRandom* random,
+ static GrEffectRef* CreateStage(SkRandom* random,
GrContext* context,
const GrDrawTargetCaps& caps,
GrTexture* dummyTextures[]) {
@@ -67,14 +67,14 @@ private:
*/
#define GR_DECLARE_EFFECT_TEST \
static GrEffectTestFactory gTestFactory; \
- static GrEffectRef* TestCreate(SkMWCRandom*, \
+ static GrEffectRef* TestCreate(SkRandom*, \
GrContext*, \
const GrDrawTargetCaps&, \
GrTexture* dummyTextures[2])
/** GrEffect subclasses should insert this macro in their implementation file. They must then
* also implement this static function:
- * GrEffect* TestCreate(SkMWCRandom*,
+ * GrEffect* TestCreate(SkRandom*,
* GrContext*,
* const GrDrawTargetCaps&,
* GrTexture* dummyTextures[2]);
@@ -91,7 +91,7 @@ private:
// The unit test relies on static initializers. Just declare the TestCreate function so that
// its definitions will compile.
#define GR_DECLARE_EFFECT_TEST \
- static GrEffectRef* TestCreate(SkMWCRandom*, \
+ static GrEffectRef* TestCreate(SkRandom*, \
GrContext*, \
const GrDrawTargetCaps&, \
GrTexture* dummyTextures[2])
« no previous file with comments | « gm/strokes.cpp ('k') | include/utils/SkRandom.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698