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

Commit 3b58a4d

Browse files
authored
[Impeller] Start a more generic stroke tessellator for path (#40690)
[Impeller] Start a more generic stroke tessellator for path
1 parent 0b4286c commit 3b58a4d

File tree

145 files changed

+1150
-318
lines changed

Some content is hidden

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

145 files changed

+1150
-318
lines changed

ci/licenses_golden/licenses_flutter

Lines changed: 56 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,30 @@ ORIGIN: ../../../flutter/impeller/compiler/uniform_sorter.cc + ../../../flutter/
11061106
ORIGIN: ../../../flutter/impeller/compiler/uniform_sorter.h + ../../../flutter/LICENSE
11071107
ORIGIN: ../../../flutter/impeller/compiler/utilities.cc + ../../../flutter/LICENSE
11081108
ORIGIN: ../../../flutter/impeller/compiler/utilities.h + ../../../flutter/LICENSE
1109+
ORIGIN: ../../../flutter/impeller/core/allocator.cc + ../../../flutter/LICENSE
1110+
ORIGIN: ../../../flutter/impeller/core/allocator.h + ../../../flutter/LICENSE
1111+
ORIGIN: ../../../flutter/impeller/core/buffer.cc + ../../../flutter/LICENSE
1112+
ORIGIN: ../../../flutter/impeller/core/buffer.h + ../../../flutter/LICENSE
1113+
ORIGIN: ../../../flutter/impeller/core/buffer_view.cc + ../../../flutter/LICENSE
1114+
ORIGIN: ../../../flutter/impeller/core/buffer_view.h + ../../../flutter/LICENSE
1115+
ORIGIN: ../../../flutter/impeller/core/device_buffer.cc + ../../../flutter/LICENSE
1116+
ORIGIN: ../../../flutter/impeller/core/device_buffer.h + ../../../flutter/LICENSE
1117+
ORIGIN: ../../../flutter/impeller/core/device_buffer_descriptor.cc + ../../../flutter/LICENSE
1118+
ORIGIN: ../../../flutter/impeller/core/device_buffer_descriptor.h + ../../../flutter/LICENSE
1119+
ORIGIN: ../../../flutter/impeller/core/formats.cc + ../../../flutter/LICENSE
1120+
ORIGIN: ../../../flutter/impeller/core/formats.h + ../../../flutter/LICENSE
1121+
ORIGIN: ../../../flutter/impeller/core/host_buffer.cc + ../../../flutter/LICENSE
1122+
ORIGIN: ../../../flutter/impeller/core/host_buffer.h + ../../../flutter/LICENSE
1123+
ORIGIN: ../../../flutter/impeller/core/platform.cc + ../../../flutter/LICENSE
1124+
ORIGIN: ../../../flutter/impeller/core/platform.h + ../../../flutter/LICENSE
1125+
ORIGIN: ../../../flutter/impeller/core/range.cc + ../../../flutter/LICENSE
1126+
ORIGIN: ../../../flutter/impeller/core/range.h + ../../../flutter/LICENSE
1127+
ORIGIN: ../../../flutter/impeller/core/texture.cc + ../../../flutter/LICENSE
1128+
ORIGIN: ../../../flutter/impeller/core/texture.h + ../../../flutter/LICENSE
1129+
ORIGIN: ../../../flutter/impeller/core/texture_descriptor.cc + ../../../flutter/LICENSE
1130+
ORIGIN: ../../../flutter/impeller/core/texture_descriptor.h + ../../../flutter/LICENSE
1131+
ORIGIN: ../../../flutter/impeller/core/vertex_buffer.cc + ../../../flutter/LICENSE
1132+
ORIGIN: ../../../flutter/impeller/core/vertex_buffer.h + ../../../flutter/LICENSE
11091133
ORIGIN: ../../../flutter/impeller/display_list/display_list_dispatcher.cc + ../../../flutter/LICENSE
11101134
ORIGIN: ../../../flutter/impeller/display_list/display_list_dispatcher.h + ../../../flutter/LICENSE
11111135
ORIGIN: ../../../flutter/impeller/display_list/display_list_image_impeller.cc + ../../../flutter/LICENSE
@@ -1337,8 +1361,6 @@ ORIGIN: ../../../flutter/impeller/image/compressed_image.cc + ../../../flutter/L
13371361
ORIGIN: ../../../flutter/impeller/image/compressed_image.h + ../../../flutter/LICENSE
13381362
ORIGIN: ../../../flutter/impeller/image/decompressed_image.cc + ../../../flutter/LICENSE
13391363
ORIGIN: ../../../flutter/impeller/image/decompressed_image.h + ../../../flutter/LICENSE
1340-
ORIGIN: ../../../flutter/impeller/renderer/allocator.cc + ../../../flutter/LICENSE
1341-
ORIGIN: ../../../flutter/impeller/renderer/allocator.h + ../../../flutter/LICENSE
13421364
ORIGIN: ../../../flutter/impeller/renderer/backend/gles/allocator_gles.cc + ../../../flutter/LICENSE
13431365
ORIGIN: ../../../flutter/impeller/renderer/backend/gles/allocator_gles.h + ../../../flutter/LICENSE
13441366
ORIGIN: ../../../flutter/impeller/renderer/backend/gles/blit_command_gles.cc + ../../../flutter/LICENSE
@@ -1487,10 +1509,6 @@ ORIGIN: ../../../flutter/impeller/renderer/blit_command.cc + ../../../flutter/LI
14871509
ORIGIN: ../../../flutter/impeller/renderer/blit_command.h + ../../../flutter/LICENSE
14881510
ORIGIN: ../../../flutter/impeller/renderer/blit_pass.cc + ../../../flutter/LICENSE
14891511
ORIGIN: ../../../flutter/impeller/renderer/blit_pass.h + ../../../flutter/LICENSE
1490-
ORIGIN: ../../../flutter/impeller/renderer/buffer.cc + ../../../flutter/LICENSE
1491-
ORIGIN: ../../../flutter/impeller/renderer/buffer.h + ../../../flutter/LICENSE
1492-
ORIGIN: ../../../flutter/impeller/renderer/buffer_view.cc + ../../../flutter/LICENSE
1493-
ORIGIN: ../../../flutter/impeller/renderer/buffer_view.h + ../../../flutter/LICENSE
14941512
ORIGIN: ../../../flutter/impeller/renderer/capabilities.cc + ../../../flutter/LICENSE
14951513
ORIGIN: ../../../flutter/impeller/renderer/capabilities.h + ../../../flutter/LICENSE
14961514
ORIGIN: ../../../flutter/impeller/renderer/command.cc + ../../../flutter/LICENSE
@@ -1505,18 +1523,13 @@ ORIGIN: ../../../flutter/impeller/renderer/compute_pipeline_builder.cc + ../../.
15051523
ORIGIN: ../../../flutter/impeller/renderer/compute_pipeline_builder.h + ../../../flutter/LICENSE
15061524
ORIGIN: ../../../flutter/impeller/renderer/compute_pipeline_descriptor.cc + ../../../flutter/LICENSE
15071525
ORIGIN: ../../../flutter/impeller/renderer/compute_pipeline_descriptor.h + ../../../flutter/LICENSE
1526+
ORIGIN: ../../../flutter/impeller/renderer/compute_tessellator.cc + ../../../flutter/LICENSE
1527+
ORIGIN: ../../../flutter/impeller/renderer/compute_tessellator.h + ../../../flutter/LICENSE
15081528
ORIGIN: ../../../flutter/impeller/renderer/context.cc + ../../../flutter/LICENSE
15091529
ORIGIN: ../../../flutter/impeller/renderer/context.h + ../../../flutter/LICENSE
1510-
ORIGIN: ../../../flutter/impeller/renderer/device_buffer.cc + ../../../flutter/LICENSE
1511-
ORIGIN: ../../../flutter/impeller/renderer/device_buffer.h + ../../../flutter/LICENSE
1512-
ORIGIN: ../../../flutter/impeller/renderer/device_buffer_descriptor.cc + ../../../flutter/LICENSE
1513-
ORIGIN: ../../../flutter/impeller/renderer/device_buffer_descriptor.h + ../../../flutter/LICENSE
1514-
ORIGIN: ../../../flutter/impeller/renderer/formats.cc + ../../../flutter/LICENSE
1515-
ORIGIN: ../../../flutter/impeller/renderer/formats.h + ../../../flutter/LICENSE
15161530
ORIGIN: ../../../flutter/impeller/renderer/gpu_tracer.cc + ../../../flutter/LICENSE
15171531
ORIGIN: ../../../flutter/impeller/renderer/gpu_tracer.h + ../../../flutter/LICENSE
1518-
ORIGIN: ../../../flutter/impeller/renderer/host_buffer.cc + ../../../flutter/LICENSE
1519-
ORIGIN: ../../../flutter/impeller/renderer/host_buffer.h + ../../../flutter/LICENSE
1532+
ORIGIN: ../../../flutter/impeller/renderer/path_polyline.comp + ../../../flutter/LICENSE
15201533
ORIGIN: ../../../flutter/impeller/renderer/pipeline.cc + ../../../flutter/LICENSE
15211534
ORIGIN: ../../../flutter/impeller/renderer/pipeline.h + ../../../flutter/LICENSE
15221535
ORIGIN: ../../../flutter/impeller/renderer/pipeline_builder.cc + ../../../flutter/LICENSE
@@ -1525,10 +1538,6 @@ ORIGIN: ../../../flutter/impeller/renderer/pipeline_descriptor.cc + ../../../flu
15251538
ORIGIN: ../../../flutter/impeller/renderer/pipeline_descriptor.h + ../../../flutter/LICENSE
15261539
ORIGIN: ../../../flutter/impeller/renderer/pipeline_library.cc + ../../../flutter/LICENSE
15271540
ORIGIN: ../../../flutter/impeller/renderer/pipeline_library.h + ../../../flutter/LICENSE
1528-
ORIGIN: ../../../flutter/impeller/renderer/platform.cc + ../../../flutter/LICENSE
1529-
ORIGIN: ../../../flutter/impeller/renderer/platform.h + ../../../flutter/LICENSE
1530-
ORIGIN: ../../../flutter/impeller/renderer/range.cc + ../../../flutter/LICENSE
1531-
ORIGIN: ../../../flutter/impeller/renderer/range.h + ../../../flutter/LICENSE
15321541
ORIGIN: ../../../flutter/impeller/renderer/render_pass.cc + ../../../flutter/LICENSE
15331542
ORIGIN: ../../../flutter/impeller/renderer/render_pass.h + ../../../flutter/LICENSE
15341543
ORIGIN: ../../../flutter/impeller/renderer/render_target.cc + ../../../flutter/LICENSE
@@ -1551,14 +1560,9 @@ ORIGIN: ../../../flutter/impeller/renderer/shader_types.cc + ../../../flutter/LI
15511560
ORIGIN: ../../../flutter/impeller/renderer/shader_types.h + ../../../flutter/LICENSE
15521561
ORIGIN: ../../../flutter/impeller/renderer/snapshot.cc + ../../../flutter/LICENSE
15531562
ORIGIN: ../../../flutter/impeller/renderer/snapshot.h + ../../../flutter/LICENSE
1563+
ORIGIN: ../../../flutter/impeller/renderer/stroke.comp + ../../../flutter/LICENSE
15541564
ORIGIN: ../../../flutter/impeller/renderer/surface.cc + ../../../flutter/LICENSE
15551565
ORIGIN: ../../../flutter/impeller/renderer/surface.h + ../../../flutter/LICENSE
1556-
ORIGIN: ../../../flutter/impeller/renderer/texture.cc + ../../../flutter/LICENSE
1557-
ORIGIN: ../../../flutter/impeller/renderer/texture.h + ../../../flutter/LICENSE
1558-
ORIGIN: ../../../flutter/impeller/renderer/texture_descriptor.cc + ../../../flutter/LICENSE
1559-
ORIGIN: ../../../flutter/impeller/renderer/texture_descriptor.h + ../../../flutter/LICENSE
1560-
ORIGIN: ../../../flutter/impeller/renderer/vertex_buffer.cc + ../../../flutter/LICENSE
1561-
ORIGIN: ../../../flutter/impeller/renderer/vertex_buffer.h + ../../../flutter/LICENSE
15621566
ORIGIN: ../../../flutter/impeller/renderer/vertex_buffer_builder.cc + ../../../flutter/LICENSE
15631567
ORIGIN: ../../../flutter/impeller/renderer/vertex_buffer_builder.h + ../../../flutter/LICENSE
15641568
ORIGIN: ../../../flutter/impeller/renderer/vertex_descriptor.cc + ../../../flutter/LICENSE
@@ -3673,6 +3677,30 @@ FILE: ../../../flutter/impeller/compiler/uniform_sorter.cc
36733677
FILE: ../../../flutter/impeller/compiler/uniform_sorter.h
36743678
FILE: ../../../flutter/impeller/compiler/utilities.cc
36753679
FILE: ../../../flutter/impeller/compiler/utilities.h
3680+
FILE: ../../../flutter/impeller/core/allocator.cc
3681+
FILE: ../../../flutter/impeller/core/allocator.h
3682+
FILE: ../../../flutter/impeller/core/buffer.cc
3683+
FILE: ../../../flutter/impeller/core/buffer.h
3684+
FILE: ../../../flutter/impeller/core/buffer_view.cc
3685+
FILE: ../../../flutter/impeller/core/buffer_view.h
3686+
FILE: ../../../flutter/impeller/core/device_buffer.cc
3687+
FILE: ../../../flutter/impeller/core/device_buffer.h
3688+
FILE: ../../../flutter/impeller/core/device_buffer_descriptor.cc
3689+
FILE: ../../../flutter/impeller/core/device_buffer_descriptor.h
3690+
FILE: ../../../flutter/impeller/core/formats.cc
3691+
FILE: ../../../flutter/impeller/core/formats.h
3692+
FILE: ../../../flutter/impeller/core/host_buffer.cc
3693+
FILE: ../../../flutter/impeller/core/host_buffer.h
3694+
FILE: ../../../flutter/impeller/core/platform.cc
3695+
FILE: ../../../flutter/impeller/core/platform.h
3696+
FILE: ../../../flutter/impeller/core/range.cc
3697+
FILE: ../../../flutter/impeller/core/range.h
3698+
FILE: ../../../flutter/impeller/core/texture.cc
3699+
FILE: ../../../flutter/impeller/core/texture.h
3700+
FILE: ../../../flutter/impeller/core/texture_descriptor.cc
3701+
FILE: ../../../flutter/impeller/core/texture_descriptor.h
3702+
FILE: ../../../flutter/impeller/core/vertex_buffer.cc
3703+
FILE: ../../../flutter/impeller/core/vertex_buffer.h
36763704
FILE: ../../../flutter/impeller/display_list/display_list_dispatcher.cc
36773705
FILE: ../../../flutter/impeller/display_list/display_list_dispatcher.h
36783706
FILE: ../../../flutter/impeller/display_list/display_list_image_impeller.cc
@@ -3904,8 +3932,6 @@ FILE: ../../../flutter/impeller/image/compressed_image.cc
39043932
FILE: ../../../flutter/impeller/image/compressed_image.h
39053933
FILE: ../../../flutter/impeller/image/decompressed_image.cc
39063934
FILE: ../../../flutter/impeller/image/decompressed_image.h
3907-
FILE: ../../../flutter/impeller/renderer/allocator.cc
3908-
FILE: ../../../flutter/impeller/renderer/allocator.h
39093935
FILE: ../../../flutter/impeller/renderer/backend/gles/allocator_gles.cc
39103936
FILE: ../../../flutter/impeller/renderer/backend/gles/allocator_gles.h
39113937
FILE: ../../../flutter/impeller/renderer/backend/gles/blit_command_gles.cc
@@ -4054,10 +4080,6 @@ FILE: ../../../flutter/impeller/renderer/blit_command.cc
40544080
FILE: ../../../flutter/impeller/renderer/blit_command.h
40554081
FILE: ../../../flutter/impeller/renderer/blit_pass.cc
40564082
FILE: ../../../flutter/impeller/renderer/blit_pass.h
4057-
FILE: ../../../flutter/impeller/renderer/buffer.cc
4058-
FILE: ../../../flutter/impeller/renderer/buffer.h
4059-
FILE: ../../../flutter/impeller/renderer/buffer_view.cc
4060-
FILE: ../../../flutter/impeller/renderer/buffer_view.h
40614083
FILE: ../../../flutter/impeller/renderer/capabilities.cc
40624084
FILE: ../../../flutter/impeller/renderer/capabilities.h
40634085
FILE: ../../../flutter/impeller/renderer/command.cc
@@ -4072,18 +4094,13 @@ FILE: ../../../flutter/impeller/renderer/compute_pipeline_builder.cc
40724094
FILE: ../../../flutter/impeller/renderer/compute_pipeline_builder.h
40734095
FILE: ../../../flutter/impeller/renderer/compute_pipeline_descriptor.cc
40744096
FILE: ../../../flutter/impeller/renderer/compute_pipeline_descriptor.h
4097+
FILE: ../../../flutter/impeller/renderer/compute_tessellator.cc
4098+
FILE: ../../../flutter/impeller/renderer/compute_tessellator.h
40754099
FILE: ../../../flutter/impeller/renderer/context.cc
40764100
FILE: ../../../flutter/impeller/renderer/context.h
4077-
FILE: ../../../flutter/impeller/renderer/device_buffer.cc
4078-
FILE: ../../../flutter/impeller/renderer/device_buffer.h
4079-
FILE: ../../../flutter/impeller/renderer/device_buffer_descriptor.cc
4080-
FILE: ../../../flutter/impeller/renderer/device_buffer_descriptor.h
4081-
FILE: ../../../flutter/impeller/renderer/formats.cc
4082-
FILE: ../../../flutter/impeller/renderer/formats.h
40834101
FILE: ../../../flutter/impeller/renderer/gpu_tracer.cc
40844102
FILE: ../../../flutter/impeller/renderer/gpu_tracer.h
4085-
FILE: ../../../flutter/impeller/renderer/host_buffer.cc
4086-
FILE: ../../../flutter/impeller/renderer/host_buffer.h
4103+
FILE: ../../../flutter/impeller/renderer/path_polyline.comp
40874104
FILE: ../../../flutter/impeller/renderer/pipeline.cc
40884105
FILE: ../../../flutter/impeller/renderer/pipeline.h
40894106
FILE: ../../../flutter/impeller/renderer/pipeline_builder.cc
@@ -4092,10 +4109,6 @@ FILE: ../../../flutter/impeller/renderer/pipeline_descriptor.cc
40924109
FILE: ../../../flutter/impeller/renderer/pipeline_descriptor.h
40934110
FILE: ../../../flutter/impeller/renderer/pipeline_library.cc
40944111
FILE: ../../../flutter/impeller/renderer/pipeline_library.h
4095-
FILE: ../../../flutter/impeller/renderer/platform.cc
4096-
FILE: ../../../flutter/impeller/renderer/platform.h
4097-
FILE: ../../../flutter/impeller/renderer/range.cc
4098-
FILE: ../../../flutter/impeller/renderer/range.h
40994112
FILE: ../../../flutter/impeller/renderer/render_pass.cc
41004113
FILE: ../../../flutter/impeller/renderer/render_pass.h
41014114
FILE: ../../../flutter/impeller/renderer/render_target.cc
@@ -4118,14 +4131,9 @@ FILE: ../../../flutter/impeller/renderer/shader_types.cc
41184131
FILE: ../../../flutter/impeller/renderer/shader_types.h
41194132
FILE: ../../../flutter/impeller/renderer/snapshot.cc
41204133
FILE: ../../../flutter/impeller/renderer/snapshot.h
4134+
FILE: ../../../flutter/impeller/renderer/stroke.comp
41214135
FILE: ../../../flutter/impeller/renderer/surface.cc
41224136
FILE: ../../../flutter/impeller/renderer/surface.h
4123-
FILE: ../../../flutter/impeller/renderer/texture.cc
4124-
FILE: ../../../flutter/impeller/renderer/texture.h
4125-
FILE: ../../../flutter/impeller/renderer/texture_descriptor.cc
4126-
FILE: ../../../flutter/impeller/renderer/texture_descriptor.h
4127-
FILE: ../../../flutter/impeller/renderer/vertex_buffer.cc
4128-
FILE: ../../../flutter/impeller/renderer/vertex_buffer.h
41294137
FILE: ../../../flutter/impeller/renderer/vertex_buffer_builder.cc
41304138
FILE: ../../../flutter/impeller/renderer/vertex_buffer_builder.h
41314139
FILE: ../../../flutter/impeller/renderer/vertex_descriptor.cc

impeller/BUILD.gn

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ impeller_component("impeller_unittests") {
9191
"typographer:typographer_unittests",
9292
]
9393
}
94+
95+
if (impeller_enable_compute) {
96+
deps += [ "renderer:compute_tessellation_unittests" ]
97+
}
9498
}
9599

