@@ -81,15 +81,14 @@ class DisplayListFlags {
8181
8282 // clang-format off
8383 static constexpr int kUsesAntiAlias = 1 << 10 ;
84- static constexpr int kUsesDither = 1 << 11 ;
85- static constexpr int kUsesAlpha = 1 << 12 ;
86- static constexpr int kUsesColor = 1 << 13 ;
87- static constexpr int kUsesBlend = 1 << 14 ;
88- static constexpr int kUsesShader = 1 << 15 ;
89- static constexpr int kUsesColorFilter = 1 << 16 ;
90- static constexpr int kUsesPathEffect = 1 << 17 ;
91- static constexpr int kUsesMaskFilter = 1 << 18 ;
92- static constexpr int kUsesImageFilter = 1 << 19 ;
84+ static constexpr int kUsesAlpha = 1 << 11 ;
85+ static constexpr int kUsesColor = 1 << 12 ;
86+ static constexpr int kUsesBlend = 1 << 13 ;
87+ static constexpr int kUsesShader = 1 << 14 ;
88+ static constexpr int kUsesColorFilter = 1 << 15 ;
89+ static constexpr int kUsesPathEffect = 1 << 16 ;
90+ static constexpr int kUsesMaskFilter = 1 << 17 ;
91+ static constexpr int kUsesImageFilter = 1 << 18 ;
9392
9493 // Some ops have an optional paint argument. If the version
9594 // stored in the DisplayList ignores the paint, but there
@@ -102,9 +101,8 @@ class DisplayListFlags {
102101 // clang-format on
103102
104103 static constexpr int kAnyAttributeMask = //
105- kUsesAntiAlias | kUsesDither | kUsesAlpha | kUsesColor | kUsesBlend |
106- kUsesShader | kUsesColorFilter | kUsesPathEffect | kUsesMaskFilter |
107- kUsesImageFilter ;
104+ kUsesAntiAlias | kUsesAlpha | kUsesColor | kUsesBlend | kUsesShader |
105+ kUsesColorFilter | kUsesPathEffect | kUsesMaskFilter | kUsesImageFilter ;
108106};
109107
110108class DisplayListFlagsBase : protected DisplayListFlags {
@@ -173,7 +171,6 @@ class DisplayListAttributeFlags : DisplayListFlagsBase {
173171 constexpr bool ignores_paint () const { return has_any (kIgnoresPaint ); }
174172
175173 constexpr bool applies_anti_alias () const { return has_any (kUsesAntiAlias ); }
176- constexpr bool applies_dither () const { return has_any (kUsesDither ); }
177174 constexpr bool applies_color () const { return has_any (kUsesColor ); }
178175 constexpr bool applies_alpha () const { return has_any (kUsesAlpha ); }
179176 constexpr bool applies_alpha_or_color () const {
@@ -257,8 +254,7 @@ class DisplayListAttributeFlags : DisplayListFlagsBase {
257254class DisplayListOpFlags : DisplayListFlags {
258255 private:
259256 // Flags common to all primitives that apply colors
260- static constexpr int kBasePaintFlags = (kUsesDither | //
261- kUsesColor | //
257+ static constexpr int kBasePaintFlags = (kUsesColor | //
262258 kUsesAlpha | //
263259 kUsesBlend | //
264260 kUsesShader | //
@@ -280,7 +276,6 @@ class DisplayListOpFlags : DisplayListFlags {
280276 // Flags common to primitives that render an image with paint attributes
281277 static constexpr int kBaseImageFlags = (kIsNonGeometric | //
282278 kUsesAlpha | //
283- kUsesDither | //
284279 kUsesBlend | //
285280 kUsesColorFilter | //
286281 kUsesImageFilter );
@@ -376,7 +371,6 @@ class DisplayListOpFlags : DisplayListFlags {
376371 };
377372 static constexpr DisplayListAttributeFlags kDrawVerticesFlags {
378373 kIsNonGeometric | //
379- kUsesDither | //
380374 kUsesAlpha | //
381375 kUsesShader | //
382376 kUsesBlend | //
0 commit comments