mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:47:35 +00:00
LibAccelGfx+LibWeb: Explicitly pass OpenGL context to Painter
Let's not assume there is one global OpenGL context because it might change once we will start creating >1 page inside single WebContent process or contexts for WebGL.
This commit is contained in:
parent
ed1ade0534
commit
161082e282
8 changed files with 25 additions and 20 deletions
|
@ -55,11 +55,12 @@ public:
|
|||
bool needs_update_immutable_bitmap_texture_cache() const override { return true; }
|
||||
void update_immutable_bitmap_texture_cache(HashMap<u32, Gfx::ImmutableBitmap const*>&) override;
|
||||
|
||||
PaintingCommandExecutorGPU(Gfx::Bitmap& bitmap);
|
||||
PaintingCommandExecutorGPU(AccelGfx::Context&, Gfx::Bitmap& bitmap);
|
||||
~PaintingCommandExecutorGPU() override;
|
||||
|
||||
private:
|
||||
Gfx::Bitmap& m_target_bitmap;
|
||||
AccelGfx::Context& m_context;
|
||||
|
||||
struct StackingContext {
|
||||
RefPtr<AccelGfx::Canvas> canvas;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue