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

Commit f12813f

Browse files
authored
[1p cherry pick] Revert "Reland "Split DisplayListBuilder into DlCanvas optimizer and … (#45680)
…DlOp recorder classes #44718" (#45085)" This reverts commit 1382d6d. context: b/299886812 manual revert. the revert in main contains two commits and cannot be cherry picked cleanly.
1 parent d37cef8 commit f12813f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+3556
-3746
lines changed

ci/licenses_golden/licenses_flutter

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -717,22 +717,18 @@ ORIGIN: ../../../flutter/display_list/benchmarking/dl_complexity_metal.h + ../..
717717
ORIGIN: ../../../flutter/display_list/benchmarking/dl_region_benchmarks.cc + ../../../flutter/LICENSE
718718
ORIGIN: ../../../flutter/display_list/display_list.cc + ../../../flutter/LICENSE
719719
ORIGIN: ../../../flutter/display_list/display_list.h + ../../../flutter/LICENSE
720-
ORIGIN: ../../../flutter/display_list/display_list_builder.cc + ../../../flutter/LICENSE
721-
ORIGIN: ../../../flutter/display_list/display_list_builder.h + ../../../flutter/LICENSE
722720
ORIGIN: ../../../flutter/display_list/dl_attributes.h + ../../../flutter/LICENSE
723721
ORIGIN: ../../../flutter/display_list/dl_blend_mode.cc + ../../../flutter/LICENSE
724722
ORIGIN: ../../../flutter/display_list/dl_blend_mode.h + ../../../flutter/LICENSE
723+
ORIGIN: ../../../flutter/display_list/dl_builder.cc + ../../../flutter/LICENSE
724+
ORIGIN: ../../../flutter/display_list/dl_builder.h + ../../../flutter/LICENSE
725725
ORIGIN: ../../../flutter/display_list/dl_canvas.cc + ../../../flutter/LICENSE
726726
ORIGIN: ../../../flutter/display_list/dl_canvas.h + ../../../flutter/LICENSE
727-
ORIGIN: ../../../flutter/display_list/dl_canvas_to_receiver.cc + ../../../flutter/LICENSE
728-
ORIGIN: ../../../flutter/display_list/dl_canvas_to_receiver.h + ../../../flutter/LICENSE
729727
ORIGIN: ../../../flutter/display_list/dl_color.h + ../../../flutter/LICENSE
730728
ORIGIN: ../../../flutter/display_list/dl_op_flags.cc + ../../../flutter/LICENSE
731729
ORIGIN: ../../../flutter/display_list/dl_op_flags.h + ../../../flutter/LICENSE
732730
ORIGIN: ../../../flutter/display_list/dl_op_receiver.cc + ../../../flutter/LICENSE
733731
ORIGIN: ../../../flutter/display_list/dl_op_receiver.h + ../../../flutter/LICENSE
734-
ORIGIN: ../../../flutter/display_list/dl_op_recorder.cc + ../../../flutter/LICENSE
735-
ORIGIN: ../../../flutter/display_list/dl_op_recorder.h + ../../../flutter/LICENSE
736732
ORIGIN: ../../../flutter/display_list/dl_op_records.cc + ../../../flutter/LICENSE
737733
ORIGIN: ../../../flutter/display_list/dl_op_records.h + ../../../flutter/LICENSE
738734
ORIGIN: ../../../flutter/display_list/dl_paint.cc + ../../../flutter/LICENSE
@@ -3465,22 +3461,18 @@ FILE: ../../../flutter/display_list/benchmarking/dl_complexity_metal.h
34653461
FILE: ../../../flutter/display_list/benchmarking/dl_region_benchmarks.cc
34663462
FILE: ../../../flutter/display_list/display_list.cc
34673463
FILE: ../../../flutter/display_list/display_list.h
3468-
FILE: ../../../flutter/display_list/display_list_builder.cc
3469-
FILE: ../../../flutter/display_list/display_list_builder.h
34703464
FILE: ../../../flutter/display_list/dl_attributes.h
34713465
FILE: ../../../flutter/display_list/dl_blend_mode.cc
34723466
FILE: ../../../flutter/display_list/dl_blend_mode.h
3467+
FILE: ../../../flutter/display_list/dl_builder.cc
3468+
FILE: ../../../flutter/display_list/dl_builder.h
34733469
FILE: ../../../flutter/display_list/dl_canvas.cc
34743470
FILE: ../../../flutter/display_list/dl_canvas.h
3475-
FILE: ../../../flutter/display_list/dl_canvas_to_receiver.cc
3476-
FILE: ../../../flutter/display_list/dl_canvas_to_receiver.h
34773471
FILE: ../../../flutter/display_list/dl_color.h
34783472
FILE: ../../../flutter/display_list/dl_op_flags.cc
34793473
FILE: ../../../flutter/display_list/dl_op_flags.h
34803474
FILE: ../../../flutter/display_list/dl_op_receiver.cc
34813475
FILE: ../../../flutter/display_list/dl_op_receiver.h
3482-
FILE: ../../../flutter/display_list/dl_op_recorder.cc
3483-
FILE: ../../../flutter/display_list/dl_op_recorder.h
34843476
FILE: ../../../flutter/display_list/dl_op_records.cc
34853477
FILE: ../../../flutter/display_list/dl_op_records.h
34863478
FILE: ../../../flutter/display_list/dl_paint.cc

display_list/BUILD.gn

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,18 @@ source_set("display_list") {
2525
"benchmarking/dl_complexity_metal.h",
2626
"display_list.cc",
2727
"display_list.h",
28-
"display_list_builder.cc",
29-
"display_list_builder.h",
3028
"dl_attributes.h",
3129
"dl_blend_mode.cc",
3230
"dl_blend_mode.h",
31+
"dl_builder.cc",
32+
"dl_builder.h",
3333
"dl_canvas.cc",
3434
"dl_canvas.h",
35-
"dl_canvas_to_receiver.cc",
36-
"dl_canvas_to_receiver.h",
3735
"dl_color.h",
3836
"dl_op_flags.cc",
3937
"dl_op_flags.h",
4038
"dl_op_receiver.cc",
4139
"dl_op_receiver.h",
42-
"dl_op_recorder.cc",
43-
"dl_op_recorder.h",
4440
"dl_op_records.cc",
4541
"dl_op_records.h",
4642
"dl_paint.cc",

display_list/benchmarking/dl_benchmarks.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// found in the LICENSE file.
44

55
#include "flutter/display_list/benchmarking/dl_benchmarks.h"
6-
#include "flutter/display_list/display_list_builder.h"
6+
#include "flutter/display_list/dl_builder.h"
77
#include "flutter/display_list/dl_op_flags.h"
88
#include "flutter/display_list/skia/dl_sk_canvas.h"
99

display_list/benchmarking/dl_complexity_gl.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ void DisplayListGLComplexityCalculator::GLHelper::drawVertices(
503503
}
504504

505505
void DisplayListGLComplexityCalculator::GLHelper::drawImage(
506-
const sk_sp<DlImage>& image,
506+
const sk_sp<DlImage> image,
507507
const SkPoint point,
508508
DlImageSampling sampling,
509509
bool render_with_attributes) {
@@ -583,7 +583,7 @@ void DisplayListGLComplexityCalculator::GLHelper::ImageRect(
583583
}
584584

585585
void DisplayListGLComplexityCalculator::GLHelper::drawImageNine(
586-
const sk_sp<DlImage>& image,
586+
const sk_sp<DlImage> image,
587587
const SkIRect& center,
588588
const SkRect& dst,
589589
DlFilterMode filter,
@@ -608,7 +608,7 @@ void DisplayListGLComplexityCalculator::GLHelper::drawImageNine(
608608
}
609609

610610
void DisplayListGLComplexityCalculator::GLHelper::drawDisplayList(
611-
const sk_sp<DisplayList>& display_list,
611+
const sk_sp<DisplayList> display_list,
612612
SkScalar opacity) {
613613
if (IsComplex()) {
614614
return;
@@ -622,7 +622,7 @@ void DisplayListGLComplexityCalculator::GLHelper::drawDisplayList(
622622
}
623623

624624
void DisplayListGLComplexityCalculator::GLHelper::drawTextBlob(
625-
const sk_sp<SkTextBlob>& blob,
625+
const sk_sp<SkTextBlob> blob,
626626
SkScalar x,
627627
SkScalar y) {
628628
if (IsComplex()) {

display_list/benchmarking/dl_complexity_gl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@ class DisplayListGLComplexityCalculator
5656
uint32_t count,
5757
const SkPoint points[]) override;
5858
void drawVertices(const DlVertices* vertices, DlBlendMode mode) override;
59-
void drawImage(const sk_sp<DlImage>& image,
59+
void drawImage(const sk_sp<DlImage> image,
6060
const SkPoint point,
6161
DlImageSampling sampling,
6262
bool render_with_attributes) override;
63-
void drawImageNine(const sk_sp<DlImage>& image,
63+
void drawImageNine(const sk_sp<DlImage> image,
6464
const SkIRect& center,
6565
const SkRect& dst,
6666
DlFilterMode filter,
6767
bool render_with_attributes) override;
68-
void drawDisplayList(const sk_sp<DisplayList>& display_list,
68+
void drawDisplayList(const sk_sp<DisplayList> display_list,
6969
SkScalar opacity) override;
70-
void drawTextBlob(const sk_sp<SkTextBlob>& blob,
70+
void drawTextBlob(const sk_sp<SkTextBlob> blob,
7171
SkScalar x,
7272
SkScalar y) override;
7373
void drawShadow(const SkPath& path,

display_list/benchmarking/dl_complexity_helper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class ComplexityCalculatorHelper
146146
}
147147

148148
void drawImageRect(
149-
const sk_sp<DlImage>& image,
149+
const sk_sp<DlImage> image,
150150
const SkRect& src,
151151
const SkRect& dst,
152152
DlImageSampling sampling,
@@ -159,7 +159,7 @@ class ComplexityCalculatorHelper
159159
render_with_attributes, constraint == SrcRectConstraint::kStrict);
160160
}
161161

162-
void drawAtlas(const sk_sp<DlImage>& atlas,
162+
void drawAtlas(const sk_sp<DlImage> atlas,
163163
const SkRSXform xform[],
164164
const SkRect tex[],
165165
const DlColor colors[],

display_list/benchmarking/dl_complexity_metal.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ void DisplayListMetalComplexityCalculator::MetalHelper::drawVertices(
455455
}
456456

457457
void DisplayListMetalComplexityCalculator::MetalHelper::drawImage(
458-
const sk_sp<DlImage>& image,
458+
const sk_sp<DlImage> image,
459459
const SkPoint point,
460460
DlImageSampling sampling,
461461
bool render_with_attributes) {
@@ -532,7 +532,7 @@ void DisplayListMetalComplexityCalculator::MetalHelper::ImageRect(
532532
}
533533

534534
void DisplayListMetalComplexityCalculator::MetalHelper::drawImageNine(
535-
const sk_sp<DlImage>& image,
535+
const sk_sp<DlImage> image,
536536
const SkIRect& center,
537537
const SkRect& dst,
538538
DlFilterMode filter,
@@ -552,7 +552,7 @@ void DisplayListMetalComplexityCalculator::MetalHelper::drawImageNine(
552552
}
553553

554554
void DisplayListMetalComplexityCalculator::MetalHelper::drawDisplayList(
555-
const sk_sp<DisplayList>& display_list,
555+
const sk_sp<DisplayList> display_list,
556556
SkScalar opacity) {
557557
if (IsComplex()) {
558558
return;
@@ -566,7 +566,7 @@ void DisplayListMetalComplexityCalculator::MetalHelper::drawDisplayList(
566566
}
567567

568568
void DisplayListMetalComplexityCalculator::MetalHelper::drawTextBlob(
569-
const sk_sp<SkTextBlob>& blob,
569+
const sk_sp<SkTextBlob> blob,
570570
SkScalar x,
571571
SkScalar y) {
572572
if (IsComplex()) {

display_list/benchmarking/dl_complexity_metal.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@ class DisplayListMetalComplexityCalculator
5656
uint32_t count,
5757
const SkPoint points[]) override;
5858
void drawVertices(const DlVertices* vertices, DlBlendMode mode) override;
59-
void drawImage(const sk_sp<DlImage>& image,
59+
void drawImage(const sk_sp<DlImage> image,
6060
const SkPoint point,
6161
DlImageSampling sampling,
6262
bool render_with_attributes) override;
63-
void drawImageNine(const sk_sp<DlImage>& image,
63+
void drawImageNine(const sk_sp<DlImage> image,
6464
const SkIRect& center,
6565
const SkRect& dst,
6666
DlFilterMode filter,
6767
bool render_with_attributes) override;
68-
void drawDisplayList(const sk_sp<DisplayList>& display_list,
68+
void drawDisplayList(const sk_sp<DisplayList> display_list,
6969
SkScalar opacity) override;
70-
void drawTextBlob(const sk_sp<SkTextBlob>& blob,
70+
void drawTextBlob(const sk_sp<SkTextBlob> blob,
7171
SkScalar x,
7272
SkScalar y) override;
7373
void drawShadow(const SkPath& path,

display_list/benchmarking/dl_complexity_unittests.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "flutter/display_list/benchmarking/dl_complexity_gl.h"
77
#include "flutter/display_list/benchmarking/dl_complexity_metal.h"
88
#include "flutter/display_list/display_list.h"
9-
#include "flutter/display_list/display_list_builder.h"
9+
#include "flutter/display_list/dl_builder.h"
1010
#include "flutter/display_list/dl_sampling_options.h"
1111
#include "flutter/display_list/testing/dl_test_snippets.h"
1212
#include "flutter/testing/testing.h"
@@ -102,7 +102,7 @@ TEST(DisplayListComplexity, StrokeWidth) {
102102
auto display_list_stroke_0 = builder_stroke_0.Build();
103103

104104
DisplayListBuilder builder_stroke_1;
105-
builder_stroke_1.DrawLine(SkPoint::Make(0, 0), SkPoint::Make(100, 100),
105+
builder_stroke_0.DrawLine(SkPoint::Make(0, 0), SkPoint::Make(100, 100),
106106
DlPaint().setStrokeWidth(1.0f));
107107
auto display_list_stroke_1 = builder_stroke_1.Build();
108108

0 commit comments

Comments
 (0)