Skip to content

Commit

Permalink
Implement a DisplayList mechanism similar to the Skia SkLiteDL mechan…
Browse files Browse the repository at this point in the history
…ism (flutter#26928)
  • Loading branch information
flar authored Jul 1, 2021
1 parent 28c2182 commit eab0cd4
Show file tree
Hide file tree
Showing 39 changed files with 6,328 additions and 35 deletions.
11 changes: 11 additions & 0 deletions ci/licenses_golden/licenses_flutter
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ FILE: ../../../flutter/flow/compositor_context.cc
FILE: ../../../flutter/flow/compositor_context.h
FILE: ../../../flutter/flow/diff_context.cc
FILE: ../../../flutter/flow/diff_context.h
FILE: ../../../flutter/flow/display_list.cc
FILE: ../../../flutter/flow/display_list.h
FILE: ../../../flutter/flow/display_list_canvas.cc
FILE: ../../../flutter/flow/display_list_canvas.h
FILE: ../../../flutter/flow/display_list_canvas_unittests.cc
FILE: ../../../flutter/flow/display_list_unittests.cc
FILE: ../../../flutter/flow/display_list_utils.cc
FILE: ../../../flutter/flow/display_list_utils.h
FILE: ../../../flutter/flow/embedded_view_params_unittests.cc
FILE: ../../../flutter/flow/embedded_views.cc
FILE: ../../../flutter/flow/embedded_views.h
Expand Down Expand Up @@ -67,6 +75,9 @@ FILE: ../../../flutter/flow/layers/color_filter_layer_unittests.cc
FILE: ../../../flutter/flow/layers/container_layer.cc
FILE: ../../../flutter/flow/layers/container_layer.h
FILE: ../../../flutter/flow/layers/container_layer_unittests.cc
FILE: ../../../flutter/flow/layers/display_list_layer.cc
FILE: ../../../flutter/flow/layers/display_list_layer.h
FILE: ../../../flutter/flow/layers/display_list_layer_unittests.cc
FILE: ../../../flutter/flow/layers/image_filter_layer.cc
FILE: ../../../flutter/flow/layers/image_filter_layer.h
FILE: ../../../flutter/flow/layers/image_filter_layer_unittests.cc
Expand Down
3 changes: 3 additions & 0 deletions common/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ struct Settings {
// Selects the SkParagraph implementation of the text layout engine.
bool enable_skparagraph = false;

// Selects the DisplayList for storage of rendering operations.
bool enable_display_list = false;

// All shells in the process share the same VM. The last shell to shutdown
// should typically shut down the VM as well. However, applications depend on
// the behavior of "warming-up" the VM by creating a shell that does not do
Expand Down
11 changes: 11 additions & 0 deletions flow/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ source_set("flow") {
"compositor_context.h",
"diff_context.cc",
"diff_context.h",
"display_list.cc",
"display_list.h",
"display_list_canvas.cc",
"display_list_canvas.h",
"display_list_utils.cc",
"display_list_utils.h",
"embedded_views.cc",
"embedded_views.h",
"frame_timings.cc",
Expand All @@ -30,6 +36,8 @@ source_set("flow") {
"layers/color_filter_layer.h",
"layers/container_layer.cc",
"layers/container_layer.h",
"layers/display_list_layer.cc",
"layers/display_list_layer.h",
"layers/image_filter_layer.cc",
"layers/image_filter_layer.h",
"layers/layer.cc",
Expand Down Expand Up @@ -123,6 +131,8 @@ if (enable_unittests) {
testonly = true

sources = [
"display_list_canvas_unittests.cc",
"display_list_unittests.cc",
"embedded_view_params_unittests.cc",
"flow_run_all_unittests.cc",
"flow_test_utils.cc",
Expand All @@ -136,6 +146,7 @@ if (enable_unittests) {
"layers/clip_rrect_layer_unittests.cc",
"layers/color_filter_layer_unittests.cc",
"layers/container_layer_unittests.cc",
"layers/display_list_layer_unittests.cc",
"layers/image_filter_layer_unittests.cc",
"layers/layer_tree_unittests.cc",
"layers/opacity_layer_unittests.cc",
Expand Down
Loading

0 comments on commit eab0cd4

Please sign in to comment.