mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 12:18:25 +00:00
LibWeb: Return ImmutableBitmap from PaintingSurface::create_snapshot()
This is a preparation for upcoming changes where ImmutableBitmap will own SkImage allowing Skia to cache GPU textures across repaints.
This commit is contained in:
committed by
Alexander Kalenik
parent
31bf40b659
commit
a2c33ea4e1
@@ -53,7 +53,7 @@ void WebGLRenderingContextBase::present()
|
||||
// FIXME: Is this the operation it means?
|
||||
m_context->gl_flush();
|
||||
|
||||
m_context->present(*canvas_element().surface()->create_snapshot());
|
||||
m_context->present(canvas_element().surface()->create_snapshot()->bitmap());
|
||||
|
||||
// "By default, after compositing the contents of the drawing buffer shall be cleared to their default values, as shown in the table above.
|
||||
// This default behavior can be changed by setting the preserveDrawingBuffer attribute of the WebGLContextAttributes object.
|
||||
|
||||
Reference in New Issue
Block a user