Chromium Code Reviews| Index: src/device/xps/SkXPSDevice.cpp |
| =================================================================== |
| --- src/device/xps/SkXPSDevice.cpp (revision 8271) |
| +++ src/device/xps/SkXPSDevice.cpp (working copy) |
| @@ -950,7 +950,6 @@ |
| SkASSERT(1 == info.fColorCount); |
| SkColor color; |
| info.fColors = &color; |
| - SkShader::GradientType gradientType = shader->asAGradient(&info); |
|
reed1
2013/03/21 13:14:24
Why did we eliminate this line, given that we insp
bsalomon
2013/03/21 13:45:29
I misunderstood the code and thought these calls w
|
| SkAlpha alpha = skPaint.getAlpha(); |
| HR(this->createXpsSolidColorBrush(color, alpha, brush)); |
| return S_OK; |
| @@ -966,7 +965,6 @@ |
| SkAutoTArray<SkScalar> colorOffsets(info.fColorCount); |
| info.fColors = colors.get(); |
| info.fColorOffsets = colorOffsets.get(); |
| - shader->asAGradient(&info); |
|
reed1
2013/03/21 13:14:24
Why did we eliminate this call, given that we insp
|
| if (1 == info.fColorCount) { |
| SkColor color = info.fColors[0]; |