rendering correctly with backing window but some issues re pixel density, scroll & foregrounding on start

This commit is contained in:
Nick Fisher
2023-10-25 17:52:37 +11:00
parent 8cea106b30
commit 0928d9d273
13 changed files with 404 additions and 376 deletions

View File

@@ -23,21 +23,19 @@ list(APPEND PLUGIN_SOURCES
)
set(USE_ANGLE FALSE)
if(!USE_ANGLE)
set(WGL_USE_BACKING_WINDOW TRUE)
endif()
if(USE_ANGLE)
add_compile_definitions(USE_ANGLE)
list(APPEND PLUGIN_SOURCES "flutter_angle_texture.cpp" "egl_context.cpp" )
else()
list(APPEND PLUGIN_SOURCES "wgl_context.cpp")
if(WGL_USE_BACKING_WINDOW)
list(APPEND PLUGIN_SOURCES "utils.cc" "backing_window.cpp")
else()
list(APPEND PLUGIN_SOURCES "opengl_texture_buffer.cpp")
endif()
add_compile_definitions(WGL_USE_BACKING_WINDOW)
list(APPEND PLUGIN_SOURCES "wgl_context.cpp" "opengl_texture_buffer.cpp" "backing_window.cpp")
# if(WGL_USE_BACKING_WINDOW)
# list(APPEND PLUGIN_SOURCES )
# else()
# list(APPEND PLUGIN_SOURCES )
# endif()
endif()
# Define the plugin library target. Its name must not be changed (see comment