Skip to content

Commit

Permalink
Buffer, FileSystem, FontLoader, and C-API changes, various fixes.
Browse files Browse the repository at this point in the history
The Buffer API has been modified to support memory-mapped files via
user-defined destructor callbacks. This allows us to reduce runtime
memory usage and improve performance.

The FileSystem and FontLoader API has been modified to take
advantage of the new Buffer API changes.

The C API has been updated to support the latest C++ API.

Add new WindowListener events to AppCore API to allow users to
provide custom-handling of mouse, keyboard, and scroll events.

Fix rendering issue in the CPU renderer on macOS/Linux incorrectly
drawing certain geometry with RGBA instead of BGRA.

Fix a crash on YouTube homepage (JavaScriptCore null pointer deref)

Fix memory leak in FileURLLoader.

Modify WebCore's run loop scheduler behavior to always service all
pending tasks to avoid large backlogs when under heavy load.

The FileSystem an
  • Loading branch information
adamjs committed Apr 19, 2022
1 parent 32decc7 commit 36726f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Deps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ elseif (PORT MATCHES "UltralightWin")
endif ()
endif ()

set(ULTRALIGHTCORE_REV "aa5aeef7")
set(WEBCORE_REV "fcd0b784")
set(ULTRALIGHT_REV "f95886c3")
set(APPCORE_REV "a0111c9")
set(ULTRALIGHTCORE_REV "97e3a482")
set(WEBCORE_REV "c735e9d0")
set(ULTRALIGHT_REV "121303a4")
set(APPCORE_REV "3f80e38")

set(ULTRALIGHTCORE_DIR "${CMAKE_CURRENT_BINARY_DIR}/deps/UltralightCore/")
set(WEBCORE_DIR "${CMAKE_CURRENT_BINARY_DIR}/deps/WebCore/")
Expand Down
7 changes: 1 addition & 6 deletions samples/Sample 1 - Render to PNG/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ add_executable(${APP_NAME} "main.cpp")
add_custom_command(TARGET ${APP_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory "${ULTRALIGHT_BINARY_DIR}" $<TARGET_FILE_DIR:${APP_NAME}>)

# Set the assets path to "/assets" or "/../Resources/assets" on macOS
if (APPLE)
set(ASSETS_PATH "$<TARGET_FILE_DIR:${APP_NAME}>/../Resources/assets")
else ()
set(ASSETS_PATH "$<TARGET_FILE_DIR:${APP_NAME}>/assets")
endif ()
set(ASSETS_PATH "$<TARGET_FILE_DIR:${APP_NAME}>/assets")

# Copy resources to assets directory
add_custom_command(TARGET ${APP_NAME} POST_BUILD
Expand Down

0 comments on commit 36726f7

Please sign in to comment.