diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-09 20:09:12 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-09 20:09:12 +0000 |
commit | e0e7cfe44bb9d66d76120a79e5275c294bacaa22 (patch) | |
tree | d3d282beb8e498659f87abafa5a651946eea6ee8 /include/gpu | |
parent | 50b2e33dc6acaed906bfdc89af9b359ea2665c52 (diff) |
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
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrEffectUnitTest.h | 12 |
1 files changed, 6 insertions, 6 deletions
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]) |