Bug 781731 - Set Azure shadow canvas size match thebes in order to match performance. r=Bas

This commit is contained in:
Anthony Jones 2012-09-02 19:07:06 -04:00
parent 30cd2208d4
commit 38dffad114

View File

@ -287,7 +287,8 @@ public:
mTempRect = mgfx::Rect(0, 0, ctx->mWidth, ctx->mHeight);
Float blurRadius = mSigma * 3;
static const gfxFloat GAUSSIAN_SCALE_FACTOR = (3 * sqrt(2 * M_PI) / 4) * 1.5;
int32_t blurRadius = (int32_t) floor(mSigma * GAUSSIAN_SCALE_FACTOR + 0.5);
// We need to enlarge and possibly offset our temporary surface
// so that things outside of the canvas may cast shadows.