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

Side by Side Diff: src/core/SkXfermodeInterpretation.h

Issue 1159493003: Better comments in SkXfermodeInterpretation (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkXfermodeInterpretation_DEFINED 8 #ifndef SkXfermodeInterpretation_DEFINED
9 #define SkXfermodeInterpretation_DEFINED 9 #define SkXfermodeInterpretation_DEFINED
10 10
11 class SkPaint; 11 class SkPaint;
12 12
13 /** By analyzing the paint, we may decide we can take special 13 /**
14 action. This enum lists our possible actions. */ 14 * By analyzing the paint, we may decide we can take special
15 * action. This enum lists our possible actions.
16 */
15 enum SkXfermodeInterpretation { 17 enum SkXfermodeInterpretation {
16 kNormal_SkXfermodeInterpretation, // draw normally 18 kNormal_SkXfermodeInterpretation, //< draw normally
17 kSrcOver_SkXfermodeInterpretation, // draw as if in srcover mode 19 kSrcOver_SkXfermodeInterpretation, //< draw as if in srcover mode
18 kSkipDrawing_SkXfermodeInterpretation // draw nothing 20 kSkipDrawing_SkXfermodeInterpretation //< draw nothing
19 }; 21 };
22
23 /**
24 * Given a paint, determine whether the paint's transfer mode can be
25 * replaced with kSrcOver_Mode or not drawn at all. This is used by
26 * SkBlitter and SkPDFDevice.
27 */
20 SkXfermodeInterpretation SkInterpretXfermode(const SkPaint&, bool dstIsOpaque); 28 SkXfermodeInterpretation SkInterpretXfermode(const SkPaint&, bool dstIsOpaque);
21 29
22 #endif // SkXfermodeInterpretation_DEFINED 30 #endif // SkXfermodeInterpretation_DEFINED
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698