Skip to content

Commit

Permalink
Remove TextureBridgeFallback
Browse files Browse the repository at this point in the history
  • Loading branch information
jnschulze committed Feb 17, 2024
1 parent 288d1dc commit 727f47c
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 734 deletions.
23 changes: 2 additions & 21 deletions windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,34 +45,15 @@ add_library(${PLUGIN_NAME} SHARED
"webview_host.cc"
"webview_bridge.cc"
"texture_bridge.cc"
"texture_bridge_gpu.cc"
"graphics_context.cc"
"util/direct3d11.interop.cc"
"util/rohelper.cc"
"util/string_converter.cc"
)

if(MSVC)
target_compile_options(${PLUGIN_NAME} PRIVATE "/await")
endif()

if(NOT FLUTTER_WEBVIEW_WINDOWS_USE_TEXTURE_FALLBACK)
message(STATUS "Building with D3D texture support.")
target_compile_definitions("${PLUGIN_NAME}" PRIVATE
HAVE_FLUTTER_D3D_TEXTURE
)
target_sources("${PLUGIN_NAME}" PRIVATE
"texture_bridge_gpu.cc"
)
else()
message(STATUS "Building with fallback PixelBuffer texture.")
target_sources("${PLUGIN_NAME}" PRIVATE
"texture_bridge_fallback.cc"
"util/cpuid/cpuinfo.cc"
)
# Enable AVX2 for pixel buffer conversions
if(MSVC)
target_compile_options(${PLUGIN_NAME} PRIVATE "/arch:AVX2" "/await")
endif()
target_compile_options(${PLUGIN_NAME} PRIVATE "/await")
endif()

apply_standard_settings(${PLUGIN_NAME})
Expand Down
135 changes: 0 additions & 135 deletions windows/texture_bridge_fallback.cc

This file was deleted.

27 changes: 0 additions & 27 deletions windows/texture_bridge_fallback.h

This file was deleted.

80 changes: 0 additions & 80 deletions windows/util/cpuid/cpuinfo.cc

This file was deleted.

105 changes: 0 additions & 105 deletions windows/util/cpuid/cpuinfo.h

This file was deleted.

Loading

0 comments on commit 727f47c

Please sign in to comment.