@@ -344,55 +344,6 @@ struct SaveLayerBackdropBoundsOp final : DLOp {
344
344
: DisplayListCompare::kNotEqual ;
345
345
}
346
346
};
347
-
348
- // 4 byte header + 20 byte payload packs into minimum 24 bytes
349
- struct SaveLayerColorFilterOp final : DLOp {
350
- static const auto kType = DisplayListOpType::kSaveLayerBackdrop ;
351
-
352
- explicit SaveLayerColorFilterOp (const SaveLayerOptions options,
353
- const DlColorFilter* color_filter)
354
- : options(options), color_filter(color_filter->shared ()) {}
355
-
356
- SaveLayerOptions options;
357
- const std::shared_ptr<DlColorFilter> color_filter;
358
-
359
- void dispatch (Dispatcher& dispatcher) const {
360
- dispatcher.saveLayerCF (nullptr , options, color_filter.get ());
361
- }
362
-
363
- DisplayListCompare equals (const SaveLayerColorFilterOp* other) const {
364
- return options == other->options &&
365
- Equals (color_filter, other->color_filter )
366
- ? DisplayListCompare::kEqual
367
- : DisplayListCompare::kNotEqual ;
368
- }
369
- };
370
-
371
- // 4 byte header + 36 byte payload packs evenly into 36 bytes
372
- struct SaveLayerColorFilterBoundsOp final : DLOp {
373
- static const auto kType = DisplayListOpType::kSaveLayerBackdropBounds ;
374
-
375
- SaveLayerColorFilterBoundsOp (SkRect rect,
376
- const SaveLayerOptions options,
377
- const DlColorFilter* color_filter)
378
- : options(options), rect(rect), color_filter(color_filter->shared ()) {}
379
-
380
- SaveLayerOptions options;
381
- const SkRect rect;
382
- const std::shared_ptr<DlColorFilter> color_filter;
383
-
384
- void dispatch (Dispatcher& dispatcher) const {
385
- dispatcher.saveLayerCF (&rect, options, color_filter.get ());
386
- }
387
-
388
- DisplayListCompare equals (const SaveLayerColorFilterBoundsOp* other) const {
389
- return (options == other->options && rect == other->rect &&
390
- Equals (color_filter, other->color_filter ))
391
- ? DisplayListCompare::kEqual
392
- : DisplayListCompare::kNotEqual ;
393
- }
394
- };
395
-
396
347
// 4 byte header + no payload uses minimum 8 bytes (4 bytes unused)
397
348
struct RestoreOp final : DLOp {
398
349
static const auto kType = DisplayListOpType::kRestore ;
0 commit comments