Skip to content

Commit 2678b56

Browse files
committed
Bump Flutter Engine to head.
Fixes breakages from: * flutter/engine#47080 * flutter/engine#47247 * flutter/engine#47278
1 parent 25002cd commit 2678b56

File tree

5 files changed

+29
-24
lines changed

5 files changed

+29
-24
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/libtess2.cmake)
112112
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/flatbuffers.cmake)
113113
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/fml.cmake)
114114
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/impeller_base.cmake)
115-
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/impeller_blobcat.cmake)
115+
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/impeller_shader_archive.cmake)
116116
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/impeller_core.cmake)
117117
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/impeller_geometry.cmake)
118118
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/impeller_renderer.cmake)

cmake/impeller_renderer.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ target_include_directories(impeller_renderer
5252

5353
target_link_libraries(impeller_renderer
5454
PUBLIC
55-
fml impeller_base impeller_blobcat impeller_geometry)
55+
fml impeller_base impeller_shader_archive impeller_geometry)
5656
target_include_directories(impeller_renderer
5757
PUBLIC
5858
$<BUILD_INTERFACE:${FLUTTER_INCLUDE_DIR}> # For includes starting with "flutter/"
Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,58 +2,63 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5-
set(IMPELLER_BLOBCAT_DIR ${FLUTTER_ENGINE_DIR}/impeller/blobcat
6-
CACHE STRING "Location of the Impeller blobcat sources.")
5+
set(IMPELLER_SHADER_ARCHIVE_DIR ${FLUTTER_ENGINE_DIR}/impeller/shader_archive
6+
CACHE STRING "Location of the Impeller shader_archive sources.")
77

8-
file(GLOB BLOBCAT_SOURCES ${IMPELLER_BLOBCAT_DIR}/*.cc)
9-
list(FILTER BLOBCAT_SOURCES EXCLUDE REGEX ".*_unittests?\\.cc$")
10-
list(REMOVE_ITEM BLOBCAT_SOURCES "${IMPELLER_BLOBCAT_DIR}/blobcat_main.cc")
8+
file(GLOB SHADER_ARCHIVE_SOURCES ${IMPELLER_SHADER_ARCHIVE_DIR}/*.cc)
9+
list(FILTER SHADER_ARCHIVE_SOURCES EXCLUDE REGEX ".*_unittests?\\.cc$")
10+
list(REMOVE_ITEM SHADER_ARCHIVE_SOURCES "${IMPELLER_SHADER_ARCHIVE_DIR}/shader_archive_main.cc")
1111

12-
add_library(impeller_blobcat STATIC ${BLOBCAT_SOURCES})
12+
add_library(impeller_shader_archive STATIC ${SHADER_ARCHIVE_SOURCES})
1313

1414
flatbuffers_schema(
15-
TARGET impeller_blobcat
16-
INPUT ${IMPELLER_BLOBCAT_DIR}/blob.fbs
17-
OUTPUT_DIR ${IMPELLER_GENERATED_DIR}/impeller/blobcat)
15+
TARGET impeller_shader_archive
16+
INPUT ${IMPELLER_SHADER_ARCHIVE_DIR}/shader_archive.fbs
17+
OUTPUT_DIR ${IMPELLER_GENERATED_DIR}/impeller/shader_archive)
1818

19-
target_include_directories(impeller_blobcat
19+
flatbuffers_schema(
20+
TARGET impeller_shader_archive
21+
INPUT ${IMPELLER_SHADER_ARCHIVE_DIR}/multi_arch_shader_archive.fbs
22+
OUTPUT_DIR ${IMPELLER_GENERATED_DIR}/impeller/shader_archive)
23+
24+
target_include_directories(impeller_shader_archive
2025
PUBLIC
2126
$<BUILD_INTERFACE:${FLUTTER_INCLUDE_DIR}> # For includes starting with "flutter/"
2227
$<BUILD_INTERFACE:${FLUTTER_ENGINE_DIR}> # For includes starting with "impeller/"
2328
$<BUILD_INTERFACE:${IMPELLER_GENERATED_DIR}>) # For generated flatbuffer schemas
24-
target_link_libraries(impeller_blobcat PUBLIC fml impeller_base)
29+
target_link_libraries(impeller_shader_archive PUBLIC fml impeller_base)
2530

26-
add_executable(blobcat "${IMPELLER_BLOBCAT_DIR}/blobcat_main.cc")
27-
target_include_directories(blobcat
31+
add_executable(shader_archive "${IMPELLER_SHADER_ARCHIVE_DIR}/shader_archive_main.cc")
32+
target_include_directories(shader_archive
2833
PUBLIC
2934
$<BUILD_INTERFACE:${FLUTTER_INCLUDE_DIR}> # For includes starting with "flutter/"
3035
$<BUILD_INTERFACE:${FLUTTER_ENGINE_DIR}>) # For includes starting with "impeller/"
31-
target_link_libraries(blobcat PUBLIC impeller_blobcat)
36+
target_link_libraries(shader_archive PUBLIC impeller_shader_archive)
3237

33-
# blobcat(OUTPUT filename INPUTS filename;filename)
34-
function(blobcat)
38+
# shader_archive(OUTPUT filename INPUTS filename;filename)
39+
function(shader_archive)
3540
cmake_parse_arguments(ARG "" "OUTPUT" "INPUTS" ${ARGN})
36-
blobcat_parse(CLI
41+
shader_archive_parse(CLI
3742
OUTPUT ${ARG_OUTPUT} INPUTS ${ARG_INPUTS} ${ARG_UNPARSED_ARGUMENTS})
3843

3944
get_filename_component(OUTPUT_DIR "${ARG_OUTPUT}" ABSOLUTE)
4045
get_filename_component(OUTPUT_DIR "${OUTPUT_DIR}" DIRECTORY)
4146

4247
add_custom_command(
4348
COMMAND ${CMAKE_COMMAND} -E make_directory "${OUTPUT_DIR}"
44-
COMMAND "$<TARGET_FILE:blobcat>" ${CLI}
49+
COMMAND "$<TARGET_FILE:shader_archive>" ${CLI}
4550
DEPENDS ${ARG_INPUTS}
4651
OUTPUT ${ARG_OUTPUT}
4752
COMMENT "Building blob ${ARG_OUTPUT}"
4853
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
4954
endfunction()
5055

51-
# blobcat_parse(
56+
# shader_archive_parse(
5257
# cli_out
5358
# OUTPUT filename
5459
# INPUTS filename;filename
5560
# )
56-
function(blobcat_parse CLI_OUT)
61+
function(shader_archive_parse CLI_OUT)
5762
cmake_parse_arguments(ARG "" "OUTPUT" "INPUTS" ${ARGN})
5863
set(CLI "")
5964

cmake/impellerc.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function(add_gles_shader_library)
6464
list(APPEND BLOB_FILES ${ARG_OUTPUT_DIR}/${INPUT_FILENAME}.gles)
6565
endforeach()
6666

67-
blobcat(
67+
shader_archive(
6868
OUTPUT ${ARG_OUTPUT_DIR}/${ARG_NAME}_gles.blob
6969
INPUTS ${BLOB_FILES})
7070

third_party/flutter

Submodule flutter updated 785 files

0 commit comments

Comments
 (0)