Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2072)

Unified Diff: Source/platform/graphics/GraphicsContextState.cpp

Issue 947213002: Remove unused methods from GraphicsContextState (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/graphics/GraphicsContextState.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
{
« no previous file with comments | « Source/platform/graphics/GraphicsContextState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698