Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SkSurfaces only for rendering #67

Merged
merged 5 commits into from
Jan 21, 2022
Merged

Use SkSurfaces only for rendering #67

merged 5 commits into from
Jan 21, 2022

Conversation

joaodasilva
Copy link
Contributor

  • single GLFWwindow, no offscreen GLFWwindow contexts for canvas instances
  • removed SetCurrentContext; single GL context active all the time on main thread
  • all draws through Skia, including to framebuffer 0 (fixes Fix glClear not working on some drivers #35)
  • single call to clearRect makes the window transparent (fixes Transparent background for the canvas #50)
  • removed gl.cc and gl.h (GL texture drawing utilities)
  • removed --log and --child-log; logs enabled by default now
  • trigger requestAnimationFrames scheduled inside 'resize' events on same frame
  • save transforms stack across resizes (not just the most recent transform)
  • removed hacks to sync Skia to external GL calls
  • Updated canvas tests to run on 400x200. Some systems have a minimal window width larger than 200 on high DPI.

* single GLFWwindow, no offscreen GLFWwindow contexts for canvas instances
* removed SetCurrentContext; single GL context active all the time on main thread
* all draws through Skia, including to framebuffer 0
* single call to clearRect makes the window transparent (fixes #50)
* removed gl.cc and gl.h (GL texture drawing utilities)
* removed --log and --child-log; logs enabled by default now
* trigger requestAnimationFrames scheduled inside 'resize' events on same frame
* save transforms stack across resizes (not just the most recent transform)
* removed hacks to sync Skia to external GL calls
@joaodasilva joaodasilva merged commit 93fd8fe into main Jan 21, 2022
@joaodasilva joaodasilva deleted the surfaces branch January 21, 2022 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transparent background for the canvas Fix glClear not working on some drivers
1 participant