aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkEdgeBuilder.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-02-07 12:18:41 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-07 12:18:41 -0800
commit01d3319b67b1ad404006a0026803efc1573f4570 (patch)
treec350a7e529a518fa74befb485332bb767257bf35 /src/core/SkEdgeBuilder.h
parent5cc0f6c1ac6636efaf4da775f464a0288fef04e7 (diff)
Faster edge re-sort
For now, disable dropping trailing edges This reverts commit 0692c5f2c1df7d1b66c62025200dd666f9ecd311. BUG=skia: TBR= Review URL: https://codereview.chromium.org/882733004
Diffstat (limited to 'src/core/SkEdgeBuilder.h')
-rw-r--r--src/core/SkEdgeBuilder.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/SkEdgeBuilder.h b/src/core/SkEdgeBuilder.h
index f9e5976e17..625465b8a6 100644
--- a/src/core/SkEdgeBuilder.h
+++ b/src/core/SkEdgeBuilder.h
@@ -22,7 +22,7 @@ public:
// returns the number of built edges. The array of those edge pointers
// is returned from edgeList().
- int build(const SkPath& path, const SkIRect* clip, int shiftUp);
+ int build(const SkPath& path, const SkIRect* clip, int shiftUp, bool clipToTheRight);
SkEdge** edgeList() { return fEdgeList; }
@@ -36,9 +36,9 @@ private:
* empty, as we will have preallocated room for the pointers in fAlloc's
* block, and fEdgeList will point into that.
*/
- SkEdge** fEdgeList;
+ SkEdge** fEdgeList;
- int fShiftUp;
+ int fShiftUp;
public:
void addLine(const SkPoint pts[]);
@@ -46,7 +46,7 @@ public:
void addCubic(const SkPoint pts[]);
void addClipper(SkEdgeClipper*);
- int buildPoly(const SkPath& path, const SkIRect* clip, int shiftUp);
+ int buildPoly(const SkPath& path, const SkIRect* clip, int shiftUp, bool clipToTheRight);
};
#endif