96100
if (impeller_supports_rendering) {

impeller/aiks/image.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <memory>
88

99
#include "flutter/fml/macros.h"
10-
#include "impeller/renderer/texture.h"
10+
#include "impeller/core/texture.h"
1111

1212
namespace impeller {
1313

impeller/compiler/code_gen_template.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ constexpr std::string_view kReflectionHeaderTemplate =
1616
{# Note: The nogncheck decorations are only to make GN not mad at the template#}
1717
{# this file is generated from. There are no GN rule violations in the generated#}
1818
{# file itself and the no-check declarations will be stripped in generated files.#}
19-
#include "impeller/renderer/buffer_view.h" {# // nogncheck #}
19+
#include "impeller/core/buffer_view.h" {# // nogncheck #}
2020
2121
#include "impeller/renderer/command.h" {# // nogncheck #}
2222
@@ -26,7 +26,7 @@ constexpr std::string_view kReflectionHeaderTemplate =
2626
2727
#include "impeller/renderer/shader_types.h" {# // nogncheck #}
2828
29-
#include "impeller/renderer/texture.h" {# // nogncheck #}
29+
#include "impeller/core/texture.h" {# // nogncheck #}
3030
3131
3232
namespace impeller {

impeller/compiler/compiler.cc

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ static CompilerBackend CreateMSLCompiler(const spirv_cross::ParsedIR& ir,
5757
sl_options.platform =
5858
TargetPlatformToMSLPlatform(source_options.target_platform);
5959
sl_options.msl_version = ParseMSLVersion(source_options.metal_version);
60+
sl_options.ios_use_simdgroup_functions =
61+
sl_options.is_ios() &&
62+
sl_options.msl_version >=
63+
spirv_cross::CompilerMSL::Options::make_msl_version(2, 4, 0);
6064
sl_options.use_framebuffer_fetch_subpasses = true;
6165
sl_compiler->set_msl_options(sl_options);
6266

@@ -108,6 +112,18 @@ static CompilerBackend CreateMSLCompiler(const spirv_cross::ParsedIR& ir,
108112
return CompilerBackend(sl_compiler);
109113
}
110114

115+
static CompilerBackend CreateVulkanCompiler(
116+
const spirv_cross::ParsedIR& ir,
117+
const SourceOptions& source_options) {
118+
auto gl_compiler = std::make_shared<spirv_cross::CompilerGLSL>(ir);
119+
spirv_cross::CompilerGLSL::Options sl_options;
120+
sl_options.vulkan_semantics = true;
121+
sl_options.vertex.fixup_clipspace = true;
122+
sl_options.force_zero_initialized_variables = true;
123+
gl_compiler->set_common_options(sl_options);
124+
return CompilerBackend(gl_compiler);
125+
}
126+
111127
static CompilerBackend CreateGLSLCompiler(const spirv_cross::ParsedIR& ir,
112128
const SourceOptions& source_options) {
113129
auto gl_compiler = std::make_shared<spirv_cross::CompilerGLSL>(ir);
@@ -162,9 +178,11 @@ static CompilerBackend CreateCompiler(const spirv_cross::ParsedIR& ir,
162178
case TargetPlatform::kMetalDesktop:
163179
case TargetPlatform::kMetalIOS:
164180
case TargetPlatform::kRuntimeStageMetal:
181+
compiler = CreateMSLCompiler(ir, source_options);
182+
break;
165183
case TargetPlatform::kVulkan:
166184
case TargetPlatform::kRuntimeStageVulkan:
167-
compiler = CreateMSLCompiler(ir, source_options);
185+
compiler = CreateVulkanCompiler(ir, source_options);
168186
break;
169187
case TargetPlatform::kUnknown:
170188
case TargetPlatform::kOpenGLES:

impeller/core/BUILD.gn

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright 2013 The Flutter Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
import("//flutter/impeller/tools/impeller.gni")
6+
7+
impeller_component("core") {
8+
sources = [
9+
"allocator.cc",
10+
"allocator.h",
11+
"buffer.cc",
12+
"buffer.h",
13+
"buffer_view.cc",
14+
"buffer_view.h",
15+
"device_buffer.cc",
16+
"device_buffer.h",
17+
"device_buffer_descriptor.cc",
18+
"device_buffer_descriptor.h",
19+
"formats.cc",
20+
"formats.h",
21+
"host_buffer.cc",
22+
"host_buffer.h",
23+
"platform.cc",
24+
"platform.h",
25+
"range.cc",
26+
"range.h",
27+
"texture.cc",
28+
"texture.h",
29+
"texture_descriptor.cc",
30+
"texture_descriptor.h",
31+
"vertex_buffer.cc",
32+
"vertex_buffer.h",
33+
]
34+
35+
deps = [
36+
"../base",
37+
"../geometry",
38+
"../image",
39+
"//flutter/fml",
40+
]
41+
}

impeller/renderer/allocator.cc renamed to impeller/core/allocator.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#include "impeller/renderer/allocator.h"
5+
#include "impeller/core/allocator.h"
66

77
#include "impeller/base/validation.h"
8-
#include "impeller/renderer/device_buffer.h"
9-
#include "impeller/renderer/range.h"
8+
#include "impeller/core/device_buffer.h"
9+
#include "impeller/core/range.h"
1010

1111
namespace impeller {
1212

impeller/renderer/allocator.h renamed to impeller/core/allocator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
#include "flutter/fml/macros.h"
1010
#include "flutter/fml/mapping.h"
11-
#include "impeller/renderer/device_buffer_descriptor.h"
12-
#include "impeller/renderer/texture_descriptor.h"
11+
#include "impeller/core/device_buffer_descriptor.h"
12+
#include "impeller/core/texture_descriptor.h"
1313

1414
namespace impeller {
1515

impeller/renderer/buffer.cc renamed to impeller/core/buffer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#include "impeller/renderer/buffer.h"
5+
#include "impeller/core/buffer.h"
66

77
namespace impeller {
88

File renamed without changes.

impeller/renderer/buffer_view.cc renamed to impeller/core/buffer_view.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#include "impeller/renderer/buffer_view.h"
5+
#include "impeller/core/buffer_view.h"
66

77
namespace impeller {
88

impeller/renderer/buffer_view.h renamed to impeller/core/buffer_view.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#pragma once
66

77
#include "flutter/fml/macros.h"
8-
#include "impeller/renderer/buffer.h"
9-
#include "impeller/renderer/range.h"
8+
#include "impeller/core/buffer.h"
9+
#include "impeller/core/range.h"
1010

1111
namespace impeller {
1212

0 commit comments

Comments
 (0)