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

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

Issue 1213723006: Drop pattern-related state from GraphicsContext(State) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/GraphicsContext.h ('k') | Source/platform/graphics/GraphicsContextState.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContext.cpp
diff --git a/Source/platform/graphics/GraphicsContext.cpp b/Source/platform/graphics/GraphicsContext.cpp
index 413b4e19988745ec4a7e01daf879ec726333c3ec..9a9a22cf2337bd1bb86be513c12ca4b372b36f16 100644
--- a/Source/platform/graphics/GraphicsContext.cpp
+++ b/Source/platform/graphics/GraphicsContext.cpp
@@ -211,20 +211,6 @@ void GraphicsContext::setInDrawingRecorder(bool val)
}
#endif
-void GraphicsContext::setStrokePattern(PassRefPtr<Pattern> pattern, float alpha)
-{
- if (contextDisabled())
- return;
-
- ASSERT(pattern);
- if (!pattern) {
- setStrokeColor(Color::black);
- return;
- }
-
- mutableState()->setStrokePattern(pattern, alpha);
-}
-
void GraphicsContext::setStrokeGradient(PassRefPtr<Gradient> gradient, float alpha)
{
if (contextDisabled())
@@ -238,20 +224,6 @@ void GraphicsContext::setStrokeGradient(PassRefPtr<Gradient> gradient, float alp
mutableState()->setStrokeGradient(gradient, alpha);
}
-void GraphicsContext::setFillPattern(PassRefPtr<Pattern> pattern, float alpha)
-{
- if (contextDisabled())
- return;
-
- ASSERT(pattern);
- if (!pattern) {
- setFillColor(Color::black);
- return;
- }
-
- mutableState()->setFillPattern(pattern, alpha);
-}
-
void GraphicsContext::setFillGradient(PassRefPtr<Gradient> gradient, float alpha)
{
if (contextDisabled())
« no previous file with comments | « Source/platform/graphics/GraphicsContext.h ('k') | Source/platform/graphics/GraphicsContextState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698