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

Unified Diff: src/core/SkScan.h

Issue 2393643002: Resubmit issue 2221103002 to fix the iOS build by declaring the flag in (Closed)
Patch Set: Created 4 years, 2 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/SkEdgeBuilder.cpp ('k') | src/core/SkScan_AAAPath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkScan.h
diff --git a/src/core/SkScan.h b/src/core/SkScan.h
index 4aa8e443990ecf05b5d3918d5b2fe29047b1a588..1e3d60a290406b2288216f416328494a468bf359 100644
--- a/src/core/SkScan.h
+++ b/src/core/SkScan.h
@@ -22,6 +22,24 @@ class SkPath;
*/
typedef SkIRect SkXRect;
+class GlobalAAConfig {
+private:
+ GlobalAAConfig() {}
+
+public:
+ bool fUseAnalyticAA = false;
+
+ GlobalAAConfig(const GlobalAAConfig&) = delete;
+ void operator=(const GlobalAAConfig&) = delete;
+
+ static GlobalAAConfig& getInstance() {
+ static GlobalAAConfig instance;
+ return instance;
+ }
+};
+
+class AdditiveBlitter;
+
class SkScan {
public:
/*
@@ -45,6 +63,7 @@ public:
static void AntiFillXRect(const SkXRect&, const SkRasterClip&, SkBlitter*);
static void FillPath(const SkPath&, const SkRasterClip&, SkBlitter*);
static void AntiFillPath(const SkPath&, const SkRasterClip&, SkBlitter*);
+ static void AAAFillPath(const SkPath&, const SkRasterClip&, SkBlitter*);
static void FrameRect(const SkRect&, const SkPoint& strokeSize,
const SkRasterClip&, SkBlitter*);
static void AntiFrameRect(const SkRect&, const SkPoint& strokeSize,
@@ -79,6 +98,9 @@ private:
const SkRegion*, SkBlitter*);
static void HairLineRgn(const SkPoint[], int count, const SkRegion*, SkBlitter*);
static void AntiHairLineRgn(const SkPoint[], int count, const SkRegion*, SkBlitter*);
+ static void AAAFillPath(const SkPath& path, const SkRegion& origClip, SkBlitter* blitter);
+ static void aaa_fill_path(const SkPath& path, const SkIRect* clipRect, AdditiveBlitter*,
+ int start_y, int stop_y, const SkRegion& clipRgn, bool isUsingMask);
};
/** Assign an SkXRect from a SkIRect, by promoting the src rect's coordinates
« no previous file with comments | « src/core/SkEdgeBuilder.cpp ('k') | src/core/SkScan_AAAPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698