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

Unified Diff: src/core/SkEdgeClipper.h

Issue 913503002: cull edges that are to the right of the clip (Closed) Base URL: https://skia.googlesource.com/skia.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
Index: src/core/SkEdgeClipper.h
diff --git a/src/core/SkEdgeClipper.h b/src/core/SkEdgeClipper.h
index e16ed552ca225cf56f3fa9a2cca3b1bb8aceb725..16887b4a32137c5e9500f0a58ffe05c6c268558d 100644
--- a/src/core/SkEdgeClipper.h
+++ b/src/core/SkEdgeClipper.h
@@ -17,14 +17,19 @@
*/
class SkEdgeClipper {
public:
+ SkEdgeClipper(bool canCullToTheRight) : fCanCullToTheRight(canCullToTheRight) {}
+
bool clipQuad(const SkPoint pts[3], const SkRect& clip);
bool clipCubic(const SkPoint pts[4], const SkRect& clip);
SkPath::Verb next(SkPoint pts[]);
+ bool canCullToTheRight() const { return fCanCullToTheRight; }
+
private:
SkPoint* fCurrPoint;
SkPath::Verb* fCurrVerb;
+ const bool fCanCullToTheRight;
enum {
kMaxVerbs = 13,
« no previous file with comments | « src/core/SkEdgeBuilder.cpp ('k') | src/core/SkEdgeClipper.cpp » ('j') | src/core/SkScan_Path.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698