diff options
author | halcanary <halcanary@google.com> | 2015-05-27 14:43:40 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-27 14:43:40 -0700 |
commit | 3098a752efba40b0d240061a9cf8a5b6ecd7e547 (patch) | |
tree | da8c5038e0b032942c3db29016f8f7aa6843059c | |
parent | f152e98cfa5528c60e2ed5098c7df8b3f79dc991 (diff) |
Better comments in SkXfermodeInterpretation
TBR=reed@google.com
Review URL: https://codereview.chromium.org/1159493003
-rw-r--r-- | src/core/SkXfermodeInterpretation.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/core/SkXfermodeInterpretation.h b/src/core/SkXfermodeInterpretation.h index f559b33a7d..d0a420f383 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 |