mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Increase SkSurface's generation id when it's modified by WebGL
Skia is not aware of surface modifications done by WebGL, so we need to manually increase generation id whenver WebGL invokes a writing function.
This commit is contained in:
committed by
Alexander Kalenik
parent
e2e54dccc3
commit
46cbbda944
Notes:
github-actions[bot]
2024-12-03 22:37:09 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/46cbbda9445 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2688 Reviewed-by: https://github.com/ADKaster ✅
@@ -108,6 +108,11 @@ OwnPtr<OpenGLContext> OpenGLContext::create(NonnullRefPtr<Gfx::SkiaBackendContex
|
||||
#endif
|
||||
}
|
||||
|
||||
void OpenGLContext::notify_content_will_change()
|
||||
{
|
||||
m_painting_surface->notify_content_will_change();
|
||||
}
|
||||
|
||||
void OpenGLContext::clear_buffer_to_default_values()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user