From e0e7cfe44bb9d66d76120a79e5275c294bacaa22 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Mon, 9 Sep 2013 20:09:12 +0000 Subject: Change old PRG to be SkLCGRandom; change new one to SkRandom The goal here is to get people to start using the new random number generator, while leaving the old one in place so we don't have to rebaseline GMs. R=reed@google.com, bsalomon@google.com Author: jvanverth@google.com Review URL: https://chromiumcodereview.appspot.com/23576015 git-svn-id: http://skia.googlecode.com/svn/trunk@11169 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/gpu/GrEffectUnitTest.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/gpu') diff --git a/include/gpu/GrEffectUnitTest.h b/include/gpu/GrEffectUnitTest.h index 557602fd5d..78506da197 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]) -- cgit v1.2.3