[impeller] merge aiks directory into impeller/display_list directory. (flutter/engine#55471)

Aiks has been gutted, and most of the reming types need to be merged with dl/entity types and deleted. this is difficult to do with impeller/display_list and aiks as separate gn targets as it requires circular deps.

Lets merge them and remove the aiks directory.
This commit is contained in:
Jonah Williams
2024-10-02 14:07:57 -05:00
committed by GitHub
parent 44df46cab0
commit 192939c3a6
59 changed files with 206 additions and 235 deletions

View File

@@ -128,9 +128,6 @@
../../../flutter/impeller/.clang-format
../../../flutter/impeller/.gitignore
../../../flutter/impeller/README.md
../../../flutter/impeller/aiks/aiks_unittests.cc
../../../flutter/impeller/aiks/aiks_unittests.h
../../../flutter/impeller/aiks/canvas_unittests.cc
../../../flutter/impeller/base/README.md
../../../flutter/impeller/base/allocation_size_unittests.cc
../../../flutter/impeller/base/base_unittests.cc
@@ -151,6 +148,9 @@
../../../flutter/impeller/display_list/aiks_dl_text_unittests.cc
../../../flutter/impeller/display_list/aiks_dl_unittests.cc
../../../flutter/impeller/display_list/aiks_dl_vertices_unittests.cc
../../../flutter/impeller/display_list/aiks_unittests.cc
../../../flutter/impeller/display_list/aiks_unittests.h
../../../flutter/impeller/display_list/canvas_unittests.cc
../../../flutter/impeller/display_list/dl_golden_blur_unittests.cc
../../../flutter/impeller/display_list/dl_golden_unittests.cc
../../../flutter/impeller/display_list/dl_golden_unittests.h

View File

@@ -42618,20 +42618,6 @@ ORIGIN: ../../../flutter/fml/unique_fd.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/fml/unique_fd.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/fml/unique_object.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/fml/wakeable.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/aiks_context.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/aiks_context.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/aiks_playground.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/aiks_playground.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/canvas.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/canvas.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/color_filter.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/color_filter.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/color_source.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/color_source.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/image_filter.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/image_filter.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/paint.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/paint.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/base/allocation.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/base/allocation.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/base/allocation_size.cc + ../../../flutter/LICENSE
@@ -42738,6 +42724,16 @@ ORIGIN: ../../../flutter/impeller/core/texture_descriptor.cc + ../../../flutter/
ORIGIN: ../../../flutter/impeller/core/texture_descriptor.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/core/vertex_buffer.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/core/vertex_buffer.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/aiks_context.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/aiks_context.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/aiks_playground.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/aiks_playground.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/canvas.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/canvas.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/color_filter.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/color_filter.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/color_source.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/color_source.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/dl_atlas_geometry.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/dl_atlas_geometry.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/dl_dispatcher.cc + ../../../flutter/LICENSE
@@ -42748,8 +42744,12 @@ ORIGIN: ../../../flutter/impeller/display_list/dl_playground.cc + ../../../flutt
ORIGIN: ../../../flutter/impeller/display_list/dl_playground.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/dl_vertices_geometry.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/dl_vertices_geometry.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/image_filter.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/image_filter.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/nine_patch_converter.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/nine_patch_converter.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/paint.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/paint.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/skia_conversions.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/display_list/skia_conversions.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/entity/contents/anonymous_contents.cc + ../../../flutter/LICENSE
@@ -45484,20 +45484,6 @@ FILE: ../../../flutter/fml/unique_fd.cc
FILE: ../../../flutter/fml/unique_fd.h
FILE: ../../../flutter/fml/unique_object.h
FILE: ../../../flutter/fml/wakeable.h
FILE: ../../../flutter/impeller/aiks/aiks_context.cc
FILE: ../../../flutter/impeller/aiks/aiks_context.h
FILE: ../../../flutter/impeller/aiks/aiks_playground.cc
FILE: ../../../flutter/impeller/aiks/aiks_playground.h
FILE: ../../../flutter/impeller/aiks/canvas.cc
FILE: ../../../flutter/impeller/aiks/canvas.h
FILE: ../../../flutter/impeller/aiks/color_filter.cc
FILE: ../../../flutter/impeller/aiks/color_filter.h
FILE: ../../../flutter/impeller/aiks/color_source.cc
FILE: ../../../flutter/impeller/aiks/color_source.h
FILE: ../../../flutter/impeller/aiks/image_filter.cc
FILE: ../../../flutter/impeller/aiks/image_filter.h
FILE: ../../../flutter/impeller/aiks/paint.cc
FILE: ../../../flutter/impeller/aiks/paint.h
FILE: ../../../flutter/impeller/base/allocation.cc
FILE: ../../../flutter/impeller/base/allocation.h
FILE: ../../../flutter/impeller/base/allocation_size.cc
@@ -45604,6 +45590,16 @@ FILE: ../../../flutter/impeller/core/texture_descriptor.cc
FILE: ../../../flutter/impeller/core/texture_descriptor.h
FILE: ../../../flutter/impeller/core/vertex_buffer.cc
FILE: ../../../flutter/impeller/core/vertex_buffer.h
FILE: ../../../flutter/impeller/display_list/aiks_context.cc
FILE: ../../../flutter/impeller/display_list/aiks_context.h
FILE: ../../../flutter/impeller/display_list/aiks_playground.cc
FILE: ../../../flutter/impeller/display_list/aiks_playground.h
FILE: ../../../flutter/impeller/display_list/canvas.cc
FILE: ../../../flutter/impeller/display_list/canvas.h
FILE: ../../../flutter/impeller/display_list/color_filter.cc
FILE: ../../../flutter/impeller/display_list/color_filter.h
FILE: ../../../flutter/impeller/display_list/color_source.cc
FILE: ../../../flutter/impeller/display_list/color_source.h
FILE: ../../../flutter/impeller/display_list/dl_atlas_geometry.cc
FILE: ../../../flutter/impeller/display_list/dl_atlas_geometry.h
FILE: ../../../flutter/impeller/display_list/dl_dispatcher.cc
@@ -45614,8 +45610,12 @@ FILE: ../../../flutter/impeller/display_list/dl_playground.cc
FILE: ../../../flutter/impeller/display_list/dl_playground.h
FILE: ../../../flutter/impeller/display_list/dl_vertices_geometry.cc
FILE: ../../../flutter/impeller/display_list/dl_vertices_geometry.h
FILE: ../../../flutter/impeller/display_list/image_filter.cc
FILE: ../../../flutter/impeller/display_list/image_filter.h
FILE: ../../../flutter/impeller/display_list/nine_patch_converter.cc
FILE: ../../../flutter/impeller/display_list/nine_patch_converter.h
FILE: ../../../flutter/impeller/display_list/paint.cc
FILE: ../../../flutter/impeller/display_list/paint.h
FILE: ../../../flutter/impeller/display_list/skia_conversions.cc
FILE: ../../../flutter/impeller/display_list/skia_conversions.h
FILE: ../../../flutter/impeller/entity/contents/anonymous_contents.cc

View File

@@ -21,14 +21,14 @@
#include "third_party/skia/include/core/SkSize.h"
#if IMPELLER_SUPPORTS_RENDERING
#include "flutter/impeller/aiks/aiks_context.h" // nogncheck
#include "flutter/impeller/renderer/context.h" // nogncheck
#else // IMPELLER_SUPPORTS_RENDERING
#include "flutter/impeller/display_list/aiks_context.h" // nogncheck
#include "flutter/impeller/renderer/context.h" // nogncheck
#else // IMPELLER_SUPPORTS_RENDERING
namespace impeller {
class Context;
class AiksContext;
} // namespace impeller
#endif // !IMPELLER_SUPPORTS_RENDERING
#endif // !IMPELLER_SUPPORTS_RENDERING
class GrDirectContext;

View File

@@ -40,7 +40,6 @@ group("impeller") {
if (impeller_supports_rendering) {
public_deps += [
"aiks",
"display_list",
"entity",
"renderer",
@@ -70,7 +69,7 @@ impeller_component("impeller_unittests") {
if (impeller_supports_rendering) {
deps += [
"aiks:aiks_unittests",
"display_list:aiks_unittests",
"display_list:display_list_unittests",
"entity:entity_unittests",
"fixtures",

View File

@@ -81,14 +81,6 @@ states of completion:
framework. The render-pass optimization and pass-rewriting framework also
resides there. This allows authoring composable 2D rendering optimizations
(like collapsing passes, or, eliding them completely).
* **`//impeller/aiks`**: Aiks wraps `//impeller/entity` into an API that
resembles Skia. This makes it easy to mechanically replace Skia calls with
their Impeller counterparts even though the `//impeller/entity` framework API
is different from Skia. This presence of this sub-framework is probably
short-lived as integration of Impeller into Flutter should likely happen via a
custom Display List implementation in `//impeller/display_list`. The
roadblocks to this today are graphics package agnosticism in the Display List
interface.
* **`//impeller/display_list`**: The replacement for `//impeller/aiks` to serve
in the integration of Impeller in `//flutter/flow`. This is pending graphics
package agnosticism in the Impeller interface. This sub-framework primarily

View File

@@ -1,95 +0,0 @@
# 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.
import("../tools/impeller.gni")
impeller_component("aiks") {
sources = [
"aiks_context.cc",
"aiks_context.h",
"canvas.cc",
"canvas.h",
"color_filter.cc",
"color_filter.h",
"color_source.cc",
"color_source.h",
"image_filter.cc",
"image_filter.h",
"paint.cc",
"paint.h",
]
public_deps = [
"../base",
"../entity",
"../geometry",
]
deps = [ "//flutter/fml" ]
}
impeller_component("aiks_playground") {
testonly = true
sources = [
"aiks_playground.cc",
"aiks_playground.h",
]
deps = [
":aiks",
"../playground:playground_test",
"//flutter/display_list",
"//flutter/impeller/display_list:display_list",
]
public_deps = [
"//flutter/impeller/typographer/backends/skia:typographer_skia_backend",
]
}
template("aiks_unittests_component") {
target_name = invoker.target_name
predefined_sources = [
"aiks_unittests.cc",
"aiks_unittests.h",
]
additional_sources = []
if (defined(invoker.sources)) {
additional_sources = invoker.sources
}
impeller_component(target_name) {
testonly = true
if (defined(invoker.defines)) {
defines = invoker.defines
} else {
defines = []
}
defines += [ "_USE_MATH_DEFINES" ]
sources = predefined_sources + additional_sources
deps = [
":aiks",
":aiks_playground",
"//flutter/impeller/geometry:geometry_asserts",
"//flutter/impeller/golden_tests:golden_playground_test",
"//flutter/impeller/playground:playground_test",
"//flutter/impeller/typographer/backends/stb:typographer_stb_backend",
"//flutter/testing:testing_lib",
"//flutter/third_party/txt",
]
if (defined(invoker.public_configs)) {
public_configs = invoker.public_configs
}
}
}
aiks_unittests_component("aiks_unittests") {
sources = [ "canvas_unittests.cc" ]
}
aiks_unittests_component("aiks_unittests_golden") {
defines = [
"IMPELLER_GOLDEN_TESTS",
"IMPELLER_ENABLE_VALIDATION=1",
]
}

View File

@@ -22,6 +22,14 @@ impeller_component("skia_conversions") {
impeller_component("display_list") {
sources = [
"aiks_context.cc",
"aiks_context.h",
"canvas.cc",
"canvas.h",
"color_filter.cc",
"color_filter.h",
"color_source.cc",
"color_source.h",
"dl_atlas_geometry.cc",
"dl_atlas_geometry.h",
"dl_dispatcher.cc",
@@ -30,15 +38,19 @@ impeller_component("display_list") {
"dl_image_impeller.h",
"dl_vertices_geometry.cc",
"dl_vertices_geometry.h",
"image_filter.cc",
"image_filter.h",
"nine_patch_converter.cc",
"nine_patch_converter.h",
"paint.cc",
"paint.h",
]
public_deps = [
":skia_conversions",
"../aiks",
"//flutter/display_list",
"//flutter/fml",
"//flutter/impeller/entity",
"//flutter/impeller/typographer/backends/skia:typographer_skia_backend",
"//flutter/skia",
]
@@ -102,11 +114,11 @@ template("display_list_unittests_component") {
}
display_list_unittests_component("display_list_unittests") {
deps = [ "//flutter/impeller/aiks:aiks_unittests" ]
deps = [ "//flutter/impeller/display_list:aiks_unittests" ]
}
display_list_unittests_component("display_list_unittests_golden") {
deps = [ "//flutter/impeller/aiks:aiks_unittests_golden" ]
deps = [ "//flutter/impeller/display_list:aiks_unittests_golden" ]
defines = [
"IMPELLER_GOLDEN_TESTS",
"IMPELLER_ENABLE_VALIDATION=1",
@@ -123,3 +135,68 @@ impeller_component("skia_conversions_unittests") {
"//flutter/testing:testing_lib",
]
}
impeller_component("aiks_playground") {
testonly = true
sources = [
"aiks_playground.cc",
"aiks_playground.h",
]
deps = [
":display_list",
"../playground:playground_test",
"//flutter/display_list",
"//flutter/impeller/display_list:display_list",
]
public_deps = [
"//flutter/impeller/typographer/backends/skia:typographer_skia_backend",
]
}
template("aiks_unittests_component") {
target_name = invoker.target_name
predefined_sources = [
"aiks_unittests.cc",
"aiks_unittests.h",
]
additional_sources = []
if (defined(invoker.sources)) {
additional_sources = invoker.sources
}
impeller_component(target_name) {
testonly = true
if (defined(invoker.defines)) {
defines = invoker.defines
} else {
defines = []
}
defines += [ "_USE_MATH_DEFINES" ]
sources = predefined_sources + additional_sources
deps = [
":aiks_playground",
":display_list",
"//flutter/impeller/geometry:geometry_asserts",
"//flutter/impeller/golden_tests:golden_playground_test",
"//flutter/impeller/playground:playground_test",
"//flutter/impeller/typographer/backends/stb:typographer_stb_backend",
"//flutter/testing:testing_lib",
"//flutter/third_party/txt",
]
if (defined(invoker.public_configs)) {
public_configs = invoker.public_configs
}
}
}
aiks_unittests_component("aiks_unittests") {
sources = [ "canvas_unittests.cc" ]
}
aiks_unittests_component("aiks_unittests_golden") {
defines = [
"IMPELLER_GOLDEN_TESTS",
"IMPELLER_ENABLE_VALIDATION=1",
]
}

View File

@@ -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 "impeller/aiks/aiks_context.h"
#include "impeller/display_list/aiks_context.h"
#include "impeller/typographer/typographer_context.h"

View File

@@ -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_IMPELLER_AIKS_AIKS_CONTEXT_H_
#define FLUTTER_IMPELLER_AIKS_AIKS_CONTEXT_H_
#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_AIKS_CONTEXT_H_
#define FLUTTER_IMPELLER_DISPLAY_LIST_AIKS_CONTEXT_H_
#include <memory>
@@ -54,4 +54,4 @@ class AiksContext {
} // namespace impeller
#endif // FLUTTER_IMPELLER_AIKS_AIKS_CONTEXT_H_
#endif // FLUTTER_IMPELLER_DISPLAY_LIST_AIKS_CONTEXT_H_

View File

@@ -3,7 +3,7 @@
// found in the LICENSE file.
#include "display_list/dl_sampling_options.h"
#include "flutter/impeller/aiks/aiks_unittests.h"
#include "flutter/impeller/display_list/aiks_unittests.h"
#include "flutter/display_list/dl_blend_mode.h"
#include "flutter/display_list/dl_builder.h"

View File

@@ -9,7 +9,7 @@
#include "display_list/effects/dl_color_source.h"
#include "display_list/effects/dl_image_filter.h"
#include "display_list/effects/dl_mask_filter.h"
#include "flutter/impeller/aiks/aiks_unittests.h"
#include "flutter/impeller/display_list/aiks_unittests.h"
#include "flutter/display_list/dl_blend_mode.h"
#include "flutter/display_list/dl_builder.h"

View File

@@ -10,7 +10,7 @@
#include "display_list/effects/dl_color_filter.h"
#include "display_list/effects/dl_color_source.h"
#include "display_list/effects/dl_mask_filter.h"
#include "flutter/impeller/aiks/aiks_unittests.h"
#include "flutter/impeller/display_list/aiks_unittests.h"
#include "flutter/display_list/dl_blend_mode.h"
#include "flutter/display_list/dl_builder.h"
@@ -18,7 +18,7 @@
#include "flutter/display_list/dl_paint.h"
#include "flutter/impeller/display_list/dl_image_impeller.h"
#include "flutter/impeller/geometry/scalar.h"
#include "impeller/aiks/aiks_context.h"
#include "impeller/display_list/aiks_context.h"
#include "impeller/display_list/dl_dispatcher.h"
#include "impeller/playground/playground.h"
#include "impeller/playground/playground_test.h"

View File

@@ -13,7 +13,7 @@
#include "display_list/effects/dl_color_source.h"
#include "display_list/effects/dl_image_filter.h"
#include "display_list/effects/dl_mask_filter.h"
#include "flutter/impeller/aiks/aiks_unittests.h"
#include "flutter/impeller/display_list/aiks_unittests.h"
#include "gmock/gmock.h"
#include "impeller/display_list/dl_dispatcher.h"

View File

@@ -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/impeller/aiks/aiks_unittests.h"
#include "flutter/impeller/display_list/aiks_unittests.h"
#include "flutter/display_list/dl_blend_mode.h"
#include "flutter/display_list/dl_builder.h"

View File

@@ -8,7 +8,7 @@
#include "display_list/effects/dl_color_filter.h"
#include "display_list/effects/dl_color_source.h"
#include "display_list/effects/dl_mask_filter.h"
#include "flutter/impeller/aiks/aiks_unittests.h"
#include "flutter/impeller/display_list/aiks_unittests.h"
#include "flutter/display_list/dl_builder.h"
#include "flutter/display_list/dl_color.h"

View File

@@ -3,7 +3,7 @@
// found in the LICENSE file.
#include "display_list/dl_blend_mode.h"
#include "flutter/impeller/aiks/aiks_unittests.h"
#include "flutter/impeller/display_list/aiks_unittests.h"
#include "flutter/display_list/dl_builder.h"
#include "flutter/display_list/dl_color.h"

View File

@@ -6,7 +6,7 @@
#include "display_list/dl_tile_mode.h"
#include "display_list/effects/dl_color_source.h"
#include "display_list/effects/dl_mask_filter.h"
#include "flutter/impeller/aiks/aiks_unittests.h"
#include "flutter/impeller/display_list/aiks_unittests.h"
#include "flutter/display_list/dl_blend_mode.h"
#include "flutter/display_list/dl_builder.h"

View File

@@ -5,7 +5,7 @@
#include <memory>
#include "display_list/effects/dl_color_source.h"
#include "flutter/impeller/aiks/aiks_unittests.h"
#include "flutter/impeller/display_list/aiks_unittests.h"
#include "flutter/display_list/dl_builder.h"
#include "flutter/display_list/dl_paint.h"

View File

@@ -7,7 +7,7 @@
#include "display_list/dl_tile_mode.h"
#include "display_list/effects/dl_color_source.h"
#include "display_list/effects/dl_mask_filter.h"
#include "flutter/impeller/aiks/aiks_unittests.h"
#include "flutter/impeller/display_list/aiks_unittests.h"
#include "flutter/display_list/dl_builder.h"
#include "flutter/display_list/dl_color.h"

View File

@@ -10,7 +10,7 @@
#include "display_list/effects/dl_image_filter.h"
#include "display_list/geometry/dl_geometry_types.h"
#include "display_list/image/dl_image.h"
#include "flutter/impeller/aiks/aiks_unittests.h"
#include "flutter/impeller/display_list/aiks_unittests.h"
#include "flutter/display_list/dl_blend_mode.h"
#include "flutter/display_list/dl_builder.h"

View File

@@ -5,7 +5,7 @@
#include "display_list/dl_sampling_options.h"
#include "display_list/dl_tile_mode.h"
#include "display_list/dl_vertices.h"
#include "flutter/impeller/aiks/aiks_unittests.h"
#include "flutter/impeller/display_list/aiks_unittests.h"
#include "flutter/display_list/dl_blend_mode.h"
#include "flutter/display_list/dl_builder.h"

View File

@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/aiks/aiks_playground.h"
#include "impeller/display_list/aiks_playground.h"
#include <memory>
#include "impeller/aiks/aiks_context.h"
#include "impeller/display_list/aiks_context.h"
#include "impeller/display_list/dl_dispatcher.h"
#include "impeller/typographer/backends/skia/typographer_context_skia.h"
#include "impeller/typographer/typographer_context.h"

View File

@@ -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_IMPELLER_AIKS_AIKS_PLAYGROUND_H_
#define FLUTTER_IMPELLER_AIKS_AIKS_PLAYGROUND_H_
#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_AIKS_PLAYGROUND_H_
#define FLUTTER_IMPELLER_DISPLAY_LIST_AIKS_PLAYGROUND_H_
#include "flutter/display_list/display_list.h"
#include "impeller/aiks/aiks_context.h"
#include "impeller/display_list/aiks_context.h"
#include "impeller/playground/playground_test.h"
#include "impeller/typographer/typographer_context.h"
#include "third_party/imgui/imgui.h"
@@ -44,4 +44,4 @@ class AiksPlayground : public PlaygroundTest {
} // namespace impeller
#endif // FLUTTER_IMPELLER_AIKS_AIKS_PLAYGROUND_H_
#endif // FLUTTER_IMPELLER_DISPLAY_LIST_AIKS_PLAYGROUND_H_

View File

@@ -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/impeller/aiks/aiks_unittests.h"
#include "flutter/impeller/display_list/aiks_unittests.h"
#include "flutter/testing/testing.h"
#include "gtest/gtest.h"

View File

@@ -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_IMPELLER_AIKS_AIKS_UNITTESTS_H_
#define FLUTTER_IMPELLER_AIKS_AIKS_UNITTESTS_H_
#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_AIKS_UNITTESTS_H_
#define FLUTTER_IMPELLER_DISPLAY_LIST_AIKS_UNITTESTS_H_
#include "impeller/aiks/aiks_playground.h"
#include "impeller/display_list/aiks_playground.h"
#include "impeller/golden_tests/golden_playground_test.h"
namespace impeller {
@@ -20,4 +20,4 @@ using AiksTest = AiksPlayground;
} // namespace testing
} // namespace impeller
#endif // FLUTTER_IMPELLER_AIKS_AIKS_UNITTESTS_H_
#endif // FLUTTER_IMPELLER_DISPLAY_LIST_AIKS_UNITTESTS_H_

View File

@@ -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 "impeller/aiks/canvas.h"
#include "impeller/display_list/canvas.h"
#include <memory>
#include <optional>
@@ -10,8 +10,8 @@
#include "flutter/fml/logging.h"
#include "flutter/fml/trace_event.h"
#include "impeller/aiks/color_source.h"
#include "impeller/aiks/image_filter.h"
#include "impeller/display_list/color_source.h"
#include "impeller/display_list/image_filter.h"
#include "impeller/entity/contents/atlas_contents.h"
#include "impeller/entity/contents/clip_contents.h"
#include "impeller/entity/contents/color_source_contents.h"

View File

@@ -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_IMPELLER_AIKS_CANVAS_H_
#define FLUTTER_IMPELLER_AIKS_CANVAS_H_
#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_CANVAS_H_
#define FLUTTER_IMPELLER_DISPLAY_LIST_CANVAS_H_
#include <deque>
#include <functional>
@@ -11,9 +11,9 @@
#include <optional>
#include <vector>
#include "impeller/aiks/image_filter.h"
#include "impeller/aiks/paint.h"
#include "impeller/core/sampler_descriptor.h"
#include "impeller/display_list/image_filter.h"
#include "impeller/display_list/paint.h"
#include "impeller/entity/contents/atlas_contents.h"
#include "impeller/entity/entity.h"
#include "impeller/entity/entity_pass_clip_stack.h"
@@ -291,4 +291,4 @@ class Canvas {
} // namespace impeller
#endif // FLUTTER_IMPELLER_AIKS_CANVAS_H_
#endif // FLUTTER_IMPELLER_DISPLAY_LIST_CANVAS_H_

View File

@@ -3,9 +3,9 @@
// found in the LICENSE file.
#include "flutter/testing/testing.h"
#include "impeller/aiks/aiks_context.h"
#include "impeller/aiks/aiks_unittests.h"
#include "impeller/aiks/canvas.h"
#include "impeller/display_list/aiks_context.h"
#include "impeller/display_list/aiks_unittests.h"
#include "impeller/display_list/canvas.h"
#include "impeller/geometry/geometry_asserts.h"
#include "impeller/geometry/path_builder.h"

View File

@@ -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 "impeller/aiks/color_filter.h"
#include "impeller/display_list/color_filter.h"
#include <utility>
#include "impeller/entity/contents/filters/color_filter_contents.h"

View File

@@ -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_IMPELLER_AIKS_COLOR_FILTER_H_
#define FLUTTER_IMPELLER_AIKS_COLOR_FILTER_H_
#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_COLOR_FILTER_H_
#define FLUTTER_IMPELLER_DISPLAY_LIST_COLOR_FILTER_H_
#include "impeller/entity/contents/filters/color_filter_contents.h"
#include "impeller/geometry/color.h"
@@ -178,4 +178,4 @@ class ComposedColorFilter final : public ColorFilter {
} // namespace impeller
#endif // FLUTTER_IMPELLER_AIKS_COLOR_FILTER_H_
#endif // FLUTTER_IMPELLER_DISPLAY_LIST_COLOR_FILTER_H_

View File

@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/aiks/color_source.h"
#include "impeller/display_list/color_source.h"
#include <memory>
#include <variant>
#include <vector>
#include "impeller/aiks/paint.h"
#include "impeller/core/sampler_descriptor.h"
#include "impeller/display_list/paint.h"
#include "impeller/entity/contents/conical_gradient_contents.h"
#include "impeller/entity/contents/filters/color_filter_contents.h"
#include "impeller/entity/contents/linear_gradient_contents.h"

View File

@@ -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_IMPELLER_AIKS_COLOR_SOURCE_H_
#define FLUTTER_IMPELLER_AIKS_COLOR_SOURCE_H_
#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_COLOR_SOURCE_H_
#define FLUTTER_IMPELLER_DISPLAY_LIST_COLOR_SOURCE_H_
#include <functional>
#include <memory>
@@ -155,4 +155,4 @@ class ColorSource {
} // namespace impeller
#endif // FLUTTER_IMPELLER_AIKS_COLOR_SOURCE_H_
#endif // FLUTTER_IMPELLER_DISPLAY_LIST_COLOR_SOURCE_H_

View File

@@ -12,9 +12,9 @@
#include <vector>
#include "flutter/fml/logging.h"
#include "impeller/aiks/aiks_context.h"
#include "impeller/aiks/color_filter.h"
#include "impeller/core/formats.h"
#include "impeller/display_list/aiks_context.h"
#include "impeller/display_list/color_filter.h"
#include "impeller/display_list/dl_atlas_geometry.h"
#include "impeller/display_list/dl_vertices_geometry.h"
#include "impeller/display_list/nine_patch_converter.h"

View File

@@ -10,9 +10,9 @@
#include "flutter/display_list/geometry/dl_path.h"
#include "flutter/display_list/utils/dl_receiver_utils.h"
#include "fml/logging.h"
#include "impeller/aiks/aiks_context.h"
#include "impeller/aiks/canvas.h"
#include "impeller/aiks/paint.h"
#include "impeller/display_list/aiks_context.h"
#include "impeller/display_list/canvas.h"
#include "impeller/display_list/paint.h"
#include "impeller/entity/contents/content_context.h"
#include "impeller/geometry/rect.h"

View File

@@ -4,7 +4,7 @@
#include "impeller/display_list/dl_image_impeller.h"
#include "impeller/aiks/aiks_context.h"
#include "impeller/display_list/aiks_context.h"
#include "impeller/entity/contents/filters/filter_contents.h"
namespace impeller {

View File

@@ -5,7 +5,7 @@
#include "impeller/display_list/dl_playground.h"
#include "flutter/testing/testing.h"
#include "impeller/aiks/aiks_context.h"
#include "impeller/display_list/aiks_context.h"
#include "impeller/display_list/dl_dispatcher.h"
#include "impeller/display_list/dl_image_impeller.h"
#include "impeller/typographer/backends/skia/typographer_context_skia.h"

View File

@@ -18,7 +18,7 @@
#include "flutter/display_list/effects/dl_mask_filter.h"
#include "flutter/testing/testing.h"
#include "gtest/gtest.h"
#include "impeller/aiks/aiks_context.h"
#include "impeller/display_list/aiks_context.h"
#include "impeller/display_list/dl_dispatcher.h"
#include "impeller/display_list/dl_image_impeller.h"
#include "impeller/display_list/dl_playground.h"

View File

@@ -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 "impeller/aiks/image_filter.h"
#include "impeller/display_list/image_filter.h"
#include "impeller/entity/contents/filters/color_filter_contents.h"
#include "impeller/entity/contents/filters/filter_contents.h"
#include "impeller/entity/contents/filters/inputs/filter_input.h"

View File

@@ -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_IMPELLER_AIKS_IMAGE_FILTER_H_
#define FLUTTER_IMPELLER_AIKS_IMAGE_FILTER_H_
#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_IMAGE_FILTER_H_
#define FLUTTER_IMPELLER_DISPLAY_LIST_IMAGE_FILTER_H_
#include "impeller/aiks/color_filter.h"
#include "impeller/core/sampler_descriptor.h"
#include "impeller/display_list/color_filter.h"
#include "impeller/entity/contents/filters/filter_contents.h"
#include "impeller/entity/entity.h"
#include "impeller/geometry/matrix.h"
@@ -235,4 +235,4 @@ class LocalMatrixImageFilter : public ImageFilter {
} // namespace impeller
#endif // FLUTTER_IMPELLER_AIKS_IMAGE_FILTER_H_
#endif // FLUTTER_IMPELLER_DISPLAY_LIST_IMAGE_FILTER_H_

View File

@@ -7,9 +7,9 @@
#include <memory>
#include "impeller/aiks/canvas.h"
#include "impeller/aiks/paint.h"
#include "impeller/core/sampler_descriptor.h"
#include "impeller/display_list/canvas.h"
#include "impeller/display_list/paint.h"
namespace impeller {

View File

@@ -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 "impeller/aiks/paint.h"
#include "impeller/display_list/paint.h"
#include <memory>

View File

@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_AIKS_PAINT_H_
#define FLUTTER_IMPELLER_AIKS_PAINT_H_
#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_PAINT_H_
#define FLUTTER_IMPELLER_DISPLAY_LIST_PAINT_H_
#include <memory>
#include "impeller/aiks/color_filter.h"
#include "impeller/aiks/color_source.h"
#include "impeller/aiks/image_filter.h"
#include "impeller/display_list/color_filter.h"
#include "impeller/display_list/color_source.h"
#include "impeller/display_list/image_filter.h"
#include "impeller/entity/contents/contents.h"
#include "impeller/entity/contents/filters/color_filter_contents.h"
#include "impeller/entity/contents/filters/filter_contents.h"
@@ -125,4 +125,4 @@ struct Paint {
} // namespace impeller
#endif // FLUTTER_IMPELLER_AIKS_PAINT_H_
#endif // FLUTTER_IMPELLER_DISPLAY_LIST_PAINT_H_

View File

@@ -15,7 +15,6 @@ impeller_component("golden_playground_test") {
":screenshot",
"//flutter/display_list",
"//flutter/fml",
"//flutter/impeller/aiks",
"//flutter/impeller/display_list:display_list",
"//flutter/impeller/playground",
"//flutter/impeller/typographer/backends/skia:typographer_skia_backend",
@@ -68,7 +67,6 @@ if (is_mac) {
deps = [
":screenshot",
"//flutter/display_list",
"//flutter/impeller/aiks",
"//flutter/impeller/display_list",
"//flutter/impeller/playground",
"//flutter/impeller/renderer/backend/metal:metal",
@@ -90,8 +88,8 @@ if (is_mac) {
":digest",
":metal_screenshot",
"//flutter/display_list",
"//flutter/impeller/aiks",
"//flutter/impeller/aiks:aiks_unittests_golden",
"//flutter/impeller/display_list",
"//flutter/impeller/display_list:aiks_unittests_golden",
"//flutter/impeller/display_list:display_list_unittests_golden",
"//flutter/impeller/fixtures",
"//flutter/third_party/angle:libEGL",

View File

@@ -9,7 +9,7 @@
#include "flutter/display_list/display_list.h"
#include "flutter/display_list/image/dl_image.h"
#include "flutter/impeller/aiks/aiks_context.h"
#include "flutter/impeller/display_list/aiks_context.h"
#include "flutter/impeller/golden_tests/screenshot.h"
#include "flutter/impeller/playground/playground.h"
#include "flutter/impeller/renderer/render_target.h"

View File

@@ -14,7 +14,7 @@
#include "flutter/impeller/golden_tests/vulkan_screenshotter.h"
#include "flutter/third_party/abseil-cpp/absl/base/no_destructor.h"
#include "fml/closure.h"
#include "impeller/aiks/aiks_context.h"
#include "impeller/display_list/aiks_context.h"
#include "impeller/display_list/dl_dispatcher.h"
#include "impeller/display_list/dl_image_impeller.h"
#include "impeller/typographer/backends/skia/typographer_context_skia.h"

View File

@@ -12,7 +12,7 @@
#include "display_list/dl_paint.h"
#include "display_list/effects/dl_color_source.h"
#include "flutter/fml/platform/darwin/scoped_nsautorelease_pool.h"
#include "impeller/aiks/aiks_context.h"
#include "impeller/display_list/aiks_context.h"
#include "impeller/display_list/dl_dispatcher.h" // nogncheck
#include "impeller/golden_tests/golden_digest.h"
#include "impeller/golden_tests/metal_screenshot.h"

View File

@@ -8,7 +8,7 @@
#include "flutter/impeller/golden_tests/metal_screenshot.h"
#include "flutter/impeller/golden_tests/screenshotter.h"
#include "flutter/impeller/playground/playground_impl.h"
#include "impeller/aiks/aiks_context.h"
#include "impeller/display_list/aiks_context.h"
namespace impeller {
namespace testing {

View File

@@ -7,7 +7,7 @@
#include "flutter/impeller/golden_tests/screenshot.h"
#include "flutter/impeller/playground/playground_impl.h"
#include "impeller/aiks/aiks_context.h"
#include "impeller/display_list/aiks_context.h"
namespace impeller {
namespace testing {

View File

@@ -7,7 +7,7 @@
#include <functional>
#include "impeller/aiks/aiks_context.h"
#include "impeller/display_list/aiks_context.h"
#include "impeller/renderer/context.h"
#include "impeller/toolkit/interop/impeller.h"
#include "impeller/toolkit/interop/object.h"

View File

@@ -4,8 +4,8 @@
#include "impeller/toolkit/interop/surface.h"
#include "impeller/aiks/aiks_context.h"
#include "impeller/base/validation.h"
#include "impeller/display_list/aiks_context.h"
#include "impeller/display_list/dl_dispatcher.h"
#include "impeller/renderer/backend/gles/surface_gles.h"
#include "impeller/toolkit/interop/formats.h"

View File

@@ -38,8 +38,8 @@
#include "third_party/skia/include/gpu/ganesh/SkSurfaceGanesh.h"
#if IMPELLER_SUPPORTS_RENDERING
#include "impeller/aiks/aiks_context.h" // nogncheck
#include "impeller/core/formats.h" // nogncheck
#include "impeller/display_list/aiks_context.h" // nogncheck
#include "impeller/display_list/dl_dispatcher.h" // nogncheck
#endif

View File

@@ -25,9 +25,9 @@
#include "flutter/fml/time/time_delta.h"
#include "flutter/fml/time/time_point.h"
#if IMPELLER_SUPPORTS_RENDERING
#include "impeller/aiks/aiks_context.h" // nogncheck
#include "impeller/core/formats.h" // nogncheck
#include "impeller/renderer/context.h" // nogncheck
#include "impeller/core/formats.h" // nogncheck
#include "impeller/display_list/aiks_context.h" // nogncheck
#include "impeller/renderer/context.h" // nogncheck
#include "impeller/typographer/backends/skia/typographer_context_skia.h" // nogncheck
#endif // IMPELLER_SUPPORTS_RENDERING
#include "flutter/lib/ui/snapshot_delegate.h"

View File

@@ -9,7 +9,7 @@
#include "flutter/flow/surface.h"
#include "flutter/fml/macros.h"
#include "flutter/fml/memory/weak_ptr.h"
#include "flutter/impeller/aiks/aiks_context.h"
#include "flutter/impeller/display_list/aiks_context.h"
#include "flutter/impeller/renderer/context.h"
#include "flutter/shell/gpu/gpu_surface_gl_delegate.h"

View File

@@ -10,7 +10,7 @@
#include "flutter/flow/surface.h"
#include "flutter/fml/macros.h"
#include "flutter/fml/platform/darwin/scoped_nsobject.h"
#include "flutter/impeller/aiks/aiks_context.h"
#include "flutter/impeller/display_list/aiks_context.h"
#include "flutter/impeller/renderer/backend/metal/context_mtl.h"
#include "flutter/shell/gpu/gpu_surface_metal_delegate.h"
#include "third_party/skia/include/gpu/ganesh/mtl/GrMtlTypes.h"

View File

@@ -9,7 +9,7 @@
#include "flutter/flow/surface.h"
#include "flutter/fml/macros.h"
#include "flutter/fml/memory/weak_ptr.h"
#include "flutter/impeller/aiks/aiks_context.h"
#include "flutter/impeller/display_list/aiks_context.h"
#include "flutter/impeller/renderer/context.h"
#include "flutter/shell/gpu/gpu_surface_vulkan_delegate.h"

View File

@@ -10,7 +10,7 @@
#include "flutter/common/graphics/texture.h"
#include "flutter/display_list/image/dl_image.h"
#include "flutter/impeller/aiks/aiks_context.h"
#include "flutter/impeller/display_list/aiks_context.h"
#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterTexture.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkImage.h"

View File

@@ -4,8 +4,8 @@
#import "flutter/shell/platform/darwin/graphics/FlutterDarwinExternalTextureMetal.h"
#include "flutter/display_list/image/dl_image.h"
#include "impeller/aiks/aiks_context.h"
#include "impeller/base/validation.h"
#include "impeller/display_list/aiks_context.h"
#include "impeller/display_list/dl_image_impeller.h"
#include "impeller/renderer/backend/metal/texture_mtl.h"
#include "third_party/skia/include/core/SkColorSpace.h"

View File

@@ -20,7 +20,7 @@
#include "flutter/shell/platform/embedder/embedder_external_texture_metal.h"
#include "flutter/testing/autoreleasepool_test.h"
#include "flutter/testing/testing.h"
#include "impeller/aiks/aiks_context.h" // nogncheck
#include "impeller/display_list/aiks_context.h" // nogncheck
#include "impeller/entity/mtl/entity_shaders.h" // nogncheck
#include "impeller/entity/mtl/framebuffer_blend_shaders.h" // nogncheck
#include "impeller/entity/mtl/modern_shaders.h" // nogncheck

View File

@@ -8,7 +8,7 @@
#include "flutter/common/graphics/texture.h"
#include "flutter/fml/macros.h"
#include "flutter/shell/platform/embedder/embedder.h"
#include "impeller/aiks/aiks_context.h"
#include "impeller/display_list/aiks_context.h"
#include "third_party/skia/include/core/SkImage.h"
#include "third_party/skia/include/core/SkSize.h"