Fix GPU blur cacheing bug. Sometimes, the texture cache serves us textures of
authorsenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 19 Jul 2011 21:22:13 +0000 (21:22 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 19 Jul 2011 21:22:13 +0000 (21:22 +0000)
commit422b67d745afc6e3b02c489dc6f0cd3ae856dd32
tree4678a24a5ea133fca374cd1a8ac27738a9b1cdc1
parent6c858246f5cd4d99fa5d754ed9175ec4cc7094ab
Fix GPU blur cacheing bug.  Sometimes, the texture cache serves us textures of
different sizes for srcTexture and dstTexture (this is fair; they're supposed
to be approximate).  Code was assuming otherwise while downsampling; fix is to
reapply the scale on each downsample.   (Yes, I could cache these reciprocals
if and when they prove to be a hot spot).

Also, use setIDiv(w,h) everywhere for conciseness.

Review URL:  http://codereview.appspot.com/4798041/

git-svn-id: http://skia.googlecode.com/svn/trunk@1907 2bbb7eff-a529-9590-31e7-b0007b416f81
src/gpu/SkGpuDevice.cpp