restructure DL sources into sub-directories and new file naming conventions (flutter/engine#40157)
restructure DL sources into sub-directories and new file naming conventions
This commit is contained in:
@@ -29,22 +29,21 @@
|
||||
../../../flutter/build
|
||||
../../../flutter/ci
|
||||
../../../flutter/common/README.md
|
||||
../../../flutter/display_list/display_list_color_filter_unittests.cc
|
||||
../../../flutter/display_list/display_list_color_source_unittests.cc
|
||||
../../../flutter/display_list/display_list_color_unittests.cc
|
||||
../../../flutter/display_list/display_list_complexity_unittests.cc
|
||||
../../../flutter/display_list/display_list_image_filter_unittests.cc
|
||||
../../../flutter/display_list/display_list_mask_filter_unittests.cc
|
||||
../../../flutter/display_list/display_list_matrix_clip_tracker_unittests.cc
|
||||
../../../flutter/display_list/display_list_paint_unittests.cc
|
||||
../../../flutter/display_list/display_list_path_effect_unittests.cc
|
||||
../../../flutter/display_list/display_list_rtree_unittests.cc
|
||||
../../../flutter/display_list/benchmarking/dl_complexity_unittests.cc
|
||||
../../../flutter/display_list/display_list_unittests.cc
|
||||
../../../flutter/display_list/display_list_vertices_unittests.cc
|
||||
../../../flutter/display_list/dl_rendering_unittests.cc
|
||||
../../../flutter/display_list/dl_color_unittests.cc
|
||||
../../../flutter/display_list/dl_paint_unittests.cc
|
||||
../../../flutter/display_list/dl_vertices_unittests.cc
|
||||
../../../flutter/display_list/effects/dl_color_filter_unittests.cc
|
||||
../../../flutter/display_list/effects/dl_color_source_unittests.cc
|
||||
../../../flutter/display_list/effects/dl_image_filter_unittests.cc
|
||||
../../../flutter/display_list/effects/dl_mask_filter_unittests.cc
|
||||
../../../flutter/display_list/effects/dl_path_effect_unittests.cc
|
||||
../../../flutter/display_list/geometry/dl_rtree_unittests.cc
|
||||
../../../flutter/display_list/skia/dl_sk_conversions_unittests.cc
|
||||
../../../flutter/display_list/skia/dl_sk_utils_unittests.cc
|
||||
../../../flutter/display_list/skia/dl_sk_paint_dispatcher_unittests.cc
|
||||
../../../flutter/display_list/testing
|
||||
../../../flutter/display_list/utils/dl_matrix_clip_tracker_unittests.cc
|
||||
../../../flutter/docs
|
||||
../../../flutter/examples
|
||||
../../../flutter/flow/README.md
|
||||
|
||||
@@ -704,70 +704,72 @@ ORIGIN: ../../../flutter/common/settings.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/common/settings.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/common/task_runners.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/common/task_runners.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/benchmarking/dl_benchmarks.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/benchmarking/dl_benchmarks.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/benchmarking/dl_builder_benchmarks.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/benchmarking/dl_complexity.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/benchmarking/dl_complexity.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/benchmarking/dl_complexity_gl.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/benchmarking/dl_complexity_gl.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/benchmarking/dl_complexity_helper.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/benchmarking/dl_complexity_metal.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/benchmarking/dl_complexity_metal.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_attributes.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_benchmarks.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_benchmarks.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_blend_mode.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_blend_mode.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_builder.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_builder.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_builder_benchmarks.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_color.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_color_filter.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_color_filter.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_color_source.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_color_source.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_comparable.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_complexity.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_complexity.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_complexity_gl.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_complexity_gl.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_complexity_helper.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_complexity_metal.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_complexity_metal.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_flags.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_flags.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_image.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_image.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_image_filter.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_image_filter.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_image_skia.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_image_skia.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_mask_filter.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_mask_filter.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_matrix_clip_tracker.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_matrix_clip_tracker.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_ops.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_ops.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_paint.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_paint.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_path_effect.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_path_effect.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_rtree.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_rtree.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_runtime_effect.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_runtime_effect.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_sampling_options.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_tile_mode.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_utils.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_utils.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_vertices.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/display_list_vertices.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_attributes.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_blend_mode.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_blend_mode.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_builder.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_builder.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_canvas.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_canvas.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_color.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_op_flags.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_op_flags.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_op_receiver.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_op_receiver.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_op_records.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_op_records.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_paint.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_paint.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_sampling_options.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_tile_mode.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_vertices.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/dl_vertices.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/effects/dl_color_filter.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/effects/dl_color_filter.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/effects/dl_color_source.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/effects/dl_color_source.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/effects/dl_image_filter.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/effects/dl_image_filter.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/effects/dl_mask_filter.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/effects/dl_mask_filter.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/effects/dl_path_effect.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/effects/dl_path_effect.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/effects/dl_runtime_effect.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/effects/dl_runtime_effect.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/geometry/dl_rtree.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/geometry/dl_rtree.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/image/dl_image.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/image/dl_image.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/image/dl_image_skia.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/image/dl_image_skia.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/skia/dl_sk_canvas.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/skia/dl_sk_canvas.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/skia/dl_sk_conversions.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/skia/dl_sk_conversions.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/skia/dl_sk_dispatcher.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/skia/dl_sk_dispatcher.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/skia/dl_sk_utils.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/skia/dl_sk_utils.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/types.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/skia/dl_sk_paint_dispatcher.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/skia/dl_sk_paint_dispatcher.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/skia/dl_sk_types.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/utils/dl_bounds_accumulator.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/utils/dl_bounds_accumulator.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/utils/dl_comparable.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/utils/dl_matrix_clip_tracker.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/utils/dl_matrix_clip_tracker.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/utils/dl_receiver_utils.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/display_list/utils/dl_receiver_utils.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/flow/compositor_context.cc + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/flow/compositor_context.h + ../../../flutter/LICENSE
|
||||
ORIGIN: ../../../flutter/flow/diff_context.cc + ../../../flutter/LICENSE
|
||||
@@ -3240,70 +3242,72 @@ FILE: ../../../flutter/common/settings.cc
|
||||
FILE: ../../../flutter/common/settings.h
|
||||
FILE: ../../../flutter/common/task_runners.cc
|
||||
FILE: ../../../flutter/common/task_runners.h
|
||||
FILE: ../../../flutter/display_list/benchmarking/dl_benchmarks.cc
|
||||
FILE: ../../../flutter/display_list/benchmarking/dl_benchmarks.h
|
||||
FILE: ../../../flutter/display_list/benchmarking/dl_builder_benchmarks.cc
|
||||
FILE: ../../../flutter/display_list/benchmarking/dl_complexity.cc
|
||||
FILE: ../../../flutter/display_list/benchmarking/dl_complexity.h
|
||||
FILE: ../../../flutter/display_list/benchmarking/dl_complexity_gl.cc
|
||||
FILE: ../../../flutter/display_list/benchmarking/dl_complexity_gl.h
|
||||
FILE: ../../../flutter/display_list/benchmarking/dl_complexity_helper.h
|
||||
FILE: ../../../flutter/display_list/benchmarking/dl_complexity_metal.cc
|
||||
FILE: ../../../flutter/display_list/benchmarking/dl_complexity_metal.h
|
||||
FILE: ../../../flutter/display_list/display_list.cc
|
||||
FILE: ../../../flutter/display_list/display_list.h
|
||||
FILE: ../../../flutter/display_list/display_list_attributes.h
|
||||
FILE: ../../../flutter/display_list/display_list_benchmarks.cc
|
||||
FILE: ../../../flutter/display_list/display_list_benchmarks.h
|
||||
FILE: ../../../flutter/display_list/display_list_blend_mode.cc
|
||||
FILE: ../../../flutter/display_list/display_list_blend_mode.h
|
||||
FILE: ../../../flutter/display_list/display_list_builder.cc
|
||||
FILE: ../../../flutter/display_list/display_list_builder.h
|
||||
FILE: ../../../flutter/display_list/display_list_builder_benchmarks.cc
|
||||
FILE: ../../../flutter/display_list/display_list_color.h
|
||||
FILE: ../../../flutter/display_list/display_list_color_filter.cc
|
||||
FILE: ../../../flutter/display_list/display_list_color_filter.h
|
||||
FILE: ../../../flutter/display_list/display_list_color_source.cc
|
||||
FILE: ../../../flutter/display_list/display_list_color_source.h
|
||||
FILE: ../../../flutter/display_list/display_list_comparable.h
|
||||
FILE: ../../../flutter/display_list/display_list_complexity.cc
|
||||
FILE: ../../../flutter/display_list/display_list_complexity.h
|
||||
FILE: ../../../flutter/display_list/display_list_complexity_gl.cc
|
||||
FILE: ../../../flutter/display_list/display_list_complexity_gl.h
|
||||
FILE: ../../../flutter/display_list/display_list_complexity_helper.h
|
||||
FILE: ../../../flutter/display_list/display_list_complexity_metal.cc
|
||||
FILE: ../../../flutter/display_list/display_list_complexity_metal.h
|
||||
FILE: ../../../flutter/display_list/display_list_flags.cc
|
||||
FILE: ../../../flutter/display_list/display_list_flags.h
|
||||
FILE: ../../../flutter/display_list/display_list_image.cc
|
||||
FILE: ../../../flutter/display_list/display_list_image.h
|
||||
FILE: ../../../flutter/display_list/display_list_image_filter.cc
|
||||
FILE: ../../../flutter/display_list/display_list_image_filter.h
|
||||
FILE: ../../../flutter/display_list/display_list_image_skia.cc
|
||||
FILE: ../../../flutter/display_list/display_list_image_skia.h
|
||||
FILE: ../../../flutter/display_list/display_list_mask_filter.cc
|
||||
FILE: ../../../flutter/display_list/display_list_mask_filter.h
|
||||
FILE: ../../../flutter/display_list/display_list_matrix_clip_tracker.cc
|
||||
FILE: ../../../flutter/display_list/display_list_matrix_clip_tracker.h
|
||||
FILE: ../../../flutter/display_list/display_list_ops.cc
|
||||
FILE: ../../../flutter/display_list/display_list_ops.h
|
||||
FILE: ../../../flutter/display_list/display_list_paint.cc
|
||||
FILE: ../../../flutter/display_list/display_list_paint.h
|
||||
FILE: ../../../flutter/display_list/display_list_path_effect.cc
|
||||
FILE: ../../../flutter/display_list/display_list_path_effect.h
|
||||
FILE: ../../../flutter/display_list/display_list_rtree.cc
|
||||
FILE: ../../../flutter/display_list/display_list_rtree.h
|
||||
FILE: ../../../flutter/display_list/display_list_runtime_effect.cc
|
||||
FILE: ../../../flutter/display_list/display_list_runtime_effect.h
|
||||
FILE: ../../../flutter/display_list/display_list_sampling_options.h
|
||||
FILE: ../../../flutter/display_list/display_list_tile_mode.h
|
||||
FILE: ../../../flutter/display_list/display_list_utils.cc
|
||||
FILE: ../../../flutter/display_list/display_list_utils.h
|
||||
FILE: ../../../flutter/display_list/display_list_vertices.cc
|
||||
FILE: ../../../flutter/display_list/display_list_vertices.h
|
||||
FILE: ../../../flutter/display_list/dl_attributes.h
|
||||
FILE: ../../../flutter/display_list/dl_blend_mode.cc
|
||||
FILE: ../../../flutter/display_list/dl_blend_mode.h
|
||||
FILE: ../../../flutter/display_list/dl_builder.cc
|
||||
FILE: ../../../flutter/display_list/dl_builder.h
|
||||
FILE: ../../../flutter/display_list/dl_canvas.cc
|
||||
FILE: ../../../flutter/display_list/dl_canvas.h
|
||||
FILE: ../../../flutter/display_list/dl_color.h
|
||||
FILE: ../../../flutter/display_list/dl_op_flags.cc
|
||||
FILE: ../../../flutter/display_list/dl_op_flags.h
|
||||
FILE: ../../../flutter/display_list/dl_op_receiver.cc
|
||||
FILE: ../../../flutter/display_list/dl_op_receiver.h
|
||||
FILE: ../../../flutter/display_list/dl_op_records.cc
|
||||
FILE: ../../../flutter/display_list/dl_op_records.h
|
||||
FILE: ../../../flutter/display_list/dl_paint.cc
|
||||
FILE: ../../../flutter/display_list/dl_paint.h
|
||||
FILE: ../../../flutter/display_list/dl_sampling_options.h
|
||||
FILE: ../../../flutter/display_list/dl_tile_mode.h
|
||||
FILE: ../../../flutter/display_list/dl_vertices.cc
|
||||
FILE: ../../../flutter/display_list/dl_vertices.h
|
||||
FILE: ../../../flutter/display_list/effects/dl_color_filter.cc
|
||||
FILE: ../../../flutter/display_list/effects/dl_color_filter.h
|
||||
FILE: ../../../flutter/display_list/effects/dl_color_source.cc
|
||||
FILE: ../../../flutter/display_list/effects/dl_color_source.h
|
||||
FILE: ../../../flutter/display_list/effects/dl_image_filter.cc
|
||||
FILE: ../../../flutter/display_list/effects/dl_image_filter.h
|
||||
FILE: ../../../flutter/display_list/effects/dl_mask_filter.cc
|
||||
FILE: ../../../flutter/display_list/effects/dl_mask_filter.h
|
||||
FILE: ../../../flutter/display_list/effects/dl_path_effect.cc
|
||||
FILE: ../../../flutter/display_list/effects/dl_path_effect.h
|
||||
FILE: ../../../flutter/display_list/effects/dl_runtime_effect.cc
|
||||
FILE: ../../../flutter/display_list/effects/dl_runtime_effect.h
|
||||
FILE: ../../../flutter/display_list/geometry/dl_rtree.cc
|
||||
FILE: ../../../flutter/display_list/geometry/dl_rtree.h
|
||||
FILE: ../../../flutter/display_list/image/dl_image.cc
|
||||
FILE: ../../../flutter/display_list/image/dl_image.h
|
||||
FILE: ../../../flutter/display_list/image/dl_image_skia.cc
|
||||
FILE: ../../../flutter/display_list/image/dl_image_skia.h
|
||||
FILE: ../../../flutter/display_list/skia/dl_sk_canvas.cc
|
||||
FILE: ../../../flutter/display_list/skia/dl_sk_canvas.h
|
||||
FILE: ../../../flutter/display_list/skia/dl_sk_conversions.cc
|
||||
FILE: ../../../flutter/display_list/skia/dl_sk_conversions.h
|
||||
FILE: ../../../flutter/display_list/skia/dl_sk_dispatcher.cc
|
||||
FILE: ../../../flutter/display_list/skia/dl_sk_dispatcher.h
|
||||
FILE: ../../../flutter/display_list/skia/dl_sk_utils.cc
|
||||
FILE: ../../../flutter/display_list/skia/dl_sk_utils.h
|
||||
FILE: ../../../flutter/display_list/types.h
|
||||
FILE: ../../../flutter/display_list/skia/dl_sk_paint_dispatcher.cc
|
||||
FILE: ../../../flutter/display_list/skia/dl_sk_paint_dispatcher.h
|
||||
FILE: ../../../flutter/display_list/skia/dl_sk_types.h
|
||||
FILE: ../../../flutter/display_list/utils/dl_bounds_accumulator.cc
|
||||
FILE: ../../../flutter/display_list/utils/dl_bounds_accumulator.h
|
||||
FILE: ../../../flutter/display_list/utils/dl_comparable.h
|
||||
FILE: ../../../flutter/display_list/utils/dl_matrix_clip_tracker.cc
|
||||
FILE: ../../../flutter/display_list/utils/dl_matrix_clip_tracker.h
|
||||
FILE: ../../../flutter/display_list/utils/dl_receiver_utils.cc
|
||||
FILE: ../../../flutter/display_list/utils/dl_receiver_utils.h
|
||||
FILE: ../../../flutter/flow/compositor_context.cc
|
||||
FILE: ../../../flutter/flow/compositor_context.h
|
||||
FILE: ../../../flutter/flow/diff_context.cc
|
||||
|
||||
@@ -17,65 +17,67 @@ config("display_list_config") {
|
||||
|
||||
source_set("display_list") {
|
||||
sources = [
|
||||
"benchmarking/dl_complexity.cc",
|
||||
"benchmarking/dl_complexity.h",
|
||||
"benchmarking/dl_complexity_gl.cc",
|
||||
"benchmarking/dl_complexity_gl.h",
|
||||
"benchmarking/dl_complexity_metal.cc",
|
||||
"benchmarking/dl_complexity_metal.h",
|
||||
"display_list.cc",
|
||||
"display_list.h",
|
||||
"display_list_attributes.h",
|
||||
"display_list_blend_mode.cc",
|
||||
"display_list_blend_mode.h",
|
||||
"display_list_builder.cc",
|
||||
"display_list_builder.h",
|
||||
"display_list_color.h",
|
||||
"display_list_color_filter.cc",
|
||||
"display_list_color_filter.h",
|
||||
"display_list_color_source.cc",
|
||||
"display_list_color_source.h",
|
||||
"display_list_complexity.cc",
|
||||
"display_list_complexity.h",
|
||||
"display_list_complexity_gl.cc",
|
||||
"display_list_complexity_gl.h",
|
||||
"display_list_complexity_metal.cc",
|
||||
"display_list_complexity_metal.h",
|
||||
"display_list_flags.cc",
|
||||
"display_list_flags.h",
|
||||
"display_list_image.cc",
|
||||
"display_list_image.h",
|
||||
"display_list_image_filter.cc",
|
||||
"display_list_image_filter.h",
|
||||
"display_list_image_skia.cc",
|
||||
"display_list_image_skia.h",
|
||||
"display_list_mask_filter.cc",
|
||||
"display_list_mask_filter.h",
|
||||
"display_list_matrix_clip_tracker.cc",
|
||||
"display_list_matrix_clip_tracker.h",
|
||||
"display_list_ops.cc",
|
||||
"display_list_ops.h",
|
||||
"display_list_paint.cc",
|
||||
"display_list_paint.h",
|
||||
"display_list_path_effect.cc",
|
||||
"display_list_path_effect.h",
|
||||
"display_list_rtree.cc",
|
||||
"display_list_rtree.h",
|
||||
"display_list_runtime_effect.cc",
|
||||
"display_list_runtime_effect.h",
|
||||
"display_list_sampling_options.h",
|
||||
"display_list_tile_mode.h",
|
||||
"display_list_utils.cc",
|
||||
"display_list_utils.h",
|
||||
"display_list_vertices.cc",
|
||||
"display_list_vertices.h",
|
||||
"dl_attributes.h",
|
||||
"dl_blend_mode.cc",
|
||||
"dl_blend_mode.h",
|
||||
"dl_builder.cc",
|
||||
"dl_builder.h",
|
||||
"dl_canvas.cc",
|
||||
"dl_canvas.h",
|
||||
"dl_color.h",
|
||||
"dl_op_flags.cc",
|
||||
"dl_op_flags.h",
|
||||
"dl_op_receiver.cc",
|
||||
"dl_op_receiver.h",
|
||||
"dl_op_records.cc",
|
||||
"dl_op_records.h",
|
||||
"dl_paint.cc",
|
||||
"dl_paint.h",
|
||||
"dl_sampling_options.h",
|
||||
"dl_tile_mode.h",
|
||||
"dl_vertices.cc",
|
||||
"dl_vertices.h",
|
||||
"effects/dl_color_filter.cc",
|
||||
"effects/dl_color_filter.h",
|
||||
"effects/dl_color_source.cc",
|
||||
"effects/dl_color_source.h",
|
||||
"effects/dl_image_filter.cc",
|
||||
"effects/dl_image_filter.h",
|
||||
"effects/dl_mask_filter.cc",
|
||||
"effects/dl_mask_filter.h",
|
||||
"effects/dl_path_effect.cc",
|
||||
"effects/dl_path_effect.h",
|
||||
"effects/dl_runtime_effect.cc",
|
||||
"effects/dl_runtime_effect.h",
|
||||
"geometry/dl_rtree.cc",
|
||||
"geometry/dl_rtree.h",
|
||||
"image/dl_image.cc",
|
||||
"image/dl_image.h",
|
||||
"image/dl_image_skia.cc",
|
||||
"image/dl_image_skia.h",
|
||||
"skia/dl_sk_canvas.cc",
|
||||
"skia/dl_sk_canvas.h",
|
||||
"skia/dl_sk_conversions.cc",
|
||||
"skia/dl_sk_conversions.h",
|
||||
"skia/dl_sk_dispatcher.cc",
|
||||
"skia/dl_sk_dispatcher.h",
|
||||
"skia/dl_sk_utils.cc",
|
||||
"skia/dl_sk_utils.h",
|
||||
"types.h",
|
||||
"skia/dl_sk_paint_dispatcher.cc",
|
||||
"skia/dl_sk_paint_dispatcher.h",
|
||||
"skia/dl_sk_types.h",
|
||||
"utils/dl_bounds_accumulator.cc",
|
||||
"utils/dl_bounds_accumulator.h",
|
||||
"utils/dl_matrix_clip_tracker.cc",
|
||||
"utils/dl_matrix_clip_tracker.h",
|
||||
"utils/dl_receiver_utils.cc",
|
||||
"utils/dl_receiver_utils.h",
|
||||
]
|
||||
|
||||
public_configs = [ ":display_list_config" ]
|
||||
@@ -100,20 +102,20 @@ if (enable_unittests) {
|
||||
testonly = true
|
||||
|
||||
sources = [
|
||||
"display_list_color_filter_unittests.cc",
|
||||
"display_list_color_source_unittests.cc",
|
||||
"display_list_color_unittests.cc",
|
||||
"display_list_complexity_unittests.cc",
|
||||
"display_list_image_filter_unittests.cc",
|
||||
"display_list_mask_filter_unittests.cc",
|
||||
"display_list_matrix_clip_tracker_unittests.cc",
|
||||
"display_list_paint_unittests.cc",
|
||||
"display_list_path_effect_unittests.cc",
|
||||
"display_list_rtree_unittests.cc",
|
||||
"benchmarking/dl_complexity_unittests.cc",
|
||||
"display_list_unittests.cc",
|
||||
"display_list_vertices_unittests.cc",
|
||||
"dl_color_unittests.cc",
|
||||
"dl_paint_unittests.cc",
|
||||
"dl_vertices_unittests.cc",
|
||||
"effects/dl_color_filter_unittests.cc",
|
||||
"effects/dl_color_source_unittests.cc",
|
||||
"effects/dl_image_filter_unittests.cc",
|
||||
"effects/dl_mask_filter_unittests.cc",
|
||||
"effects/dl_path_effect_unittests.cc",
|
||||
"geometry/dl_rtree_unittests.cc",
|
||||
"skia/dl_sk_conversions_unittests.cc",
|
||||
"skia/dl_sk_utils_unittests.cc",
|
||||
"skia/dl_sk_paint_dispatcher_unittests.cc",
|
||||
"utils/dl_matrix_clip_tracker_unittests.cc",
|
||||
]
|
||||
|
||||
deps = [
|
||||
@@ -141,7 +143,7 @@ if (enable_unittests) {
|
||||
executable("display_list_rendertests") {
|
||||
testonly = true
|
||||
|
||||
sources = [ "dl_rendering_unittests.cc" ]
|
||||
sources = [ "testing/dl_rendering_unittests.cc" ]
|
||||
|
||||
deps = [
|
||||
":display_list",
|
||||
@@ -169,7 +171,7 @@ if (enable_unittests) {
|
||||
executable("display_list_builder_benchmarks") {
|
||||
testonly = true
|
||||
|
||||
sources = [ "display_list_builder_benchmarks.cc" ]
|
||||
sources = [ "benchmarking/dl_builder_benchmarks.cc" ]
|
||||
|
||||
deps = [
|
||||
":display_list",
|
||||
@@ -189,8 +191,8 @@ source_set("display_list_benchmarks_source") {
|
||||
testonly = true
|
||||
|
||||
sources = [
|
||||
"display_list_benchmarks.cc",
|
||||
"display_list_benchmarks.h",
|
||||
"benchmarking/dl_benchmarks.cc",
|
||||
"benchmarking/dl_benchmarks.h",
|
||||
]
|
||||
|
||||
deps = [
|
||||
|
||||
@@ -2,11 +2,12 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_benchmarks.h"
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/display_list_flags.h"
|
||||
#include "flutter/display_list/benchmarking/dl_benchmarks.h"
|
||||
#include "flutter/display_list/dl_builder.h"
|
||||
#include "flutter/display_list/dl_op_flags.h"
|
||||
#include "flutter/display_list/skia/dl_sk_canvas.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkBitmap.h"
|
||||
#include "third_party/skia/include/core/SkPoint.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "third_party/skia/include/core/SkTextBlob.h"
|
||||
@@ -2,12 +2,12 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKS_H_
|
||||
#define FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKS_H_
|
||||
#ifndef FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_BENCHMARKS_H_
|
||||
#define FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_BENCHMARKS_H_
|
||||
|
||||
#include "flutter/display_list/display_list_sampling_options.h"
|
||||
#include "flutter/display_list/display_list_vertices.h"
|
||||
#include "flutter/display_list/dl_canvas.h"
|
||||
#include "flutter/display_list/dl_sampling_options.h"
|
||||
#include "flutter/display_list/dl_vertices.h"
|
||||
#include "flutter/display_list/testing/dl_test_surface_provider.h"
|
||||
|
||||
#include "third_party/benchmark/include/benchmark/benchmark.h"
|
||||
@@ -587,4 +587,4 @@ void BM_SaveLayer(benchmark::State& state,
|
||||
} // namespace testing
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKS_H_
|
||||
#endif // FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_BENCHMARKS_H_
|
||||
@@ -2,10 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_complexity.h"
|
||||
#include "flutter/display_list/benchmarking/dl_complexity.h"
|
||||
#include "flutter/display_list/benchmarking/dl_complexity_gl.h"
|
||||
#include "flutter/display_list/benchmarking/dl_complexity_metal.h"
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/display_list_complexity_gl.h"
|
||||
#include "flutter/display_list/display_list_complexity_metal.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_H_
|
||||
#define FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_H_
|
||||
#ifndef FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_H_
|
||||
#define FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_H_
|
||||
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
|
||||
#include "third_party/skia/include/gpu/GrTypes.h"
|
||||
|
||||
namespace flutter {
|
||||
@@ -55,4 +55,4 @@ class DisplayListNaiveComplexityCalculator
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_H_
|
||||
#endif // FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_H_
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_complexity_gl.h"
|
||||
#include "flutter/display_list/benchmarking/dl_complexity_gl.h"
|
||||
|
||||
// The numbers and weightings used in this file stem from taking the
|
||||
// data from the DisplayListBenchmarks suite run on an Pixel 4 and
|
||||
@@ -2,10 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_GL_H_
|
||||
#define FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_GL_H_
|
||||
#ifndef FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_GL_H_
|
||||
#define FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_GL_H_
|
||||
|
||||
#include "flutter/display_list/display_list_complexity_helper.h"
|
||||
#include "flutter/display_list/benchmarking/dl_complexity_helper.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -98,4 +98,4 @@ class DisplayListGLComplexityCalculator
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_GL_H_
|
||||
#endif // FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_GL_H_
|
||||
@@ -2,13 +2,13 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_HELPER_H_
|
||||
#define FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_HELPER_H_
|
||||
#ifndef FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_COMPLEXITY_HELPER_H_
|
||||
#define FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_COMPLEXITY_HELPER_H_
|
||||
|
||||
#include "flutter/display_list/display_list_blend_mode.h"
|
||||
#include "flutter/display_list/display_list_complexity.h"
|
||||
#include "flutter/display_list/display_list_utils.h"
|
||||
#include "flutter/display_list/benchmarking/dl_complexity.h"
|
||||
#include "flutter/display_list/dl_blend_mode.h"
|
||||
#include "flutter/display_list/dl_op_receiver.h"
|
||||
#include "flutter/display_list/utils/dl_receiver_utils.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -269,4 +269,4 @@ class ComplexityCalculatorHelper
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_HELPER_H_
|
||||
#endif // FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_COMPLEXITY_HELPER_H_
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_complexity_metal.h"
|
||||
#include "flutter/display_list/benchmarking/dl_complexity_metal.h"
|
||||
|
||||
// The numbers and weightings used in this file stem from taking the
|
||||
// data from the DisplayListBenchmarks suite run on an iPhone 12 and
|
||||
@@ -2,10 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_METAL_H_
|
||||
#define FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_METAL_H_
|
||||
#ifndef FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_METAL_H_
|
||||
#define FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_METAL_H_
|
||||
|
||||
#include "flutter/display_list/display_list_complexity_helper.h"
|
||||
#include "flutter/display_list/benchmarking/dl_complexity_helper.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -98,4 +98,4 @@ class DisplayListMetalComplexityCalculator
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_FLOW_DISPLAY_LIST_COMPLEXITY_METAL_H_
|
||||
#endif // FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_METAL_H_
|
||||
@@ -2,14 +2,16 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/benchmarking/dl_complexity.h"
|
||||
#include "flutter/display_list/benchmarking/dl_complexity_gl.h"
|
||||
#include "flutter/display_list/benchmarking/dl_complexity_metal.h"
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/display_list_complexity.h"
|
||||
#include "flutter/display_list/display_list_complexity_gl.h"
|
||||
#include "flutter/display_list/display_list_complexity_metal.h"
|
||||
#include "flutter/display_list/display_list_sampling_options.h"
|
||||
#include "flutter/display_list/dl_builder.h"
|
||||
#include "flutter/display_list/dl_sampling_options.h"
|
||||
#include "flutter/display_list/testing/dl_test_snippets.h"
|
||||
#include "flutter/testing/testing.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkBitmap.h"
|
||||
#include "third_party/skia/include/core/SkColor.h"
|
||||
|
||||
namespace flutter {
|
||||
@@ -5,8 +5,7 @@
|
||||
#include <type_traits>
|
||||
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/display_list_ops.h"
|
||||
#include "flutter/display_list/dl_op_records.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -8,9 +8,8 @@
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
|
||||
#include "flutter/display_list/display_list_rtree.h"
|
||||
#include "flutter/display_list/display_list_sampling_options.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "flutter/display_list/dl_sampling_options.h"
|
||||
#include "flutter/display_list/geometry/dl_rtree.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
|
||||
// The Flutter DisplayList mechanism encapsulates a persistent sequence of
|
||||
|
||||
@@ -9,13 +9,13 @@
|
||||
#include <vector>
|
||||
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/display_list_blend_mode.h"
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/display_list_paint.h"
|
||||
#include "flutter/display_list/display_list_rtree.h"
|
||||
#include "flutter/display_list/display_list_utils.h"
|
||||
#include "flutter/display_list/dl_blend_mode.h"
|
||||
#include "flutter/display_list/dl_builder.h"
|
||||
#include "flutter/display_list/dl_paint.h"
|
||||
#include "flutter/display_list/geometry/dl_rtree.h"
|
||||
#include "flutter/display_list/skia/dl_sk_dispatcher.h"
|
||||
#include "flutter/display_list/testing/dl_test_snippets.h"
|
||||
#include "flutter/display_list/utils/dl_receiver_utils.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
#include "flutter/fml/math.h"
|
||||
#include "flutter/testing/display_list_testing.h"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_ATTRIBUTES_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_ATTRIBUTES_H_
|
||||
|
||||
#include "flutter/display_list/types.h"
|
||||
#include <memory>
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_blend_mode.h"
|
||||
#include "flutter/display_list/dl_blend_mode.h"
|
||||
|
||||
namespace flutter {} // namespace flutter
|
||||
@@ -2,10 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_BLEND_MODE_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_BLEND_MODE_H_
|
||||
|
||||
#include "include/core/SkBlendMode.h"
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DL_BLEND_MODE_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DL_BLEND_MODE_H_
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -15,13 +13,13 @@ namespace flutter {
|
||||
/// destination) and return a new color. Many of these operate the same on all 4
|
||||
/// components: red, green, blue, alpha. For these, we just document what
|
||||
/// happens to one component, rather than naming each one separately. Different
|
||||
/// SkColorTypes have different representations for color components:
|
||||
/// color types might have different representations for color components:
|
||||
/// 8-bit: 0..255
|
||||
/// 6-bit: 0..63
|
||||
/// 5-bit: 0..31
|
||||
/// 4-bit: 0..15
|
||||
/// floats: 0...1
|
||||
/// The documentation is expressed as if the component values are always 0..1
|
||||
/// The comments are expressed as if the component values are always 0..1
|
||||
/// (floats). For brevity, the documentation uses the following abbreviations s
|
||||
/// : source d : destination sa : source alpha da : destination alpha Results
|
||||
/// are abbreviated r : if all 4 components are computed in the same manner ra
|
||||
@@ -68,4 +66,4 @@ enum class DlBlendMode {
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_BLEND_MODE_H_
|
||||
#endif // FLUTTER_DISPLAY_LIST_DL_BLEND_MODE_H_
|
||||
@@ -2,12 +2,13 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/dl_builder.h"
|
||||
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/display_list_blend_mode.h"
|
||||
#include "flutter/display_list/display_list_color_source.h"
|
||||
#include "flutter/display_list/display_list_ops.h"
|
||||
#include "flutter/display_list/dl_blend_mode.h"
|
||||
#include "flutter/display_list/dl_op_records.h"
|
||||
#include "flutter/display_list/effects/dl_color_source.h"
|
||||
#include "flutter/display_list/utils/dl_bounds_accumulator.h"
|
||||
#include "fml/logging.h"
|
||||
|
||||
namespace flutter {
|
||||
@@ -1250,7 +1251,7 @@ bool DisplayListBuilder::paint_nops_on_transparency() {
|
||||
}
|
||||
|
||||
// Unusual blendmodes require us to process a saved layer
|
||||
// even with operations outisde the clip.
|
||||
// even with operations outside the clip.
|
||||
// For example, DstIn is used by masking layers.
|
||||
// https://code.google.com/p/skia/issues/detail?id=1291
|
||||
// https://crbug.com/401593
|
||||
@@ -6,18 +6,17 @@
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_BUILDER_H_
|
||||
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/display_list_blend_mode.h"
|
||||
#include "flutter/display_list/display_list_comparable.h"
|
||||
#include "flutter/display_list/display_list_flags.h"
|
||||
#include "flutter/display_list/display_list_image.h"
|
||||
#include "flutter/display_list/display_list_matrix_clip_tracker.h"
|
||||
#include "flutter/display_list/display_list_paint.h"
|
||||
#include "flutter/display_list/display_list_path_effect.h"
|
||||
#include "flutter/display_list/display_list_sampling_options.h"
|
||||
#include "flutter/display_list/display_list_utils.h"
|
||||
#include "flutter/display_list/dl_blend_mode.h"
|
||||
#include "flutter/display_list/dl_canvas.h"
|
||||
#include "flutter/display_list/dl_op_flags.h"
|
||||
#include "flutter/display_list/dl_op_receiver.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "flutter/display_list/dl_paint.h"
|
||||
#include "flutter/display_list/dl_sampling_options.h"
|
||||
#include "flutter/display_list/effects/dl_path_effect.h"
|
||||
#include "flutter/display_list/image/dl_image.h"
|
||||
#include "flutter/display_list/utils/dl_bounds_accumulator.h"
|
||||
#include "flutter/display_list/utils/dl_comparable.h"
|
||||
#include "flutter/display_list/utils/dl_matrix_clip_tracker.h"
|
||||
#include "flutter/fml/macros.h"
|
||||
|
||||
namespace flutter {
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "flutter/display_list/dl_canvas.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkPoint3.h"
|
||||
#include "third_party/skia/include/utils/SkShadowUtils.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -5,10 +5,18 @@
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DL_CANVAS_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DL_CANVAS_H_
|
||||
|
||||
#include "flutter/display_list/display_list_blend_mode.h"
|
||||
#include "flutter/display_list/display_list_image.h"
|
||||
#include "flutter/display_list/display_list_paint.h"
|
||||
#include "flutter/display_list/display_list_vertices.h"
|
||||
#include "flutter/display_list/dl_blend_mode.h"
|
||||
#include "flutter/display_list/dl_paint.h"
|
||||
#include "flutter/display_list/dl_vertices.h"
|
||||
#include "flutter/display_list/image/dl_image.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkM44.h"
|
||||
#include "third_party/skia/include/core/SkMatrix.h"
|
||||
#include "third_party/skia/include/core/SkPath.h"
|
||||
#include "third_party/skia/include/core/SkRRect.h"
|
||||
#include "third_party/skia/include/core/SkRSXform.h"
|
||||
#include "third_party/skia/include/core/SkRect.h"
|
||||
#include "third_party/skia/include/core/SkTextBlob.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COLOR_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COLOR_H_
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DL_COLOR_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DL_COLOR_H_
|
||||
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "third_party/skia/include/core/SkScalar.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -90,4 +90,4 @@ struct DlColor {
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COLOR_H_
|
||||
#endif // FLUTTER_DISPLAY_LIST_DL_COLOR_H_
|
||||
@@ -2,11 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/display_list_color_source.h"
|
||||
#include "flutter/display_list/testing/dl_test_equality.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "flutter/display_list/dl_color.h"
|
||||
#include "flutter/testing/testing.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkColor.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
@@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_flags.h"
|
||||
#include "flutter/display_list/display_list_path_effect.h"
|
||||
#include "flutter/display_list/dl_op_flags.h"
|
||||
#include "flutter/display_list/effects/dl_path_effect.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -2,11 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_FLAGS_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_FLAGS_H_
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DL_OP_FLAGS_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DL_OP_FLAGS_H_
|
||||
|
||||
#include "flutter/display_list/display_list_paint.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "flutter/display_list/dl_paint.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
|
||||
namespace flutter {
|
||||
@@ -428,4 +427,4 @@ class DisplayListOpFlags : DisplayListFlags {
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_FLAGS_H_
|
||||
#endif // FLUTTER_DISPLAY_LIST_DL_OP_FLAGS_H_
|
||||
@@ -6,17 +6,17 @@
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_DISPATCHER_H_
|
||||
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/display_list_blend_mode.h"
|
||||
#include "flutter/display_list/display_list_color_filter.h"
|
||||
#include "flutter/display_list/display_list_color_source.h"
|
||||
#include "flutter/display_list/display_list_image.h"
|
||||
#include "flutter/display_list/display_list_image_filter.h"
|
||||
#include "flutter/display_list/display_list_mask_filter.h"
|
||||
#include "flutter/display_list/display_list_paint.h"
|
||||
#include "flutter/display_list/display_list_path_effect.h"
|
||||
#include "flutter/display_list/display_list_sampling_options.h"
|
||||
#include "flutter/display_list/display_list_vertices.h"
|
||||
#include "flutter/display_list/dl_blend_mode.h"
|
||||
#include "flutter/display_list/dl_canvas.h"
|
||||
#include "flutter/display_list/dl_paint.h"
|
||||
#include "flutter/display_list/dl_sampling_options.h"
|
||||
#include "flutter/display_list/dl_vertices.h"
|
||||
#include "flutter/display_list/effects/dl_color_filter.h"
|
||||
#include "flutter/display_list/effects/dl_color_source.h"
|
||||
#include "flutter/display_list/effects/dl_image_filter.h"
|
||||
#include "flutter/display_list/effects/dl_mask_filter.h"
|
||||
#include "flutter/display_list/effects/dl_path_effect.h"
|
||||
#include "flutter/display_list/image/dl_image.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -38,7 +38,7 @@ class DlOpReceiver {
|
||||
// MaxDrawPointsCount * sizeof(SkPoint) must be less than 1 << 32
|
||||
static constexpr int kMaxDrawPointsCount = ((1 << 29) - 1);
|
||||
|
||||
// The following methods are nearly 1:1 with the methods on SkPaint and
|
||||
// The following methods are nearly 1:1 with the methods on DlPaint and
|
||||
// carry the same meanings. Each method sets a persistent value for the
|
||||
// attribute for the rest of the display list or until it is reset by
|
||||
// another method that changes the same attribute. The current set of
|
||||
@@ -53,8 +53,8 @@ class DlOpReceiver {
|
||||
virtual void setStrokeJoin(DlStrokeJoin join) = 0;
|
||||
virtual void setColorSource(const DlColorSource* source) = 0;
|
||||
virtual void setColorFilter(const DlColorFilter* filter) = 0;
|
||||
// setInvertColors does not exist in SkPaint, but is a quick way to set
|
||||
// a ColorFilter that inverts the rgb values of all rendered colors.
|
||||
// setInvertColors is a quick way to set a ColorFilter that inverts the
|
||||
// rgb values of all rendered colors.
|
||||
// It is not reset by |setColorFilter|, but instead composed with that
|
||||
// filter so that the color inversion happens after the ColorFilter.
|
||||
virtual void setInvertColors(bool invert) = 0;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_ops.h"
|
||||
#include "flutter/display_list/dl_op_records.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -2,17 +2,18 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_OPS_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_OPS_H_
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DL_OP_RECORDS_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DL_OP_RECORDS_H_
|
||||
|
||||
#include "display_list_color_source.h"
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/display_list_blend_mode.h"
|
||||
#include "flutter/display_list/display_list_sampling_options.h"
|
||||
#include "flutter/display_list/dl_blend_mode.h"
|
||||
#include "flutter/display_list/dl_op_receiver.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "flutter/display_list/dl_sampling_options.h"
|
||||
#include "flutter/display_list/effects/dl_color_source.h"
|
||||
#include "flutter/fml/macros.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkRSXform.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
// Structure holding the information necessary to dispatch and
|
||||
@@ -1112,4 +1113,4 @@ DEFINE_DRAW_SHADOW_OP(ShadowTransparentOccluder, true)
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_OPS_H_
|
||||
#endif // FLUTTER_DISPLAY_LIST_DL_OP_RECORDS_H_
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_paint.h"
|
||||
#include "flutter/display_list/dl_paint.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -2,17 +2,17 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_PAINT_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_PAINT_H_
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DL_PAINT_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DL_PAINT_H_
|
||||
|
||||
#include <memory>
|
||||
#include "flutter/display_list/display_list_blend_mode.h"
|
||||
#include "flutter/display_list/display_list_color.h"
|
||||
#include "flutter/display_list/display_list_color_filter.h"
|
||||
#include "flutter/display_list/display_list_color_source.h"
|
||||
#include "flutter/display_list/display_list_image_filter.h"
|
||||
#include "flutter/display_list/display_list_mask_filter.h"
|
||||
#include "flutter/display_list/display_list_path_effect.h"
|
||||
#include "flutter/display_list/dl_blend_mode.h"
|
||||
#include "flutter/display_list/dl_color.h"
|
||||
#include "flutter/display_list/effects/dl_color_filter.h"
|
||||
#include "flutter/display_list/effects/dl_color_source.h"
|
||||
#include "flutter/display_list/effects/dl_image_filter.h"
|
||||
#include "flutter/display_list/effects/dl_mask_filter.h"
|
||||
#include "flutter/display_list/effects/dl_path_effect.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -237,10 +237,8 @@ class DlPaint {
|
||||
std::shared_ptr<const DlImageFilter> imageFilter_;
|
||||
std::shared_ptr<const DlMaskFilter> maskFilter_;
|
||||
std::shared_ptr<const DlPathEffect> pathEffect_;
|
||||
// missing (as compared to SkPaint):
|
||||
// DlBlender - not planning on using that object in a pure DisplayList world
|
||||
};
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_PAINT_H_
|
||||
#endif // FLUTTER_DISPLAY_LIST_DL_PAINT_H_
|
||||
@@ -2,9 +2,9 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_paint.h"
|
||||
#include "flutter/display_list/dl_paint.h"
|
||||
|
||||
#include "flutter/display_list/display_list_comparable.h"
|
||||
#include "flutter/display_list/utils/dl_comparable.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
namespace flutter {
|
||||
@@ -66,7 +66,7 @@ TEST(DisplayListPaint, ConstructorDefaults) {
|
||||
DlBlurImageFilter image_filter(1.3, 4.7, DlTileMode::kClamp);
|
||||
EXPECT_NE(paint, DlPaint().setImageFilter(image_filter.shared()));
|
||||
|
||||
DlBlurMaskFilter mask_filter(SkBlurStyle::kInner_SkBlurStyle, 3.14);
|
||||
DlBlurMaskFilter mask_filter(DlBlurStyle::kInner, 3.14);
|
||||
EXPECT_NE(paint, DlPaint().setMaskFilter(mask_filter.shared()));
|
||||
}
|
||||
|
||||
@@ -114,8 +114,7 @@ TEST(DisplayListPaint, ChainingConstructor) {
|
||||
.shared())
|
||||
.setImageFilter(
|
||||
DlBlurImageFilter(1.3, 4.7, DlTileMode::kClamp).shared())
|
||||
.setMaskFilter(
|
||||
DlBlurMaskFilter(SkBlurStyle::kInner_SkBlurStyle, 3.14).shared());
|
||||
.setMaskFilter(DlBlurMaskFilter(DlBlurStyle::kInner, 3.14).shared());
|
||||
EXPECT_TRUE(paint.isAntiAlias());
|
||||
EXPECT_TRUE(paint.isDither());
|
||||
EXPECT_TRUE(paint.isInvertColors());
|
||||
@@ -133,7 +132,7 @@ TEST(DisplayListPaint, ChainingConstructor) {
|
||||
EXPECT_EQ(*paint.getImageFilter(),
|
||||
DlBlurImageFilter(1.3, 4.7, DlTileMode::kClamp));
|
||||
EXPECT_EQ(*paint.getMaskFilter(),
|
||||
DlBlurMaskFilter(SkBlurStyle::kInner_SkBlurStyle, 3.14));
|
||||
DlBlurMaskFilter(DlBlurStyle::kInner, 3.14));
|
||||
|
||||
EXPECT_NE(paint, DlPaint());
|
||||
}
|
||||
@@ -5,8 +5,6 @@
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_SAMPLING_OPTIONS_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_SAMPLING_OPTIONS_H_
|
||||
|
||||
#include "include/core/SkColorSpace.h"
|
||||
#include "include/core/SkSamplingOptions.h"
|
||||
namespace flutter {
|
||||
|
||||
enum class DlFilterMode {
|
||||
@@ -5,8 +5,6 @@
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_TILE_MODE_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_TILE_MODE_H_
|
||||
|
||||
#include "third_party/skia/include/core/SkTileMode.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
// An enum to define how to repeat, fold, or omit colors outside of the
|
||||
@@ -2,9 +2,9 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_vertices.h"
|
||||
#include "flutter/display_list/dl_vertices.h"
|
||||
|
||||
#include "flutter/display_list/display_list_utils.h"
|
||||
#include "flutter/display_list/utils/dl_bounds_accumulator.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
|
||||
namespace flutter {
|
||||
@@ -5,8 +5,11 @@
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_VERTICES_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_VERTICES_H_
|
||||
|
||||
#include "flutter/display_list/display_list_color.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include <memory>
|
||||
|
||||
#include "flutter/display_list/dl_color.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkRect.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -2,11 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/display_list_comparable.h"
|
||||
#include "flutter/display_list/display_list_vertices.h"
|
||||
#include "flutter/display_list/dl_builder.h"
|
||||
#include "flutter/display_list/dl_vertices.h"
|
||||
#include "flutter/display_list/testing/dl_test_equality.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "flutter/display_list/utils/dl_comparable.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
namespace flutter {
|
||||
@@ -2,9 +2,9 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_color_filter.h"
|
||||
#include "flutter/display_list/effects/dl_color_filter.h"
|
||||
|
||||
#include "flutter/display_list/display_list_color.h"
|
||||
#include "flutter/display_list/dl_color.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -2,13 +2,12 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COLOR_FILTER_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COLOR_FILTER_H_
|
||||
#ifndef FLUTTER_DISPLAY_LIST_EFFECTS_DL_COLOR_FILTER_H_
|
||||
#define FLUTTER_DISPLAY_LIST_EFFECTS_DL_COLOR_FILTER_H_
|
||||
|
||||
#include "flutter/display_list/display_list_attributes.h"
|
||||
#include "flutter/display_list/display_list_blend_mode.h"
|
||||
#include "flutter/display_list/display_list_color.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "flutter/display_list/dl_attributes.h"
|
||||
#include "flutter/display_list/dl_blend_mode.h"
|
||||
#include "flutter/display_list/dl_color.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
|
||||
namespace flutter {
|
||||
@@ -216,4 +215,4 @@ class DlLinearToSrgbGammaColorFilter final : public DlColorFilter {
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COLOR_FILTER_H_
|
||||
#endif // FLUTTER_DISPLAY_LIST_EFFECTS_DL_COLOR_FILTER_H_
|
||||
@@ -2,10 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/display_list_color_filter.h"
|
||||
#include "flutter/display_list/effects/dl_color_filter.h"
|
||||
#include "flutter/display_list/testing/dl_test_equality.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
@@ -2,10 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_color_source.h"
|
||||
#include "flutter/display_list/effects/dl_color_source.h"
|
||||
|
||||
#include "flutter/display_list/display_list_runtime_effect.h"
|
||||
#include "flutter/display_list/display_list_sampling_options.h"
|
||||
#include "flutter/display_list/dl_sampling_options.h"
|
||||
#include "flutter/display_list/effects/dl_runtime_effect.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
|
||||
namespace flutter {
|
||||
@@ -2,25 +2,23 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COLOR_SOURCE_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COLOR_SOURCE_H_
|
||||
#ifndef FLUTTER_DISPLAY_LIST_EFFECTS_DL_COLOR_SOURCE_H_
|
||||
#define FLUTTER_DISPLAY_LIST_EFFECTS_DL_COLOR_SOURCE_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/display_list_attributes.h"
|
||||
#include "flutter/display_list/display_list_color.h"
|
||||
#include "flutter/display_list/display_list_image.h"
|
||||
#include "flutter/display_list/display_list_runtime_effect.h"
|
||||
#include "flutter/display_list/display_list_sampling_options.h"
|
||||
#include "flutter/display_list/display_list_tile_mode.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "flutter/display_list/dl_attributes.h"
|
||||
#include "flutter/display_list/dl_color.h"
|
||||
#include "flutter/display_list/dl_sampling_options.h"
|
||||
#include "flutter/display_list/dl_tile_mode.h"
|
||||
#include "flutter/display_list/effects/dl_runtime_effect.h"
|
||||
#include "flutter/display_list/image/dl_image.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkShader.h"
|
||||
#include "third_party/skia/include/effects/SkGradientShader.h"
|
||||
#include "third_party/skia/include/effects/SkRuntimeEffect.h"
|
||||
|
||||
#ifdef IMPELLER_ENABLE_3D
|
||||
#include "impeller/geometry/matrix.h" // nogncheck
|
||||
@@ -151,15 +149,6 @@ class DlColorSource : public DlAttribute<DlColorSource, DlColorSourceType> {
|
||||
virtual const DlSceneColorSource* asScene() const { return nullptr; }
|
||||
#endif // IMPELLER_ENABLE_3D
|
||||
|
||||
// If this filter contains images, specifies the owning context for those
|
||||
// images.
|
||||
// Images with a DlImage::OwningContext::kRaster must only call skia_object
|
||||
// on the raster task runner.
|
||||
// A nullopt return means there is no image.
|
||||
virtual std::optional<DlImage::OwningContext> owning_context() const {
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
protected:
|
||||
DlColorSource() = default;
|
||||
|
||||
@@ -243,10 +232,6 @@ class DlImageColorSource final : public SkRefCnt,
|
||||
|
||||
bool is_opaque() const override { return image_->isOpaque(); }
|
||||
|
||||
std::optional<DlImage::OwningContext> owning_context() const override {
|
||||
return image_->owning_context();
|
||||
}
|
||||
|
||||
sk_sp<const DlImage> image() const { return image_; }
|
||||
DlTileMode horizontal_tile_mode() const { return horizontal_tile_mode_; }
|
||||
DlTileMode vertical_tile_mode() const { return vertical_tile_mode_; }
|
||||
@@ -716,4 +701,4 @@ class DlSceneColorSource final : public DlColorSource {
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COLOR_SOURCE_H_
|
||||
#endif // FLUTTER_DISPLAY_LIST_EFFECTS_DL_COLOR_SOURCE_H_
|
||||
@@ -5,14 +5,13 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/display_list_color_source.h"
|
||||
#include "flutter/display_list/display_list_image.h"
|
||||
#include "flutter/display_list/display_list_runtime_effect.h"
|
||||
#include "flutter/display_list/display_list_sampling_options.h"
|
||||
#include "flutter/display_list/dl_sampling_options.h"
|
||||
#include "flutter/display_list/effects/dl_color_source.h"
|
||||
#include "flutter/display_list/effects/dl_runtime_effect.h"
|
||||
#include "flutter/display_list/image/dl_image.h"
|
||||
#include "flutter/display_list/testing/dl_test_equality.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "third_party/skia/include/core/SkString.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkCanvas.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_image_filter.h"
|
||||
#include "flutter/display_list/effects/dl_image_filter.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -2,17 +2,17 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_IMAGE_FILTER_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_IMAGE_FILTER_H_
|
||||
#ifndef FLUTTER_DISPLAY_LIST_EFFECTS_DL_IMAGE_FILTER_H_
|
||||
#define FLUTTER_DISPLAY_LIST_EFFECTS_DL_IMAGE_FILTER_H_
|
||||
|
||||
#include "flutter/display_list/display_list_attributes.h"
|
||||
#include "flutter/display_list/display_list_color_filter.h"
|
||||
#include "flutter/display_list/display_list_comparable.h"
|
||||
#include "flutter/display_list/display_list_sampling_options.h"
|
||||
#include "flutter/display_list/display_list_tile_mode.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "flutter/display_list/dl_attributes.h"
|
||||
#include "flutter/display_list/dl_sampling_options.h"
|
||||
#include "flutter/display_list/dl_tile_mode.h"
|
||||
#include "flutter/display_list/effects/dl_color_filter.h"
|
||||
#include "flutter/display_list/utils/dl_comparable.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
#include "third_party/skia/include/effects/SkImageFilters.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkMatrix.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -734,4 +734,4 @@ class DlLocalMatrixImageFilter final : public DlImageFilter {
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_IMAGE_FILTER_H_
|
||||
#endif // FLUTTER_DISPLAY_LIST_EFFECTS_DL_IMAGE_FILTER_H_
|
||||
@@ -2,18 +2,18 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_blend_mode.h"
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/display_list_color.h"
|
||||
#include "flutter/display_list/display_list_color_filter.h"
|
||||
#include "flutter/display_list/display_list_comparable.h"
|
||||
#include "flutter/display_list/display_list_image_filter.h"
|
||||
#include "flutter/display_list/display_list_sampling_options.h"
|
||||
#include "flutter/display_list/display_list_tile_mode.h"
|
||||
#include "flutter/display_list/dl_blend_mode.h"
|
||||
#include "flutter/display_list/dl_color.h"
|
||||
#include "flutter/display_list/dl_sampling_options.h"
|
||||
#include "flutter/display_list/dl_tile_mode.h"
|
||||
#include "flutter/display_list/effects/dl_color_filter.h"
|
||||
#include "flutter/display_list/effects/dl_image_filter.h"
|
||||
#include "flutter/display_list/testing/dl_test_equality.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "flutter/display_list/utils/dl_comparable.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include "third_party/skia/include/effects/SkImageFilters.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_mask_filter.h"
|
||||
#include "flutter/display_list/effects/dl_mask_filter.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -2,13 +2,14 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_MASK_FILTER_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_MASK_FILTER_H_
|
||||
#ifndef FLUTTER_DISPLAY_LIST_EFFECTS_DL_MASK_FILTER_H_
|
||||
#define FLUTTER_DISPLAY_LIST_EFFECTS_DL_MASK_FILTER_H_
|
||||
|
||||
#include "flutter/display_list/display_list_attributes.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "flutter/display_list/dl_attributes.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkScalar.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
class DlBlurMaskFilter;
|
||||
@@ -20,6 +21,13 @@ class DlBlurMaskFilter;
|
||||
// An enumerated type for the supported MaskFilter operations.
|
||||
enum class DlMaskFilterType { kBlur };
|
||||
|
||||
enum class DlBlurStyle {
|
||||
kNormal, //!< fuzzy inside and outside
|
||||
kSolid, //!< solid inside, fuzzy outside
|
||||
kOuter, //!< nothing inside, fuzzy outside
|
||||
kInner, //!< fuzzy inside, nothing outside
|
||||
};
|
||||
|
||||
class DlMaskFilter : public DlAttribute<DlMaskFilter, DlMaskFilterType> {
|
||||
public:
|
||||
// Return a DlBlurMaskFilter pointer to this object iff it is a Blur
|
||||
@@ -34,7 +42,7 @@ class DlMaskFilter : public DlAttribute<DlMaskFilter, DlMaskFilterType> {
|
||||
// filter is then used to combine those colors.
|
||||
class DlBlurMaskFilter final : public DlMaskFilter {
|
||||
public:
|
||||
DlBlurMaskFilter(SkBlurStyle style, SkScalar sigma, bool respect_ctm = true)
|
||||
DlBlurMaskFilter(DlBlurStyle style, SkScalar sigma, bool respect_ctm = true)
|
||||
: style_(style), sigma_(sigma), respect_ctm_(respect_ctm) {}
|
||||
DlBlurMaskFilter(const DlBlurMaskFilter& filter)
|
||||
: DlBlurMaskFilter(filter.style_, filter.sigma_, filter.respect_ctm_) {}
|
||||
@@ -42,7 +50,7 @@ class DlBlurMaskFilter final : public DlMaskFilter {
|
||||
: DlBlurMaskFilter(filter->style_, filter->sigma_, filter->respect_ctm_) {
|
||||
}
|
||||
|
||||
static std::shared_ptr<DlMaskFilter> Make(SkBlurStyle style,
|
||||
static std::shared_ptr<DlMaskFilter> Make(DlBlurStyle style,
|
||||
SkScalar sigma,
|
||||
bool respect_ctm = true) {
|
||||
if (SkScalarIsFinite(sigma) && sigma > 0) {
|
||||
@@ -60,7 +68,7 @@ class DlBlurMaskFilter final : public DlMaskFilter {
|
||||
|
||||
const DlBlurMaskFilter* asBlur() const override { return this; }
|
||||
|
||||
SkBlurStyle style() const { return style_; }
|
||||
DlBlurStyle style() const { return style_; }
|
||||
SkScalar sigma() const { return sigma_; }
|
||||
bool respectCTM() const { return respect_ctm_; }
|
||||
|
||||
@@ -73,7 +81,7 @@ class DlBlurMaskFilter final : public DlMaskFilter {
|
||||
}
|
||||
|
||||
private:
|
||||
SkBlurStyle style_;
|
||||
DlBlurStyle style_;
|
||||
SkScalar sigma_;
|
||||
// Added for backward compatibility with Flutter text shadow rendering which
|
||||
// uses Skia blur filters with this flag set to false.
|
||||
@@ -82,4 +90,4 @@ class DlBlurMaskFilter final : public DlMaskFilter {
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_MASK_FILTER_H_
|
||||
#endif // FLUTTER_DISPLAY_LIST_EFFECTS_DL_MASK_FILTER_H_
|
||||
@@ -2,48 +2,46 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/display_list_comparable.h"
|
||||
#include "flutter/display_list/display_list_mask_filter.h"
|
||||
#include "flutter/display_list/effects/dl_mask_filter.h"
|
||||
#include "flutter/display_list/testing/dl_test_equality.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "flutter/display_list/utils/dl_comparable.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
|
||||
TEST(DisplayListMaskFilter, BlurConstructor) {
|
||||
DlBlurMaskFilter filter(SkBlurStyle::kNormal_SkBlurStyle, 5.0);
|
||||
DlBlurMaskFilter filter(DlBlurStyle::kNormal, 5.0);
|
||||
}
|
||||
|
||||
TEST(DisplayListMaskFilter, BlurShared) {
|
||||
DlBlurMaskFilter filter(SkBlurStyle::kNormal_SkBlurStyle, 5.0);
|
||||
DlBlurMaskFilter filter(DlBlurStyle::kNormal, 5.0);
|
||||
ASSERT_NE(filter.shared().get(), &filter);
|
||||
ASSERT_EQ(*filter.shared(), filter);
|
||||
}
|
||||
|
||||
TEST(DisplayListMaskFilter, BlurAsBlur) {
|
||||
DlBlurMaskFilter filter(SkBlurStyle::kNormal_SkBlurStyle, 5.0);
|
||||
DlBlurMaskFilter filter(DlBlurStyle::kNormal, 5.0);
|
||||
ASSERT_NE(filter.asBlur(), nullptr);
|
||||
ASSERT_EQ(filter.asBlur(), &filter);
|
||||
}
|
||||
|
||||
TEST(DisplayListMaskFilter, BlurContents) {
|
||||
DlBlurMaskFilter filter(SkBlurStyle::kNormal_SkBlurStyle, 5.0);
|
||||
ASSERT_EQ(filter.style(), SkBlurStyle::kNormal_SkBlurStyle);
|
||||
DlBlurMaskFilter filter(DlBlurStyle::kNormal, 5.0);
|
||||
ASSERT_EQ(filter.style(), DlBlurStyle::kNormal);
|
||||
ASSERT_EQ(filter.sigma(), 5.0);
|
||||
}
|
||||
|
||||
TEST(DisplayListMaskFilter, BlurEquals) {
|
||||
DlBlurMaskFilter filter1(SkBlurStyle::kNormal_SkBlurStyle, 5.0);
|
||||
DlBlurMaskFilter filter2(SkBlurStyle::kNormal_SkBlurStyle, 5.0);
|
||||
DlBlurMaskFilter filter1(DlBlurStyle::kNormal, 5.0);
|
||||
DlBlurMaskFilter filter2(DlBlurStyle::kNormal, 5.0);
|
||||
TestEquals(filter1, filter2);
|
||||
}
|
||||
|
||||
TEST(DisplayListMaskFilter, BlurNotEquals) {
|
||||
DlBlurMaskFilter filter1(SkBlurStyle::kNormal_SkBlurStyle, 5.0);
|
||||
DlBlurMaskFilter filter2(SkBlurStyle::kInner_SkBlurStyle, 5.0);
|
||||
DlBlurMaskFilter filter3(SkBlurStyle::kNormal_SkBlurStyle, 6.0);
|
||||
DlBlurMaskFilter filter1(DlBlurStyle::kNormal, 5.0);
|
||||
DlBlurMaskFilter filter2(DlBlurStyle::kInner, 5.0);
|
||||
DlBlurMaskFilter filter3(DlBlurStyle::kNormal, 6.0);
|
||||
TestNotEquals(filter1, filter2, "Blur style differs");
|
||||
TestNotEquals(filter1, filter3, "blur radius differs");
|
||||
}
|
||||
@@ -100,9 +98,9 @@ void testNotEquals(const std::shared_ptr<const DlMaskFilter>& a,
|
||||
}
|
||||
|
||||
TEST(DisplayListMaskFilter, ComparableTemplates) {
|
||||
DlBlurMaskFilter filter1a(SkBlurStyle::kNormal_SkBlurStyle, 3.0);
|
||||
DlBlurMaskFilter filter1b(SkBlurStyle::kNormal_SkBlurStyle, 3.0);
|
||||
DlBlurMaskFilter filter2(SkBlurStyle::kNormal_SkBlurStyle, 5.0);
|
||||
DlBlurMaskFilter filter1a(DlBlurStyle::kNormal, 3.0);
|
||||
DlBlurMaskFilter filter1b(DlBlurStyle::kNormal, 3.0);
|
||||
DlBlurMaskFilter filter2(DlBlurStyle::kNormal, 5.0);
|
||||
std::shared_ptr<DlMaskFilter> shared_null;
|
||||
|
||||
// null to null
|
||||
@@ -2,14 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_path_effect.h"
|
||||
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <utility>
|
||||
|
||||
#include "include/core/SkRefCnt.h"
|
||||
#include "include/core/SkScalar.h"
|
||||
#include "flutter/display_list/effects/dl_path_effect.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -35,8 +28,7 @@ std::shared_ptr<DlPathEffect> DlDashPathEffect::Make(const SkScalar* intervals,
|
||||
}
|
||||
|
||||
std::optional<SkRect> DlDashPathEffect::effect_bounds(SkRect& rect) const {
|
||||
// SkDashPathEffect returns the original bounds as the bounds of the effect
|
||||
// since the dashed path will always be a subset of the original.
|
||||
// The dashed path will always be a subset of the original.
|
||||
return rect;
|
||||
}
|
||||
|
||||
@@ -2,15 +2,14 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_PATH_EFFECT_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_PATH_EFFECT_H_
|
||||
#ifndef FLUTTER_DISPLAY_LIST_EFFECTS_DL_PATH_EFFECT_H_
|
||||
#define FLUTTER_DISPLAY_LIST_EFFECTS_DL_PATH_EFFECT_H_
|
||||
|
||||
#include <cstring>
|
||||
#include <optional>
|
||||
#include "flutter/display_list/display_list_attributes.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
|
||||
#include "flutter/display_list/dl_attributes.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
#include "include/core/SkScalar.h"
|
||||
#include "include/core/SkRect.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -123,4 +122,4 @@ class DlDashPathEffect final : public DlPathEffect {
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_PATH_EFFECT_H_
|
||||
#endif // FLUTTER_DISPLAY_LIST_EFFECTS_DL_PATH_EFFECT_H_
|
||||
@@ -2,12 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/display_list_comparable.h"
|
||||
#include "flutter/display_list/effects/dl_path_effect.h"
|
||||
#include "flutter/display_list/testing/dl_test_equality.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "flutter/display_list/utils/dl_comparable.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include "include/core/SkPath.h"
|
||||
#include "include/core/SkScalar.h"
|
||||
|
||||
namespace flutter {
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_runtime_effect.h"
|
||||
#include "flutter/display_list/effects/dl_runtime_effect.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkRefCnt.h"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_rtree.h"
|
||||
#include "flutter/display_list/geometry/dl_rtree.h"
|
||||
|
||||
#include "flutter/fml/logging.h"
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_RTREE_H_
|
||||
#define FLUTTER_DISPLAY_LIST_RTREE_H_
|
||||
#ifndef FLUTTER_DISPLAY_LIST_GEOMETRY_DL_RTREE_H_
|
||||
#define FLUTTER_DISPLAY_LIST_GEOMETRY_DL_RTREE_H_
|
||||
|
||||
#include <list>
|
||||
#include <vector>
|
||||
@@ -129,4 +129,4 @@ class DlRTree : public SkRefCnt {
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_RTREE_H_
|
||||
#endif // FLUTTER_DISPLAY_LIST_GEOMETRY_DL_RTREE_H_
|
||||
@@ -2,8 +2,9 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_rtree.h"
|
||||
#include "flutter/display_list/geometry/dl_rtree.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkRect.h"
|
||||
|
||||
namespace flutter {
|
||||
@@ -2,9 +2,9 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_image.h"
|
||||
#include "flutter/display_list/image/dl_image.h"
|
||||
|
||||
#include "flutter/display_list/display_list_image_skia.h"
|
||||
#include "flutter/display_list/image/dl_image_skia.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_image_skia.h"
|
||||
#include "flutter/display_list/image/dl_image_skia.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_IMAGE_SKIA_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_IMAGE_SKIA_H_
|
||||
#ifndef FLUTTER_DISPLAY_LIST_IMAGE_DL_IMAGE_SKIA_H_
|
||||
#define FLUTTER_DISPLAY_LIST_IMAGE_DL_IMAGE_SKIA_H_
|
||||
|
||||
#include "flutter/display_list/display_list_image.h"
|
||||
#include "flutter/display_list/image/dl_image.h"
|
||||
#include "flutter/fml/macros.h"
|
||||
|
||||
namespace flutter {
|
||||
@@ -43,4 +43,4 @@ class DlImageSkia final : public DlImage {
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_IMAGE_SKIA_H_
|
||||
#endif // FLUTTER_DISPLAY_LIST_IMAGE_DL_IMAGE_SKIA_H_
|
||||
@@ -6,6 +6,7 @@
|
||||
#define FLUTTER_DISPLAY_LIST_SKIA_DL_SK_CANVAS_H_
|
||||
|
||||
#include "flutter/display_list/dl_canvas.h"
|
||||
#include "flutter/display_list/skia/dl_sk_types.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
|
||||
#include "flutter/display_list/skia/dl_sk_conversions.h"
|
||||
|
||||
#include "third_party/skia/include/effects/SkGradientShader.h"
|
||||
#include "third_party/skia/include/effects/SkImageFilters.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
sk_sp<SkShader> ToSk(const DlColorSource* source) {
|
||||
@@ -208,7 +211,8 @@ sk_sp<SkMaskFilter> ToSk(const DlMaskFilter* filter) {
|
||||
case DlMaskFilterType::kBlur: {
|
||||
const DlBlurMaskFilter* blur_filter = filter->asBlur();
|
||||
FML_DCHECK(blur_filter != nullptr);
|
||||
return SkMaskFilter::MakeBlur(blur_filter->style(), blur_filter->sigma(),
|
||||
return SkMaskFilter::MakeBlur(ToSk(blur_filter->style()),
|
||||
blur_filter->sigma(),
|
||||
blur_filter->respectCTM());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#define FLUTTER_DISPLAY_LIST_SKIA_DL_SK_CONVERSIONS_H_
|
||||
|
||||
#include "flutter/display_list/dl_op_receiver.h"
|
||||
#include "flutter/display_list/skia/dl_sk_types.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -29,6 +30,10 @@ inline SkTileMode ToSk(DlTileMode dl_mode) {
|
||||
return static_cast<SkTileMode>(dl_mode);
|
||||
}
|
||||
|
||||
inline SkBlurStyle ToSk(const DlBlurStyle blur_style) {
|
||||
return static_cast<SkBlurStyle>(blur_style);
|
||||
}
|
||||
|
||||
inline SkFilterMode ToSk(const DlFilterMode filter_mode) {
|
||||
return static_cast<SkFilterMode>(filter_mode);
|
||||
}
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
|
||||
#include "flutter/display_list/skia/dl_sk_conversions.h"
|
||||
|
||||
#include "flutter/display_list/display_list_blend_mode.h"
|
||||
#include "flutter/display_list/display_list_paint.h"
|
||||
#include "flutter/display_list/display_list_sampling_options.h"
|
||||
#include "flutter/display_list/display_list_tile_mode.h"
|
||||
#include "flutter/display_list/display_list_vertices.h"
|
||||
#include "flutter/display_list/types.h"
|
||||
#include "flutter/display_list/dl_blend_mode.h"
|
||||
#include "flutter/display_list/dl_paint.h"
|
||||
#include "flutter/display_list/dl_sampling_options.h"
|
||||
#include "flutter/display_list/dl_tile_mode.h"
|
||||
#include "flutter/display_list/dl_vertices.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include "include/core/SkSamplingOptions.h"
|
||||
|
||||
@@ -33,6 +32,13 @@ TEST(DisplayListSkConversions, ToSkTileMode) {
|
||||
ASSERT_EQ(ToSk(DlTileMode::kDecal), SkTileMode::kDecal);
|
||||
}
|
||||
|
||||
TEST(DisplayListSkConversions, ToSkBlurStyle) {
|
||||
ASSERT_EQ(ToSk(DlBlurStyle::kInner), SkBlurStyle::kInner_SkBlurStyle);
|
||||
ASSERT_EQ(ToSk(DlBlurStyle::kOuter), SkBlurStyle::kOuter_SkBlurStyle);
|
||||
ASSERT_EQ(ToSk(DlBlurStyle::kSolid), SkBlurStyle::kSolid_SkBlurStyle);
|
||||
ASSERT_EQ(ToSk(DlBlurStyle::kNormal), SkBlurStyle::kNormal_SkBlurStyle);
|
||||
}
|
||||
|
||||
TEST(DisplayListSkConversions, ToSkDrawStyle) {
|
||||
ASSERT_EQ(ToSk(DlDrawStyle::kFill), SkPaint::Style::kFill_Style);
|
||||
ASSERT_EQ(ToSk(DlDrawStyle::kStroke), SkPaint::Style::kStroke_Style);
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
|
||||
#include "flutter/display_list/skia/dl_sk_dispatcher.h"
|
||||
|
||||
#include "flutter/display_list/display_list_blend_mode.h"
|
||||
#include "flutter/display_list/dl_blend_mode.h"
|
||||
#include "flutter/display_list/skia/dl_sk_conversions.h"
|
||||
#include "flutter/display_list/skia/dl_sk_types.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
|
||||
#include "third_party/skia/include/utils/SkShadowUtils.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_CANVAS_DISPATCHER_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_CANVAS_DISPATCHER_H_
|
||||
#ifndef FLUTTER_DISPLAY_LIST_SKIA_DL_SK_CANVAS_DISPATCHER_H_
|
||||
#define FLUTTER_DISPLAY_LIST_SKIA_DL_SK_CANVAS_DISPATCHER_H_
|
||||
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/dl_op_receiver.h"
|
||||
#include "flutter/display_list/skia/dl_sk_utils.h"
|
||||
#include "flutter/display_list/skia/dl_sk_paint_dispatcher.h"
|
||||
#include "flutter/display_list/skia/dl_sk_types.h"
|
||||
#include "flutter/fml/macros.h"
|
||||
|
||||
namespace flutter {
|
||||
@@ -19,10 +20,10 @@ namespace flutter {
|
||||
/// Receives all methods on Dispatcher and sends them to an SkCanvas
|
||||
///
|
||||
class DlSkCanvasDispatcher : public virtual DlOpReceiver,
|
||||
public SkPaintDispatchHelper {
|
||||
public DlSkPaintDispatchHelper {
|
||||
public:
|
||||
explicit DlSkCanvasDispatcher(SkCanvas* canvas, SkScalar opacity = SK_Scalar1)
|
||||
: SkPaintDispatchHelper(opacity),
|
||||
: DlSkPaintDispatchHelper(opacity),
|
||||
canvas_(canvas),
|
||||
original_transform_(canvas->getLocalToDevice()) {}
|
||||
|
||||
@@ -120,4 +121,4 @@ class DlSkCanvasDispatcher : public virtual DlOpReceiver,
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_CANVAS_DISPATCHER_H_
|
||||
#endif // FLUTTER_DISPLAY_LIST_SKIA_DL_SK_CANVAS_DISPATCHER_H_
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/skia/dl_sk_utils.h"
|
||||
#include "flutter/display_list/skia/dl_sk_paint_dispatcher.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <optional>
|
||||
#include <type_traits>
|
||||
|
||||
#include "flutter/display_list/display_list_blend_mode.h"
|
||||
#include "flutter/display_list/dl_blend_mode.h"
|
||||
#include "flutter/display_list/skia/dl_sk_conversions.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
|
||||
@@ -23,11 +23,11 @@ constexpr float kInvertColorMatrix[20] = {
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
void SkPaintDispatchHelper::save_opacity(SkScalar child_opacity) {
|
||||
void DlSkPaintDispatchHelper::save_opacity(SkScalar child_opacity) {
|
||||
save_stack_.emplace_back(opacity_);
|
||||
set_opacity(child_opacity);
|
||||
}
|
||||
void SkPaintDispatchHelper::restore_opacity() {
|
||||
void DlSkPaintDispatchHelper::restore_opacity() {
|
||||
if (save_stack_.empty()) {
|
||||
return;
|
||||
}
|
||||
@@ -35,59 +35,59 @@ void SkPaintDispatchHelper::restore_opacity() {
|
||||
save_stack_.pop_back();
|
||||
}
|
||||
|
||||
void SkPaintDispatchHelper::setAntiAlias(bool aa) {
|
||||
void DlSkPaintDispatchHelper::setAntiAlias(bool aa) {
|
||||
paint_.setAntiAlias(aa);
|
||||
}
|
||||
void SkPaintDispatchHelper::setDither(bool dither) {
|
||||
void DlSkPaintDispatchHelper::setDither(bool dither) {
|
||||
paint_.setDither(dither);
|
||||
}
|
||||
void SkPaintDispatchHelper::setInvertColors(bool invert) {
|
||||
void DlSkPaintDispatchHelper::setInvertColors(bool invert) {
|
||||
invert_colors_ = invert;
|
||||
paint_.setColorFilter(makeColorFilter());
|
||||
}
|
||||
void SkPaintDispatchHelper::setStrokeCap(DlStrokeCap cap) {
|
||||
void DlSkPaintDispatchHelper::setStrokeCap(DlStrokeCap cap) {
|
||||
paint_.setStrokeCap(ToSk(cap));
|
||||
}
|
||||
void SkPaintDispatchHelper::setStrokeJoin(DlStrokeJoin join) {
|
||||
void DlSkPaintDispatchHelper::setStrokeJoin(DlStrokeJoin join) {
|
||||
paint_.setStrokeJoin(ToSk(join));
|
||||
}
|
||||
void SkPaintDispatchHelper::setStyle(DlDrawStyle style) {
|
||||
void DlSkPaintDispatchHelper::setStyle(DlDrawStyle style) {
|
||||
paint_.setStyle(ToSk(style));
|
||||
}
|
||||
void SkPaintDispatchHelper::setStrokeWidth(SkScalar width) {
|
||||
void DlSkPaintDispatchHelper::setStrokeWidth(SkScalar width) {
|
||||
paint_.setStrokeWidth(width);
|
||||
}
|
||||
void SkPaintDispatchHelper::setStrokeMiter(SkScalar limit) {
|
||||
void DlSkPaintDispatchHelper::setStrokeMiter(SkScalar limit) {
|
||||
paint_.setStrokeMiter(limit);
|
||||
}
|
||||
void SkPaintDispatchHelper::setColor(DlColor color) {
|
||||
void DlSkPaintDispatchHelper::setColor(DlColor color) {
|
||||
current_color_ = color;
|
||||
paint_.setColor(color);
|
||||
if (has_opacity()) {
|
||||
paint_.setAlphaf(paint_.getAlphaf() * opacity());
|
||||
}
|
||||
}
|
||||
void SkPaintDispatchHelper::setBlendMode(DlBlendMode mode) {
|
||||
void DlSkPaintDispatchHelper::setBlendMode(DlBlendMode mode) {
|
||||
paint_.setBlendMode(ToSk(mode));
|
||||
}
|
||||
void SkPaintDispatchHelper::setColorSource(const DlColorSource* source) {
|
||||
void DlSkPaintDispatchHelper::setColorSource(const DlColorSource* source) {
|
||||
paint_.setShader(ToSk(source));
|
||||
}
|
||||
void SkPaintDispatchHelper::setImageFilter(const DlImageFilter* filter) {
|
||||
void DlSkPaintDispatchHelper::setImageFilter(const DlImageFilter* filter) {
|
||||
paint_.setImageFilter(ToSk(filter));
|
||||
}
|
||||
void SkPaintDispatchHelper::setColorFilter(const DlColorFilter* filter) {
|
||||
void DlSkPaintDispatchHelper::setColorFilter(const DlColorFilter* filter) {
|
||||
sk_color_filter_ = ToSk(filter);
|
||||
paint_.setColorFilter(makeColorFilter());
|
||||
}
|
||||
void SkPaintDispatchHelper::setPathEffect(const DlPathEffect* effect) {
|
||||
void DlSkPaintDispatchHelper::setPathEffect(const DlPathEffect* effect) {
|
||||
paint_.setPathEffect(ToSk(effect));
|
||||
}
|
||||
void SkPaintDispatchHelper::setMaskFilter(const DlMaskFilter* filter) {
|
||||
void DlSkPaintDispatchHelper::setMaskFilter(const DlMaskFilter* filter) {
|
||||
paint_.setMaskFilter(ToSk(filter));
|
||||
}
|
||||
|
||||
sk_sp<SkColorFilter> SkPaintDispatchHelper::makeColorFilter() const {
|
||||
sk_sp<SkColorFilter> DlSkPaintDispatchHelper::makeColorFilter() const {
|
||||
if (!invert_colors_) {
|
||||
return sk_color_filter_;
|
||||
}
|
||||
@@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_SKIA_DL_SK_UTILS_H_
|
||||
#define FLUTTER_DISPLAY_LIST_SKIA_DL_SK_UTILS_H_
|
||||
#ifndef FLUTTER_DISPLAY_LIST_SKIA_DL_SK_PAINT_DISPATCHER_H_
|
||||
#define FLUTTER_DISPLAY_LIST_SKIA_DL_SK_PAINT_DISPATCHER_H_
|
||||
|
||||
#include "flutter/display_list/dl_op_receiver.h"
|
||||
|
||||
@@ -12,9 +12,9 @@ namespace flutter {
|
||||
// A utility class that will monitor the DlOpReceiver methods relating
|
||||
// to the rendering attributes and accumulate them into an SkPaint
|
||||
// which can be accessed at any time via paint().
|
||||
class SkPaintDispatchHelper : public virtual DlOpReceiver {
|
||||
class DlSkPaintDispatchHelper : public virtual DlOpReceiver {
|
||||
public:
|
||||
SkPaintDispatchHelper(SkScalar opacity = SK_Scalar1)
|
||||
DlSkPaintDispatchHelper(SkScalar opacity = SK_Scalar1)
|
||||
: current_color_(SK_ColorBLACK), opacity_(opacity) {
|
||||
if (opacity < SK_Scalar1) {
|
||||
paint_.setAlphaf(opacity);
|
||||
@@ -82,4 +82,4 @@ class SkPaintDispatchHelper : public virtual DlOpReceiver {
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_SKIA_DL_SK_UTILS_H_
|
||||
#endif // FLUTTER_DISPLAY_LIST_SKIA_DL_SK_PAINT_DISPATCHER_H_
|
||||
@@ -2,22 +2,23 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_utils.h"
|
||||
#include "flutter/display_list/skia/dl_sk_utils.h"
|
||||
#include "flutter/display_list/skia/dl_sk_paint_dispatcher.h"
|
||||
|
||||
#include "flutter/display_list/utils/dl_receiver_utils.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
|
||||
class MockDispatchHelper final : public virtual DlOpReceiver,
|
||||
public SkPaintDispatchHelper,
|
||||
public DlSkPaintDispatchHelper,
|
||||
public IgnoreClipDispatchHelper,
|
||||
public IgnoreTransformDispatchHelper,
|
||||
public IgnoreDrawDispatchHelper {
|
||||
public:
|
||||
void save() override { SkPaintDispatchHelper::save_opacity(0.5f); }
|
||||
void save() override { DlSkPaintDispatchHelper::save_opacity(0.5f); }
|
||||
|
||||
void restore() override { SkPaintDispatchHelper::restore_opacity(); }
|
||||
void restore() override { DlSkPaintDispatchHelper::restore_opacity(); }
|
||||
};
|
||||
|
||||
// Regression test for https://github.com/flutter/flutter/issues/100176.
|
||||
@@ -5,19 +5,22 @@
|
||||
#include <utility>
|
||||
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/display_list_comparable.h"
|
||||
#include "flutter/display_list/display_list_flags.h"
|
||||
#include "flutter/display_list/display_list_sampling_options.h"
|
||||
#include "flutter/display_list/dl_builder.h"
|
||||
#include "flutter/display_list/dl_op_flags.h"
|
||||
#include "flutter/display_list/dl_sampling_options.h"
|
||||
#include "flutter/display_list/skia/dl_sk_canvas.h"
|
||||
#include "flutter/display_list/skia/dl_sk_dispatcher.h"
|
||||
#include "flutter/display_list/testing/dl_test_surface_provider.h"
|
||||
#include "flutter/display_list/utils/dl_comparable.h"
|
||||
#include "flutter/fml/math.h"
|
||||
#include "flutter/testing/display_list_testing.h"
|
||||
#include "flutter/testing/testing.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkColorFilter.h"
|
||||
#include "third_party/skia/include/core/SkPictureRecorder.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "third_party/skia/include/effects/SkGradientShader.h"
|
||||
#include "third_party/skia/include/effects/SkImageFilters.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
@@ -1494,7 +1497,7 @@ class CanvasCompareTester {
|
||||
}
|
||||
|
||||
{
|
||||
const DlBlurMaskFilter dl_mask_filter(kNormal_SkBlurStyle, 5.0);
|
||||
const DlBlurMaskFilter dl_mask_filter(DlBlurStyle::kNormal, 5.0);
|
||||
auto sk_mask_filter = SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, 5.0);
|
||||
BoundsTolerance blur_5_tolerance = tolerance.addBoundsPadding(4, 4);
|
||||
{
|
||||
@@ -5,8 +5,8 @@
|
||||
#ifndef FLUTTER_DISPLAY_LIST_TESTING_DL_TEST_EQUALITY_H_
|
||||
#define FLUTTER_DISPLAY_LIST_TESTING_DL_TEST_EQUALITY_H_
|
||||
|
||||
#include "flutter/display_list/display_list_attributes.h"
|
||||
#include "flutter/display_list/display_list_comparable.h"
|
||||
#include "flutter/display_list/dl_attributes.h"
|
||||
#include "flutter/display_list/utils/dl_comparable.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/testing/dl_test_snippets.h"
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/dl_builder.h"
|
||||
#include "flutter/display_list/dl_op_receiver.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -6,8 +6,9 @@
|
||||
#define FLUTTER_DISPLAY_LIST_TESTING_DL_TEST_SNIPPETS_H_
|
||||
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/dl_builder.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkCanvas.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "third_party/skia/include/effects/SkDashPathEffect.h"
|
||||
#include "third_party/skia/include/effects/SkGradientShader.h"
|
||||
@@ -178,11 +179,11 @@ static const std::shared_ptr<DlPathEffect> kTestPathEffect1 =
|
||||
DlDashPathEffect::Make(kTestDashes1, 2, 0.0f);
|
||||
static const std::shared_ptr<DlPathEffect> kTestPathEffect2 =
|
||||
DlDashPathEffect::Make(kTestDashes2, 2, 0.0f);
|
||||
static const DlBlurMaskFilter kTestMaskFilter1(kNormal_SkBlurStyle, 3.0);
|
||||
static const DlBlurMaskFilter kTestMaskFilter2(kNormal_SkBlurStyle, 5.0);
|
||||
static const DlBlurMaskFilter kTestMaskFilter3(kSolid_SkBlurStyle, 3.0);
|
||||
static const DlBlurMaskFilter kTestMaskFilter4(kInner_SkBlurStyle, 3.0);
|
||||
static const DlBlurMaskFilter kTestMaskFilter5(kOuter_SkBlurStyle, 3.0);
|
||||
static const DlBlurMaskFilter kTestMaskFilter1(DlBlurStyle::kNormal, 3.0);
|
||||
static const DlBlurMaskFilter kTestMaskFilter2(DlBlurStyle::kNormal, 5.0);
|
||||
static const DlBlurMaskFilter kTestMaskFilter3(DlBlurStyle::kSolid, 3.0);
|
||||
static const DlBlurMaskFilter kTestMaskFilter4(DlBlurStyle::kInner, 3.0);
|
||||
static const DlBlurMaskFilter kTestMaskFilter5(DlBlurStyle::kOuter, 3.0);
|
||||
constexpr SkRect kTestBounds = SkRect::MakeLTRB(10, 10, 50, 60);
|
||||
static const SkRRect kTestRRect = SkRRect::MakeRectXY(kTestBounds, 5, 5);
|
||||
static const SkRRect kTestRRectRect = SkRRect::MakeRect(kTestBounds);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_utils.h"
|
||||
#include "flutter/display_list/utils/dl_bounds_accumulator.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
168
engine/src/flutter/display_list/utils/dl_bounds_accumulator.h
Normal file
168
engine/src/flutter/display_list/utils/dl_bounds_accumulator.h
Normal file
@@ -0,0 +1,168 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_UTILS_DL_BOUNDS_ACCUMULATOR_H_
|
||||
#define FLUTTER_DISPLAY_LIST_UTILS_DL_BOUNDS_ACCUMULATOR_H_
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include "flutter/display_list/geometry/dl_rtree.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
|
||||
// This file contains various utility classes to ease implementing
|
||||
// a Flutter DisplayList DlOpReceiver, including:
|
||||
//
|
||||
// IgnoreAttributeDispatchHelper:
|
||||
// IgnoreClipDispatchHelper:
|
||||
// IgnoreTransformDispatchHelper
|
||||
// Empty overrides of all of the associated methods of DlOpReceiver
|
||||
// for receivers that only track some of the rendering operations
|
||||
|
||||
namespace flutter {
|
||||
|
||||
enum class BoundsAccumulatorType {
|
||||
kRect,
|
||||
kRTree,
|
||||
};
|
||||
|
||||
class BoundsAccumulator {
|
||||
public:
|
||||
/// function definition for modifying the bounds of a rectangle
|
||||
/// during a restore operation. The function is used primarily
|
||||
/// to account for the bounds impact of an ImageFilter on a
|
||||
/// saveLayer on a per-rect basis. The implementation may apply
|
||||
/// this function at whatever granularity it can manage easily
|
||||
/// (for example, a Rect accumulator might apply it to the entire
|
||||
/// local bounds being restored, whereas an RTree accumulator might
|
||||
/// apply it individually to each element in the local RTree).
|
||||
///
|
||||
/// The function will do a best faith attempt at determining the
|
||||
/// modified bounds and store the results in the supplied |dest|
|
||||
/// rectangle and return true. If the function is unable to
|
||||
/// accurately determine the modifed bounds, it will set the
|
||||
/// |dest| rectangle to a copy of the input bounds (or a best
|
||||
/// guess) and return false to indicate that the bounds should not
|
||||
/// be trusted.
|
||||
typedef bool BoundsModifier(const SkRect& original, SkRect* dest);
|
||||
|
||||
virtual ~BoundsAccumulator() = default;
|
||||
|
||||
virtual void accumulate(const SkRect& r, int index = 0) = 0;
|
||||
|
||||
/// Save aside the rects/bounds currently being accumulated and start
|
||||
/// accumulating a new set of rects/bounds. When restore is called,
|
||||
/// some additional modifications may be applied to these new bounds
|
||||
/// before they are accumulated back into the surrounding bounds.
|
||||
virtual void save() = 0;
|
||||
|
||||
/// Restore to the previous accumulation and incorporate the bounds of
|
||||
/// the primitives that were recorded since the last save (if needed).
|
||||
virtual void restore() = 0;
|
||||
|
||||
/// Restore the previous set of accumulation rects/bounds and accumulate
|
||||
/// the current rects/bounds that were accumulated since the most recent
|
||||
/// call to |save| into them with modifications specified by the |map|
|
||||
/// parameter and clipping to the clip parameter if it is not null.
|
||||
///
|
||||
/// The indicated map function is applied to the various rects and bounds
|
||||
/// that have been accumulated in this save/restore cycle before they
|
||||
/// are then accumulated into the previous accumulations. The granularity
|
||||
/// of the application of the map function to the rectangles that were
|
||||
/// accumulated during the save period is left up to the implementation.
|
||||
///
|
||||
/// This method will return true if the map function returned true on
|
||||
/// every single invocation. A false return value means that the
|
||||
/// bounds accumulated during this restore may not be trusted (as
|
||||
/// determined by the map function).
|
||||
///
|
||||
/// If there are no saved accumulations to restore to, this method will
|
||||
/// NOP ignoring the map function and the optional clip entirely.
|
||||
virtual bool restore(
|
||||
std::function<bool(const SkRect& original, SkRect& modified)> map,
|
||||
const SkRect* clip = nullptr) = 0;
|
||||
|
||||
virtual SkRect bounds() const = 0;
|
||||
|
||||
virtual sk_sp<DlRTree> rtree() const = 0;
|
||||
|
||||
virtual BoundsAccumulatorType type() const = 0;
|
||||
};
|
||||
|
||||
class RectBoundsAccumulator final : public virtual BoundsAccumulator {
|
||||
public:
|
||||
void accumulate(SkScalar x, SkScalar y) { rect_.accumulate(x, y); }
|
||||
void accumulate(const SkPoint& p) { rect_.accumulate(p.fX, p.fY); }
|
||||
void accumulate(const SkRect& r, int index) override;
|
||||
|
||||
bool is_empty() const { return rect_.is_empty(); }
|
||||
bool is_not_empty() const { return rect_.is_not_empty(); }
|
||||
|
||||
void save() override;
|
||||
void restore() override;
|
||||
bool restore(std::function<bool(const SkRect&, SkRect&)> mapper,
|
||||
const SkRect* clip) override;
|
||||
|
||||
SkRect bounds() const override {
|
||||
FML_DCHECK(saved_rects_.empty());
|
||||
return rect_.bounds();
|
||||
}
|
||||
|
||||
BoundsAccumulatorType type() const override {
|
||||
return BoundsAccumulatorType::kRect;
|
||||
}
|
||||
|
||||
sk_sp<DlRTree> rtree() const override { return nullptr; }
|
||||
|
||||
private:
|
||||
class AccumulationRect {
|
||||
public:
|
||||
AccumulationRect();
|
||||
|
||||
void accumulate(SkScalar x, SkScalar y);
|
||||
|
||||
bool is_empty() const { return min_x_ >= max_x_ || min_y_ >= max_y_; }
|
||||
bool is_not_empty() const { return min_x_ < max_x_ && min_y_ < max_y_; }
|
||||
|
||||
SkRect bounds() const;
|
||||
|
||||
private:
|
||||
SkScalar min_x_;
|
||||
SkScalar min_y_;
|
||||
SkScalar max_x_;
|
||||
SkScalar max_y_;
|
||||
};
|
||||
|
||||
void pop_and_accumulate(SkRect& layer_bounds, const SkRect* clip);
|
||||
|
||||
AccumulationRect rect_;
|
||||
std::vector<AccumulationRect> saved_rects_;
|
||||
};
|
||||
|
||||
class RTreeBoundsAccumulator final : public virtual BoundsAccumulator {
|
||||
public:
|
||||
void accumulate(const SkRect& r, int index) override;
|
||||
void save() override;
|
||||
void restore() override;
|
||||
|
||||
bool restore(
|
||||
std::function<bool(const SkRect& original, SkRect& modified)> map,
|
||||
const SkRect* clip = nullptr) override;
|
||||
|
||||
SkRect bounds() const override;
|
||||
|
||||
sk_sp<DlRTree> rtree() const override;
|
||||
|
||||
BoundsAccumulatorType type() const override {
|
||||
return BoundsAccumulatorType::kRTree;
|
||||
}
|
||||
|
||||
private:
|
||||
std::vector<SkRect> rects_;
|
||||
std::vector<int> rect_indices_;
|
||||
std::vector<size_t> saved_offsets_;
|
||||
};
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_UTILS_DL_BOUNDS_ACCUMULATOR_H_
|
||||
@@ -5,7 +5,7 @@
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COMPARABLE_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COMPARABLE_H_
|
||||
|
||||
#include "flutter/display_list/types.h"
|
||||
#include <memory>
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -2,11 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_matrix_clip_tracker.h"
|
||||
#include "flutter/display_list/utils/dl_matrix_clip_tracker.h"
|
||||
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/dl_builder.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
#include "third_party/skia/include/core/SkPath.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include "flutter/display_list/dl_canvas.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
#include "third_party/skia/include/core/SkClipOp.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkM44.h"
|
||||
#include "third_party/skia/include/core/SkMatrix.h"
|
||||
#include "third_party/skia/include/core/SkPath.h"
|
||||
@@ -2,9 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_matrix_clip_tracker.h"
|
||||
#include "flutter/display_list/utils/dl_matrix_clip_tracker.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include "third_party/skia/include/core/SkPath.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
11
engine/src/flutter/display_list/utils/dl_receiver_utils.cc
Normal file
11
engine/src/flutter/display_list/utils/dl_receiver_utils.cc
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/utils/dl_receiver_utils.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
// Just exists to ensure that the header can be cleanly imported.
|
||||
|
||||
} // namespace flutter
|
||||
@@ -2,12 +2,9 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_UTILS_H_
|
||||
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_UTILS_H_
|
||||
#ifndef FLUTTER_DISPLAY_LIST_UTILS_DL_RECEIVER_UTILS_H_
|
||||
#define FLUTTER_DISPLAY_LIST_UTILS_DL_RECEIVER_UTILS_H_
|
||||
|
||||
#include <optional>
|
||||
|
||||
#include "flutter/display_list/display_list_rtree.h"
|
||||
#include "flutter/display_list/dl_op_receiver.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
|
||||
@@ -139,148 +136,6 @@ class IgnoreDrawDispatchHelper : public virtual DlOpReceiver {
|
||||
SkScalar dpr) override {}
|
||||
};
|
||||
|
||||
enum class BoundsAccumulatorType {
|
||||
kRect,
|
||||
kRTree,
|
||||
};
|
||||
|
||||
class BoundsAccumulator {
|
||||
public:
|
||||
/// function definition for modifying the bounds of a rectangle
|
||||
/// during a restore operation. The function is used primarily
|
||||
/// to account for the bounds impact of an ImageFilter on a
|
||||
/// saveLayer on a per-rect basis. The implementation may apply
|
||||
/// this function at whatever granularity it can manage easily
|
||||
/// (for example, a Rect accumulator might apply it to the entire
|
||||
/// local bounds being restored, whereas an RTree accumulator might
|
||||
/// apply it individually to each element in the local RTree).
|
||||
///
|
||||
/// The function will do a best faith attempt at determining the
|
||||
/// modified bounds and store the results in the supplied |dest|
|
||||
/// rectangle and return true. If the function is unable to
|
||||
/// accurately determine the modifed bounds, it will set the
|
||||
/// |dest| rectangle to a copy of the input bounds (or a best
|
||||
/// guess) and return false to indicate that the bounds should not
|
||||
/// be trusted.
|
||||
typedef bool BoundsModifier(const SkRect& original, SkRect* dest);
|
||||
|
||||
virtual ~BoundsAccumulator() = default;
|
||||
|
||||
virtual void accumulate(const SkRect& r, int index = 0) = 0;
|
||||
|
||||
/// Save aside the rects/bounds currently being accumulated and start
|
||||
/// accumulating a new set of rects/bounds. When restore is called,
|
||||
/// some additional modifications may be applied to these new bounds
|
||||
/// before they are accumulated back into the surrounding bounds.
|
||||
virtual void save() = 0;
|
||||
|
||||
/// Restore to the previous accumulation and incorporate the bounds of
|
||||
/// the primitives that were recorded since the last save (if needed).
|
||||
virtual void restore() = 0;
|
||||
|
||||
/// Restore the previous set of accumulation rects/bounds and accumulate
|
||||
/// the current rects/bounds that were accumulated since the most recent
|
||||
/// call to |save| into them with modifications specified by the |map|
|
||||
/// parameter and clipping to the clip parameter if it is not null.
|
||||
///
|
||||
/// The indicated map function is applied to the various rects and bounds
|
||||
/// that have been accumulated in this save/restore cycle before they
|
||||
/// are then accumulated into the previous accumulations. The granularity
|
||||
/// of the application of the map function to the rectangles that were
|
||||
/// accumulated during the save period is left up to the implementation.
|
||||
///
|
||||
/// This method will return true if the map function returned true on
|
||||
/// every single invocation. A false return value means that the
|
||||
/// bounds accumulated during this restore may not be trusted (as
|
||||
/// determined by the map function).
|
||||
///
|
||||
/// If there are no saved accumulations to restore to, this method will
|
||||
/// NOP ignoring the map function and the optional clip entirely.
|
||||
virtual bool restore(
|
||||
std::function<bool(const SkRect& original, SkRect& modified)> map,
|
||||
const SkRect* clip = nullptr) = 0;
|
||||
|
||||
virtual SkRect bounds() const = 0;
|
||||
|
||||
virtual sk_sp<DlRTree> rtree() const = 0;
|
||||
|
||||
virtual BoundsAccumulatorType type() const = 0;
|
||||
};
|
||||
|
||||
class RectBoundsAccumulator final : public virtual BoundsAccumulator {
|
||||
public:
|
||||
void accumulate(SkScalar x, SkScalar y) { rect_.accumulate(x, y); }
|
||||
void accumulate(const SkPoint& p) { rect_.accumulate(p.fX, p.fY); }
|
||||
void accumulate(const SkRect& r, int index) override;
|
||||
|
||||
bool is_empty() const { return rect_.is_empty(); }
|
||||
bool is_not_empty() const { return rect_.is_not_empty(); }
|
||||
|
||||
void save() override;
|
||||
void restore() override;
|
||||
bool restore(std::function<bool(const SkRect&, SkRect&)> mapper,
|
||||
const SkRect* clip) override;
|
||||
|
||||
SkRect bounds() const override {
|
||||
FML_DCHECK(saved_rects_.empty());
|
||||
return rect_.bounds();
|
||||
}
|
||||
|
||||
BoundsAccumulatorType type() const override {
|
||||
return BoundsAccumulatorType::kRect;
|
||||
}
|
||||
|
||||
sk_sp<DlRTree> rtree() const override { return nullptr; }
|
||||
|
||||
private:
|
||||
class AccumulationRect {
|
||||
public:
|
||||
AccumulationRect();
|
||||
|
||||
void accumulate(SkScalar x, SkScalar y);
|
||||
|
||||
bool is_empty() const { return min_x_ >= max_x_ || min_y_ >= max_y_; }
|
||||
bool is_not_empty() const { return min_x_ < max_x_ && min_y_ < max_y_; }
|
||||
|
||||
SkRect bounds() const;
|
||||
|
||||
private:
|
||||
SkScalar min_x_;
|
||||
SkScalar min_y_;
|
||||
SkScalar max_x_;
|
||||
SkScalar max_y_;
|
||||
};
|
||||
|
||||
void pop_and_accumulate(SkRect& layer_bounds, const SkRect* clip);
|
||||
|
||||
AccumulationRect rect_;
|
||||
std::vector<AccumulationRect> saved_rects_;
|
||||
};
|
||||
|
||||
class RTreeBoundsAccumulator final : public virtual BoundsAccumulator {
|
||||
public:
|
||||
void accumulate(const SkRect& r, int index) override;
|
||||
void save() override;
|
||||
void restore() override;
|
||||
|
||||
bool restore(
|
||||
std::function<bool(const SkRect& original, SkRect& modified)> map,
|
||||
const SkRect* clip = nullptr) override;
|
||||
|
||||
SkRect bounds() const override;
|
||||
|
||||
sk_sp<DlRTree> rtree() const override;
|
||||
|
||||
BoundsAccumulatorType type() const override {
|
||||
return BoundsAccumulatorType::kRTree;
|
||||
}
|
||||
|
||||
private:
|
||||
std::vector<SkRect> rects_;
|
||||
std::vector<int> rect_indices_;
|
||||
std::vector<size_t> saved_offsets_;
|
||||
};
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_UTILS_H_
|
||||
#endif // FLUTTER_DISPLAY_LIST_UTILS_DL_RECEIVER_UTILS_H_
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <map>
|
||||
#include <optional>
|
||||
#include <vector>
|
||||
#include "display_list/display_list_matrix_clip_tracker.h"
|
||||
#include "display_list/utils/dl_matrix_clip_tracker.h"
|
||||
#include "flutter/flow/paint_region.h"
|
||||
#include "flutter/fml/macros.h"
|
||||
#include "third_party/skia/include/core/SkMatrix.h"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/dl_builder.h"
|
||||
#include "flutter/display_list/skia/dl_sk_canvas.h"
|
||||
#include "flutter/flow/rtree.h"
|
||||
#include "flutter/flow/surface_frame.h"
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/flow/layers/cacheable_layer.h"
|
||||
#include "flutter/flow/raster_cache.h"
|
||||
#include "flutter/flow/raster_cache_item.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include <memory>
|
||||
|
||||
#include "flutter/flow/layers/container_layer.h"
|
||||
#include "flutter/flow/layers/display_list_raster_cache_item.h"
|
||||
#include "flutter/flow/layers/layer_raster_cache_item.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
#include "flutter/flow/layers/color_filter_layer.h"
|
||||
|
||||
#include "flutter/display_list/display_list_comparable.h"
|
||||
#include "flutter/display_list/display_list_paint.h"
|
||||
#include "flutter/display_list/dl_paint.h"
|
||||
#include "flutter/display_list/utils/dl_comparable.h"
|
||||
#include "flutter/flow/raster_cache_item.h"
|
||||
#include "flutter/flow/raster_cache_util.h"
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
#ifndef FLUTTER_FLOW_LAYERS_COLOR_FILTER_LAYER_H_
|
||||
#define FLUTTER_FLOW_LAYERS_COLOR_FILTER_LAYER_H_
|
||||
|
||||
#include "flutter/display_list/display_list_color_filter.h"
|
||||
#include "flutter/display_list/effects/dl_color_filter.h"
|
||||
#include "flutter/flow/layers/cacheable_layer.h"
|
||||
#include "flutter/flow/layers/layer.h"
|
||||
#include "third_party/skia/include/core/SkColorFilter.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
class ColorFilterLayer : public CacheableContainerLayer {
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/display_list_color.h"
|
||||
#include "flutter/display_list/display_list_paint.h"
|
||||
#include "flutter/display_list/dl_color.h"
|
||||
#include "flutter/display_list/dl_paint.h"
|
||||
#include "flutter/flow/compositor_context.h"
|
||||
#include "flutter/flow/layers/color_filter_layer.h"
|
||||
|
||||
#include "flutter/display_list/display_list_color_filter.h"
|
||||
#include "flutter/display_list/effects/dl_color_filter.h"
|
||||
#include "flutter/flow/layers/layer_tree.h"
|
||||
#include "flutter/flow/layers/opacity_layer.h"
|
||||
#include "flutter/flow/raster_cache.h"
|
||||
@@ -17,9 +17,6 @@
|
||||
#include "flutter/flow/testing/mock_layer.h"
|
||||
#include "flutter/fml/macros.h"
|
||||
#include "flutter/testing/mock_canvas.h"
|
||||
#include "include/core/SkColor.h"
|
||||
#include "third_party/skia/include/core/SkColorFilter.h"
|
||||
#include "third_party/skia/include/effects/SkColorMatrixFilter.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/display_list_flags.h"
|
||||
#include "flutter/display_list/dl_builder.h"
|
||||
#include "flutter/flow/layer_snapshot_store.h"
|
||||
#include "flutter/flow/layers/cacheable_layer.h"
|
||||
#include "flutter/flow/layers/offscreen_surface.h"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include "flutter/flow/layers/display_list_layer.h"
|
||||
|
||||
#include "flutter/display_list/display_list_builder.h"
|
||||
#include "flutter/display_list/dl_builder.h"
|
||||
#include "flutter/flow/layers/layer_tree.h"
|
||||
#include "flutter/flow/testing/diff_context_test.h"
|
||||
#include "flutter/flow/testing/skia_gpu_object_layer_test.h"
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#include <optional>
|
||||
#include <utility>
|
||||
|
||||
#include "flutter/display_list/benchmarking/dl_complexity.h"
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/display_list_complexity.h"
|
||||
#include "flutter/flow/layers/layer.h"
|
||||
#include "flutter/flow/raster_cache.h"
|
||||
#include "flutter/flow/raster_cache_item.h"
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include <optional>
|
||||
|
||||
#include "flutter/display_list/display_list.h"
|
||||
#include "flutter/display_list/display_list_utils.h"
|
||||
#include "flutter/flow/embedded_views.h"
|
||||
#include "flutter/flow/raster_cache_item.h"
|
||||
#include "include/core/SkCanvas.h"
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/flow/layers/image_filter_layer.h"
|
||||
#include "flutter/display_list/display_list_comparable.h"
|
||||
|
||||
#include "flutter/display_list/utils/dl_comparable.h"
|
||||
#include "flutter/flow/layers/layer.h"
|
||||
#include "flutter/flow/raster_cache_util.h"
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@
|
||||
|
||||
#include <memory>
|
||||
#include "flutter/flow/layers/cacheable_layer.h"
|
||||
#include "flutter/flow/layers/layer.h"
|
||||
#include "include/core/SkRefCnt.h"
|
||||
#include "third_party/skia/include/core/SkImageFilter.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "flutter/display_list/display_list_tile_mode.h"
|
||||
#include "flutter/display_list/dl_tile_mode.h"
|
||||
#include "flutter/flow/layers/image_filter_layer.h"
|
||||
|
||||
#include "flutter/flow/layers/layer_tree.h"
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "flutter/flow/layers/layer.h"
|
||||
|
||||
#include "flutter/flow/paint_utils.h"
|
||||
#include "third_party/skia/include/core/SkColorFilter.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user