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

Unified Diff: src/gpu/effects/GrDashingEffect.h

Issue 2042923003: Make GrDashEffect take a AA mode enum. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: rm unneeded scoping Created 4 years, 6 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/gpu/effects/GrDashingEffect.h
diff --git a/src/gpu/effects/GrDashingEffect.h b/src/gpu/effects/GrDashingEffect.h
index 8899820114d77e45fc1cd6c03945091e7e4a55ff..b2d052347938d346ea4963b14dec32e91d1dccba 100644
--- a/src/gpu/effects/GrDashingEffect.h
+++ b/src/gpu/effects/GrDashingEffect.h
@@ -17,11 +17,17 @@ class GrDrawBatch;
class GrStyle;
namespace GrDashingEffect {
+ enum class AAMode {
+ kNone,
+ kCoverage,
+ kCoverageWithMSAA,
+ };
+ static const int kAAModeCnt = static_cast<int>(AAMode::kCoverageWithMSAA) + 1;
+
GrDrawBatch* CreateDashLineBatch(GrColor,
const SkMatrix& viewMatrix,
const SkPoint pts[2],
- bool useAA,
- bool msaaIsEnabled,
+ AAMode,
const GrStyle& style);
bool CanDrawDashLine(const SkPoint pts[2], const GrStyle& style,
const SkMatrix& viewMatrix);

Powered by Google App Engine
This is Rietveld 408576698