Unreviewed build fix
authorsugoi@google.com <sugoi@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 25 Mar 2013 20:14:08 +0000 (20:14 +0000)
committersugoi@google.com <sugoi@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 25 Mar 2013 20:14:08 +0000 (20:14 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@8373 2bbb7eff-a529-9590-31e7-b0007b416f81

src/effects/SkPerlinNoiseShader.cpp

index 0317c4c..9b403ad 100644 (file)
@@ -938,8 +938,9 @@ GrEffectRef* SkPerlinNoiseShader::asNewEffect(GrContext* context, const SkPaint&
         context, *fPaintingData->getNoiseBitmap(), NULL);
 
     GrEffectRef* effect = (NULL != permutationsTexture) && (NULL != noiseTexture) ?
-        GrPerlinNoiseEffect::Create(fType, fPaintingData->fBaseFrequency, fNumOctaves,
-                                    fStitchTiles, fPaintingData->fStitchDataInit,
+        GrPerlinNoiseEffect::Create(fType, fPaintingData->fBaseFrequency, 
+                                    SkIntToScalar(fNumOctaves), fStitchTiles,
+                                    fPaintingData->fStitchDataInit,
                                     permutationsTexture, noiseTexture, 
                                     this->getLocalMatrix(), paint.getAlpha()) :
         NULL;