@@ -480,22 +480,22 @@ class Dispatcher {
480480class DisplayListFlags {
481481 protected:
482482 // A drawing operation that is not geometric in nature (but which
483- // may still apply a MaskFilter - see |kApplyMaskFilter | below).
483+ // may still apply a MaskFilter - see |kUsesMaskFilter_ | below).
484484 static constexpr int kIsNonGeometric_ = 0 ;
485485
486486 // A geometric operation that is defined as a fill operation
487487 // regardless of what the current paint Style is set to.
488- // This flag will automatically assume |kApplyMaskFilter |.
488+ // This flag will automatically assume |kUsesMaskFilter_ |.
489489 static constexpr int kIsFilledGeometry_ = 1 << 0 ;
490490
491491 // A geometric operation that is defined as a stroke operation
492492 // regardless of what the current paint Style is set to.
493- // This flag will automatically assume |kApplyMaskFilter |.
493+ // This flag will automatically assume |kUsesMaskFilter_ |.
494494 static constexpr int kIsStrokedGeometry_ = 1 << 1 ;
495495
496496 // A geometric operation that may be a stroke or fill operation
497497 // depending on the current state of the paint Style attribute.
498- // This flag will automatically assume |kApplyMaskFilter |.
498+ // This flag will automatically assume |kUsesMaskFilter_ |.
499499 static constexpr int kIsDrawnGeometry_ = 1 << 2 ;
500500
501501 static constexpr int kIsAnyGeometryMask_ = //
@@ -1010,12 +1010,13 @@ class DisplayListBuilder final : public virtual Dispatcher, public SkRefCnt {
10101010 bool current_dither_ = false ;
10111011 bool current_invert_colors_ = false ;
10121012 SkColor current_color_ = 0xFF000000 ;
1013- SkBlendMode current_blend_mode_ = SkBlendMode::kSrcOver ;
10141013 SkPaint::Style current_style_ = SkPaint::Style::kFill_Style ;
10151014 SkScalar current_stroke_width_ = 0.0 ;
10161015 SkScalar current_stroke_miter_ = 4.0 ;
10171016 SkPaint::Cap current_stroke_cap_ = SkPaint::Cap::kButt_Cap ;
10181017 SkPaint::Join current_stroke_join_ = SkPaint::Join::kMiter_Join ;
1018+ // If |current_blender_| is set then |current_blend_mode_| should be ignored
1019+ SkBlendMode current_blend_mode_ = SkBlendMode::kSrcOver ;
10191020 sk_sp<SkBlender> current_blender_;
10201021 sk_sp<SkShader> current_shader_;
10211022 sk_sp<SkColorFilter> current_color_filter_;
0 commit comments