From 3098a752efba40b0d240061a9cf8a5b6ecd7e547 Mon Sep 17 00:00:00 2001 From: halcanary Date: Wed, 27 May 2015 14:43:40 -0700 Subject: [PATCH] Better comments in SkXfermodeInterpretation TBR=reed@google.com Review URL: https://codereview.chromium.org/1159493003 --- src/core/SkXfermodeInterpretation.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/core/SkXfermodeInterpretation.h b/src/core/SkXfermodeInterpretation.h index f559b33..d0a420f 100644 --- a/src/core/SkXfermodeInterpretation.h +++ b/src/core/SkXfermodeInterpretation.h @@ -10,13 +10,21 @@ class SkPaint; -/** By analyzing the paint, we may decide we can take special - action. This enum lists our possible actions. */ +/** + * By analyzing the paint, we may decide we can take special + * action. This enum lists our possible actions. + */ enum SkXfermodeInterpretation { - kNormal_SkXfermodeInterpretation, // draw normally - kSrcOver_SkXfermodeInterpretation, // draw as if in srcover mode - kSkipDrawing_SkXfermodeInterpretation // draw nothing + kNormal_SkXfermodeInterpretation, //< draw normally + kSrcOver_SkXfermodeInterpretation, //< draw as if in srcover mode + kSkipDrawing_SkXfermodeInterpretation //< draw nothing }; + +/** + * Given a paint, determine whether the paint's transfer mode can be + * replaced with kSrcOver_Mode or not drawn at all. This is used by + * SkBlitter and SkPDFDevice. + */ SkXfermodeInterpretation SkInterpretXfermode(const SkPaint&, bool dstIsOpaque); #endif // SkXfermodeInterpretation_DEFINED -- 2.7.4