summaryrefslogtreecommitdiff
path: root/chromium/cc/paint/paint_flags.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/cc/paint/paint_flags.h')
-rw-r--r--chromium/cc/paint/paint_flags.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/chromium/cc/paint/paint_flags.h b/chromium/cc/paint/paint_flags.h
index c1f1cb5ce2f..e28e68929c9 100644
--- a/chromium/cc/paint/paint_flags.h
+++ b/chromium/cc/paint/paint_flags.h
@@ -33,7 +33,6 @@ class CC_PAINT_EXPORT PaintFlags {
enum Style {
kFill_Style = SkPaint::kFill_Style,
kStroke_Style = SkPaint::kStroke_Style,
- kStrokeAndFill_Style = SkPaint::kStrokeAndFill_Style,
};
bool nothingToDraw() const;
ALWAYS_INLINE Style getStyle() const {
@@ -141,9 +140,13 @@ class CC_PAINT_EXPORT PaintFlags {
draw_looper_ = std::move(looper);
}
- // Returns true if this just represents an opacity blend when
- // used as saveLayer flags.
+ // Returns true if this just represents an opacity blend when used as
+ // saveLayer flags, thus the saveLayer can be converted to a saveLayerAlpha.
bool IsSimpleOpacity() const;
+
+ // Returns true if this (of a drawOp) allows the sequence
+ // saveLayerAlpha/drawOp/restore to be folded into a single drawOp by baking
+ // the alpha in the saveLayerAlpha into the flags of the drawOp.
bool SupportsFoldingAlpha() const;
// SkPaint does not support loopers, so callers of SkToPaint need