mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:28:11 +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
2 changed files with 1 additions and 7 deletions
|
@ -20,7 +20,7 @@ namespace Web::WebGL {
|
||||||
#ifdef HAS_ACCELERATED_GRAPHICS
|
#ifdef HAS_ACCELERATED_GRAPHICS
|
||||||
class AccelGfxContext : public OpenGLContext {
|
class AccelGfxContext : public OpenGLContext {
|
||||||
public:
|
public:
|
||||||
virtual void activate() override
|
void activate()
|
||||||
{
|
{
|
||||||
m_context->activate();
|
m_context->activate();
|
||||||
}
|
}
|
||||||
|
@ -172,11 +172,6 @@ private:
|
||||||
#ifdef AK_OS_SERENITY
|
#ifdef AK_OS_SERENITY
|
||||||
class LibGLContext : public OpenGLContext {
|
class LibGLContext : public OpenGLContext {
|
||||||
public:
|
public:
|
||||||
virtual void activate() override
|
|
||||||
{
|
|
||||||
GL::make_context_current(m_context);
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual void present(Gfx::Bitmap&) override
|
virtual void present(Gfx::Bitmap&) override
|
||||||
{
|
{
|
||||||
m_context->present();
|
m_context->present();
|
||||||
|
|
|
@ -15,7 +15,6 @@ class OpenGLContext {
|
||||||
public:
|
public:
|
||||||
static OwnPtr<OpenGLContext> create(Gfx::Bitmap&);
|
static OwnPtr<OpenGLContext> create(Gfx::Bitmap&);
|
||||||
|
|
||||||
virtual void activate() = 0;
|
|
||||||
virtual void present(Gfx::Bitmap&) = 0;
|
virtual void present(Gfx::Bitmap&) = 0;
|
||||||
void clear_buffer_to_default_values();
|
void clear_buffer_to_default_values();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue