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

Unified Diff: src/core/SkScan.cpp

Issue 2410303002: Add AA Analytic Compile Flag (and small fixes) (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 | « samplecode/SampleApp.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.cpp
diff --git a/src/core/SkScan.cpp b/src/core/SkScan.cpp
index ceb9ff6e7a418a5e0213b3043d20f1bf9ef23f0a..a7ecf31826aec4d9f61c1fffade68f96366908b8 100644
--- a/src/core/SkScan.cpp
+++ b/src/core/SkScan.cpp
@@ -10,7 +10,11 @@
#include "SkBlitter.h"
#include "SkRasterClip.h"
-std::atomic<bool> gSkUseAnalyticAA{false};
+#ifdef SK_ANALYTIC_AA
+ std::atomic<bool> gSkUseAnalyticAA{true};
+#else
+ std::atomic<bool> gSkUseAnalyticAA{false};
+#endif
static inline void blitrect(SkBlitter* blitter, const SkIRect& r) {
blitter->blitRect(r.fLeft, r.fTop, r.width(), r.height());
« no previous file with comments | « samplecode/SampleApp.cpp ('k') | src/core/SkScan_AAAPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698