Skip to content

Conversation

@terrysahaidak
Copy link
Contributor

@terrysahaidak terrysahaidak commented Nov 20, 2024

This PR implements a very naїve chat interface that renders fully on UI-thread using Skia imperative canvas API.

The goal of this example is to help debug some of the problems that we face when developing complex applications with imperative API.

Features:

  • offscreen rendering (opaque canvas on Android)
  • rasterizing each message (rendering offscreen into textures)
  • dynamic background (changes based on scroll offset)
  • rendering only visible messages
  • update canvas texture only when something has changed
  • drawing
  • rendering images
Example
2024-11-20.16.56.54.mov

@wcandillon wcandillon merged commit 6d90f1f into Shopify:main Feb 6, 2025
1 check passed
@wcandillon
Copy link
Contributor

Thank you for this example :)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2025

🎉 This PR is included in version 1.11.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants