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

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

Issue 311193009: Replace GraphicsContext::setupPaintFor* with const getters. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/StrokeData.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 59168523c45d0d473a388605e53e925136505b12..a77513527099b7b3682f774ac39d35461809701b 100644
--- a/Source/platform/graphics/GraphicsContext.cpp
+++ b/Source/platform/graphics/GraphicsContext.cpp
@@ -549,22 +549,6 @@ void GraphicsContext::drawDisplayList(DisplayList* displayList)
m_canvas->translate(-bounds.x(), -bounds.y());
}
-void GraphicsContext::setupPaintForFilling(SkPaint* paint) const
-{
- if (contextDisabled())
- return;
-
- *paint = immutableState()->fillPaint();
-}
-
-void GraphicsContext::setupPaintForStroking(SkPaint* paint) const
-{
- if (contextDisabled())
- return;
-
- *paint = immutableState()->strokePaint();
-}
-
void GraphicsContext::drawConvexPolygon(size_t numPoints, const FloatPoint* points, bool shouldAntialias)
{
if (contextDisabled())
« no previous file with comments | « Source/platform/graphics/GraphicsContext.h ('k') | Source/platform/graphics/StrokeData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698