mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
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:
parent
475cef8afd
commit
215931daac
Notes:
sideshowbarker
2024-07-17 02:55:44 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/215931daac Pull-request: https://github.com/SerenityOS/serenity/pull/22886 Issue: https://github.com/SerenityOS/serenity/issues/22879
2 changed files with 1 additions and 7 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue