Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 443cace

Browse files
committed
format code
1 parent cc7cef9 commit 443cace

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

display_list/display_list_builder.cc

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,13 @@ void* DisplayListBuilder::Push(size_t pod, int op_inc, Args&&... args) {
5050
}
5151

5252
sk_sp<DisplayList> DisplayListBuilder::Build() {
53-
5453
FML_DCHECK(build_count_ == 0);
5554
build_count_++;
5655

5756
while (layer_stack_.size() > 1) {
5857
restore();
5958
}
60-
59+
6160
size_t bytes = used_;
6261
int count = op_count_;
6362
size_t nested_bytes = nested_bytes_;
@@ -474,8 +473,6 @@ void DisplayListBuilder::restore() {
474473
}
475474
}
476475

477-
478-
479476
LayerInfo layer_info1 = layer_info;
480477

481478
layer_stack_.pop_back();
@@ -554,11 +551,10 @@ void DisplayListBuilder::saveLayer(const SkRect* bounds,
554551
// We will fill the clip of the outer layer when we restore
555552
AccumulateUnbounded();
556553
}
557-
layer_stack_.emplace_back(current_layer_, save_layer_offset,
558-
true, current_.getImageFilter());
554+
layer_stack_.emplace_back(current_layer_, save_layer_offset, true,
555+
current_.getImageFilter());
559556
} else {
560-
layer_stack_.emplace_back(current_layer_, save_layer_offset,
561-
true, nullptr);
557+
layer_stack_.emplace_back(current_layer_, save_layer_offset, true, nullptr);
562558
}
563559

564560
current_layer_ = &layer_stack_.back();

display_list/display_list_builder.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,9 @@ class DisplayListBuilder final : public virtual Dispatcher,
587587
return accumulator()->bounds();
588588
}
589589

590-
BoundsAccumulator* accumulator() const { return current_layer_->layer_accumulator(); }
590+
BoundsAccumulator* accumulator() const {
591+
return current_layer_->layer_accumulator();
592+
}
591593

592594
bool paint_nops_on_transparency();
593595

0 commit comments

Comments
 (0)