diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/cc/paint/paint_flags.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/cc/paint/paint_flags.h')
-rw-r--r-- | chromium/cc/paint/paint_flags.h | 9 |
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 |