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

Unified Diff: src/core/SkScan_Hairline.cpp

Issue 12772003: Removed unused parameters (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 | « src/core/SkPtrRecorder.h ('k') | src/gpu/effects/GrEllipseEdgeEffect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkScan_Hairline.cpp
===================================================================
--- src/core/SkScan_Hairline.cpp (revision 8101)
+++ src/core/SkScan_Hairline.cpp (working copy)
@@ -193,10 +193,6 @@
#include "SkPath.h"
#include "SkGeometry.h"
-static bool quad_too_curvy(const SkPoint pts[3]) {
- return true;
-}
-
static int compute_int_quad_dist(const SkPoint pts[3]) {
// compute the vector between the control point ([1]) and the middle of the
// line connecting the start and end ([0] and [2])
@@ -220,7 +216,7 @@
void (*lineproc)(const SkPoint&, const SkPoint&, const SkRegion* clip, SkBlitter*))
{
#if 1
- if (level > 0 && quad_too_curvy(pts))
+ if (level > 0)
{
SkPoint tmp[5];
@@ -247,15 +243,10 @@
#endif
}
-static bool cubic_too_curvy(const SkPoint pts[4])
-{
- return true;
-}
-
static void haircubic(const SkPoint pts[4], const SkRegion* clip, SkBlitter* blitter, int level,
void (*lineproc)(const SkPoint&, const SkPoint&, const SkRegion*, SkBlitter*))
{
- if (level > 0 && cubic_too_curvy(pts))
+ if (level > 0)
{
SkPoint tmp[7];
« no previous file with comments | « src/core/SkPtrRecorder.h ('k') | src/gpu/effects/GrEllipseEdgeEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698