| Index: Source/platform/graphics/GraphicsContextState.cpp
|
| diff --git a/Source/platform/graphics/GraphicsContextState.cpp b/Source/platform/graphics/GraphicsContextState.cpp
|
| index a0ffd4f8f2409259437de0625f1c72e7f184c5fb..90c4bee49e0fdf3d563268a779079ef2eb501bb7 100644
|
| --- a/Source/platform/graphics/GraphicsContextState.cpp
|
| +++ b/Source/platform/graphics/GraphicsContextState.cpp
|
| @@ -104,13 +104,6 @@ void GraphicsContextState::setStrokeGradient(const PassRefPtr<Gradient> gradient
|
| m_strokePaint.setShader(m_strokeGradient->shader());
|
| }
|
|
|
| -void GraphicsContextState::clearStrokeGradient()
|
| -{
|
| - m_strokeGradient.clear();
|
| - ASSERT(!m_strokePattern);
|
| - m_strokePaint.setColor(applyAlpha(m_strokeColor.rgb()));
|
| -}
|
| -
|
| void GraphicsContextState::setStrokePattern(const PassRefPtr<Pattern> pattern, float alpha)
|
| {
|
| m_strokeColor = Color::black;
|
| @@ -120,13 +113,6 @@ void GraphicsContextState::setStrokePattern(const PassRefPtr<Pattern> pattern, f
|
| m_strokePaint.setShader(m_strokePattern->shader());
|
| }
|
|
|
| -void GraphicsContextState::clearStrokePattern()
|
| -{
|
| - m_strokePattern.clear();
|
| - ASSERT(!m_strokeGradient);
|
| - m_strokePaint.setColor(applyAlpha(m_strokeColor.rgb()));
|
| -}
|
| -
|
| void GraphicsContextState::setLineCap(LineCap cap)
|
| {
|
| m_strokeData.setLineCap(cap);
|
| @@ -163,13 +149,6 @@ void GraphicsContextState::setFillGradient(const PassRefPtr<Gradient> gradient,
|
| m_fillPaint.setShader(m_fillGradient->shader());
|
| }
|
|
|
| -void GraphicsContextState::clearFillGradient()
|
| -{
|
| - m_fillGradient.clear();
|
| - ASSERT(!m_fillPattern);
|
| - m_fillPaint.setColor(applyAlpha(m_fillColor.rgb()));
|
| -}
|
| -
|
| void GraphicsContextState::setFillPattern(const PassRefPtr<Pattern> pattern, float alpha)
|
| {
|
| m_fillColor = Color::black;
|
| @@ -179,13 +158,6 @@ void GraphicsContextState::setFillPattern(const PassRefPtr<Pattern> pattern, flo
|
| m_fillPaint.setShader(m_fillPattern->shader());
|
| }
|
|
|
| -void GraphicsContextState::clearFillPattern()
|
| -{
|
| - m_fillPattern.clear();
|
| - ASSERT(!m_fillGradient);
|
| - m_fillPaint.setColor(applyAlpha(m_fillColor.rgb()));
|
| -}
|
| -
|
| // Shadow. (This will need tweaking if we use draw loopers for other things.)
|
| void GraphicsContextState::setDrawLooper(PassRefPtr<SkDrawLooper> drawLooper)
|
| {
|
|
|