LibWeb/WebGL: Make Context::activate() non-virtual

This method is only relevant for AccelGfx so no reason to keep it
virtual.
This commit is contained in:
Aliaksandr Kalenik 2024-01-21 13:44:08 +01:00 committed by Andreas Kling
parent 475cef8afd
commit 215931daac
Notes: sideshowbarker 2024-07-17 02:55:44 +09:00
2 changed files with 1 additions and 7 deletions

View file

@ -20,7 +20,7 @@ namespace Web::WebGL {
#ifdef HAS_ACCELERATED_GRAPHICS
class AccelGfxContext : public OpenGLContext {
public:
virtual void activate() override
void activate()
{
m_context->activate();
}
@ -172,11 +172,6 @@ private:
#ifdef AK_OS_SERENITY
class LibGLContext : public OpenGLContext {
public:
virtual void activate() override
{
GL::make_context_current(m_context);
}
virtual void present(Gfx::Bitmap&) override
{
m_context->present();

View file

@ -15,7 +15,6 @@ class OpenGLContext {
public:
static OwnPtr<OpenGLContext> create(Gfx::Bitmap&);
virtual void activate() = 0;
virtual void present(Gfx::Bitmap&) = 0;
void clear_buffer_to_default_values();