| Index: src/opts/SkBitmapFilter_opts_SSE2.cpp
|
| diff --git a/src/opts/SkBitmapFilter_opts_SSE2.cpp b/src/opts/SkBitmapFilter_opts_SSE2.cpp
|
| index 685ec77f49f9d908afef189154d122f8b7cfead0..b7d8fd235fe86d236ddf60451000d0accbef1ebf 100644
|
| --- a/src/opts/SkBitmapFilter_opts_SSE2.cpp
|
| +++ b/src/opts/SkBitmapFilter_opts_SSE2.cpp
|
| @@ -72,10 +72,10 @@ void highQualityFilter_SSE2(const SkBitmapProcState& s, int x, int y,
|
| int x1 = SkTMin(maxX, int(floor(sx+s.getBitmapFilter()->width() + 0.5f)));
|
|
|
| for (int src_y = y0; src_y <= y1; src_y++) {
|
| - float yweight = s.getBitmapFilter()->lookupFloat( (srcPt.fY - src_y) );
|
| + float yweight = SkScalarToFloat(s.getBitmapFilter()->lookupScalar(srcPt.fY - src_y));
|
|
|
| for (int src_x = x0; src_x <= x1 ; src_x++) {
|
| - float xweight = s.getBitmapFilter()->lookupFloat( (srcPt.fX - src_x) );
|
| + float xweight = SkScalarToFloat(s.getBitmapFilter()->lookupScalar(srcPt.fX - src_x));
|
|
|
| float combined_weight = xweight * yweight;
|
|
|
| @@ -139,10 +139,10 @@ void highQualityFilter_ScaleOnly_SSE2(const SkBitmapProcState &s, int x, int y,
|
| int x1 = SkTMin(maxX, int(floor(sx+s.getBitmapFilter()->width() + 0.5f)));
|
|
|
| for (int src_y = y0; src_y <= y1; src_y++) {
|
| - float yweight = s.getBitmapFilter()->lookupFloat( (srcPt.fY - src_y) );
|
| + float yweight = SkScalarToFloat(s.getBitmapFilter()->lookupScalar(srcPt.fY - src_y));
|
|
|
| for (int src_x = x0; src_x <= x1 ; src_x++) {
|
| - float xweight = s.getBitmapFilter()->lookupFloat( (srcPt.fX - src_x) );
|
| + float xweight = SkScalarToFloat(s.getBitmapFilter()->lookupScalar(srcPt.fX - src_x));
|
|
|
| float combined_weight = xweight * yweight;
|
|
|
|
|