Use SK_SUPPORT_LEGACY_AA_CHOICE to stage some changes
So I can rebaseline the golden images and unify AA choices without fully turning on DAA. Bug: skia: Change-Id: I33447f60c8eac6318dda7730abd6caefdb14c5dc Reviewed-on: https://skia-review.googlesource.com/62840 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Yuqian Li <liyuqian@google.com>
This commit is contained in:
parent
9dd4ae1a7a
commit
d99d157d48
@ -1420,7 +1420,7 @@ bool SkAAClip::setPath(const SkPath& path, const SkRegion* clip, bool doAA) {
|
||||
BuilderBlitter blitter(&builder);
|
||||
|
||||
if (doAA) {
|
||||
#ifdef SK_SUPPORT_LEGACY_DELTA_AA
|
||||
#ifdef SK_SUPPORT_LEGACY_AA_CHOICE
|
||||
if (gSkUseAnalyticAA.load()) {
|
||||
SkScan::AAAFillPath(path, snugClip, &blitter, true);
|
||||
} else {
|
||||
|
@ -615,7 +615,7 @@ static bool ShouldUseAAA(const SkPath& path) {
|
||||
|
||||
void SkScan::AntiFillPath(const SkPath& path, const SkRegion& origClip,
|
||||
SkBlitter* blitter, bool forceRLE) {
|
||||
#if !defined(SK_SUPPORT_LEGACY_DELTA_AA)
|
||||
#if !defined(SK_SUPPORT_LEGACY_AA_CHOICE)
|
||||
if (ShouldUseDAA(path)) {
|
||||
SkScan::DAAFillPath(path, origClip, blitter, forceRLE);
|
||||
return;
|
||||
@ -675,7 +675,7 @@ void SkScan::AntiFillPath(const SkPath& path, const SkRasterClip& clip,
|
||||
using FillPathProc = void(*)(const SkPath&, const SkRegion&, SkBlitter*, bool);
|
||||
FillPathProc fillPathProc = &SkScan::AntiFillPath;
|
||||
|
||||
#ifdef SK_SUPPORT_LEGACY_DELTA_AA
|
||||
#ifdef SK_SUPPORT_LEGACY_AA_CHOICE
|
||||
if (ShouldUseDAA(path)) {
|
||||
fillPathProc = &SkScan::DAAFillPath;
|
||||
} else if (ShouldUseAAA(path)) {
|
||||
|
Loading…
Reference in New Issue
Block a user