Index: src/core/SkLinearBitmapPipeline.cpp |
diff --git a/src/core/SkLinearBitmapPipeline.cpp b/src/core/SkLinearBitmapPipeline.cpp |
index 59960ebcb7c62f2fed18fd2d5eb93accd2d5d5ed..4e4226a3206367770dd35682e00e856479b0b7c3 100644 |
--- a/src/core/SkLinearBitmapPipeline.cpp |
+++ b/src/core/SkLinearBitmapPipeline.cpp |
@@ -238,12 +238,6 @@ |
processor->breakIntoEdges(span); |
} |
- void repeatSpan(Span span, int32_t repeatCount) { |
- while (repeatCount --> 0) { |
- processor->pointSpan(span); |
- } |
- } |
- |
BilerpTileStage* processor; |
}; |
@@ -370,21 +364,13 @@ |
SkShader::TileMode xMode, |
SkShader::TileMode yMode, |
SkFilterQuality filterQuality, |
- SkScalar dx, |
- SkLinearBitmapPipeline::TileStage* tileStage) |
-{ |
+ SkLinearBitmapPipeline::TileStage* tileStage) { |
switch (xMode) { |
case SkShader::kClamp_TileMode: |
choose_tiler_ymode<XClampStrategy>(yMode, filterQuality, dimensions, next, tileStage); |
break; |
case SkShader::kRepeat_TileMode: |
- if (dx == 1.0f && filterQuality == kNone_SkFilterQuality) { |
- choose_tiler_ymode<XRepeatUnitScaleStrategy>( |
- yMode, kNone_SkFilterQuality, dimensions, next, tileStage); |
- } else { |
- choose_tiler_ymode<XRepeatStrategy>( |
- yMode, filterQuality, dimensions, next, tileStage); |
- } |
+ choose_tiler_ymode<XRepeatStrategy>(yMode, filterQuality, dimensions, next, tileStage); |
break; |
case SkShader::kMirror_TileMode: |
choose_tiler_ymode<XMirrorStrategy>(yMode, filterQuality, dimensions, next, tileStage); |
@@ -602,8 +588,6 @@ |
} |
} |
- SkScalar dx = adjustedInverse.getScaleX(); |
- |
// If it is an index 8 color type, the sampler converts to unpremul for better fidelity. |
SkAlphaType alphaType = srcImageInfo.alphaType(); |
if (srcPixmap.colorType() == kIndex_8_SkColorType) { |
@@ -616,7 +600,7 @@ |
auto samplerStage = choose_pixel_sampler(placementStage, |
filterQuality, srcPixmap, &fSampleStage); |
auto tilerStage = choose_tiler(samplerStage, |
- dimensions, xTile, yTile, filterQuality, dx, &fTiler); |
+ dimensions, xTile, yTile, filterQuality, &fTiler); |
fFirstStage = choose_matrix(tilerStage, adjustedInverse, &fMatrixStage); |
} |