1. 12 Jan, 2023 1 commit
  2. 09 Jan, 2023 1 commit
    • Igor Demin's avatar
      Linux fix deadlock when we close a window (#646) · dc985814
      Igor Demin authored
      Deadlock:
      [AWTThread] awtLock -> SkiaLayer.dispose -> LinuxOpenGLRedrawer.dispose -> we are here -> lockLinuxDrawingSurface -> awtLock
      [refreshRate updater thread] -> lockLinuxDrawingSurface -> we are here -> awtLock
      
      We moved refreshRate to another thread, and check it only once a second, because it is not fast. I mistakenly thought in the past, that it is very slow on Linux (2ms), but it appears it was because of the awtLock itself. In the AWT thread it take 0.2ms, that is also slow for just one functions, but bearable, if it called only once every second.
      
      Alternative is to subscribe to the native XRRScreenChangeNotifyEvent: https://www.x.org/releases/current/doc/man/man3/Xrandr.3.xhtml. But it seems X window system can have only one event queue associated with the window, and we already have one inside AWT, and we don't have access to it.
      dc985814
  3. 21 Dec, 2022 1 commit
  4. 20 Dec, 2022 1 commit
  5. 14 Dec, 2022 2 commits
  6. 13 Dec, 2022 1 commit
  7. 09 Dec, 2022 2 commits
  8. 08 Dec, 2022 1 commit
  9. 02 Dec, 2022 1 commit
  10. 29 Nov, 2022 1 commit
  11. 27 Nov, 2022 1 commit
  12. 24 Nov, 2022 1 commit
    • Alexey Tsvetkov's avatar
      Gradle fixes (#621) · 7430638e
      Alexey Tsvetkov authored
      * Set up max heap size and max metadata size for root project
      
      We use the root project with Github Actions workflows.
      However, the max metadata and the max heap size
      are only set up in ./skiko subproject,
      so they are not picked up in Github workflows,
      which may lead to tests crashing on Linux
      
      * Update Gradle for root and ./skiko
      7430638e
  13. 21 Nov, 2022 1 commit
    • Pavel's avatar
      Adapter exclusion (#617) · 0048f343
      Pavel authored
      * allow to specify platform for adapter exclusion
      
      * allow patterns in `not-supported-adapters.list`
      
      * FL-16182 disable opengl on virgl
      
      * encode list of excluded videocards in kotlin instead of resource file
      
      by some reason loading resource file took about ~30-40ms
      0048f343
  14. 15 Nov, 2022 1 commit
  15. 08 Nov, 2022 1 commit
  16. 07 Nov, 2022 2 commits
  17. 04 Nov, 2022 1 commit
    • Igor Demin's avatar
      Windows ARM support (#610) · 87d5fb99
      Igor Demin authored
      * Windows ARM support
      
      Add skia.arch Gradle property.
      
      We set it to `arm64` on CI to build a version for Windows ARM
      
      * Fix build
      87d5fb99
  18. 31 Oct, 2022 2 commits
    • Alexey Tsvetkov's avatar
      Exclude bytecode from skiko-awt-runtime-*.jar files (#608) · f2266923
      Alexey Tsvetkov authored
      * Exclude bytecode from skiko-awt-runtime-*.jar files
      
      Previously, `skiko-awt.jar` and all of `skiko-awt-runtime-*.jar` files
      contained the same bytecode. However, this led to duplication
      of bytecode in Compose projects:
      * `skiko-awt.jar` is a necessary API dependency of Compose/Desktop, which means
      it is a runtime dependency as well;
      * `skiko-awt-runtime-*.jar` is a necessary RUNTIME dependency of any Compose/Desktop project.
      
      Thus, both `skiko-awt.jar` and `skiko-awt-runtime-*.jar` ended up in a runtime classpath of
      any Compose/Desktop project, so the same classes were present in the runtime classpath twice.
      This increased a final application image by approximately 1.1 Mb. Also, it led to
      excessive ProGuard warnings, e.g. https://github.com/JetBrains/compose-jb/issues/2393
      
      This change excludes bytecode from `skiko-awt-runtime-*.jar` artifacts, and adds
      Maven dependency `skiko-awt-runtime-*.jar` -> `skiko-awt.jar`, so
      many existing Maven/Gradle usages of `skiko-awt-runtime-*.jar` will continue to work.
      f2266923
    • dima.avdeev's avatar
      iOS copy/paste text menu (#609) · 673c85d1
      dima.avdeev authored
      673c85d1
  19. 26 Oct, 2022 1 commit
  20. 14 Oct, 2022 1 commit
  21. 06 Oct, 2022 1 commit
  22. 29 Sep, 2022 1 commit
  23. 23 Sep, 2022 1 commit
  24. 21 Sep, 2022 1 commit
  25. 16 Sep, 2022 1 commit
  26. 09 Sep, 2022 1 commit
  27. 07 Sep, 2022 1 commit
  28. 06 Sep, 2022 1 commit
  29. 05 Sep, 2022 1 commit
  30. 02 Sep, 2022 2 commits
  31. 01 Sep, 2022 1 commit
    • Pavel's avatar
      Fix hang in text shaping (#585) · 5a24df69
      Pavel authored
      * check preconditions of `FontRunIterator::consume` as it's in SkShaper.cpp; remove code duplication
      
      * check `ubrk_following` return value, otherwise it may lead to hanging in `FontRunIterator::consume`
      5a24df69
  32. 25 Aug, 2022 1 commit
    • Igor Demin's avatar
      Fix getting text from clipboard (#579) · 78c2b52e
      Igor Demin authored
      * Fix getting text from clipboard
      
      Sometimes, internal AWT implementation can't properly parse the clipboard data.
      
      getData's docs say that it can throw IOException
      
      * Return UnsupportedFlavorException
      78c2b52e
  33. 22 Aug, 2022 3 commits