mirror of https://github.com/PCSX2/pcsx2.git
gsdx ogl: mark OGL object as final
Give the compiler more devirtualization hint
This commit is contained in:
parent
decac5fd12
commit
b8a023d158
|
@ -114,7 +114,7 @@ public:
|
||||||
bool IsMaskEnable() { return m_depth_mask != GL_FALSE; }
|
bool IsMaskEnable() { return m_depth_mask != GL_FALSE; }
|
||||||
};
|
};
|
||||||
|
|
||||||
class GSDeviceOGL : public GSDevice
|
class GSDeviceOGL final : public GSDevice
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
__aligned(struct, 32) VSConstantBuffer
|
__aligned(struct, 32) VSConstantBuffer
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#include "GSTextureCacheOGL.h"
|
#include "GSTextureCacheOGL.h"
|
||||||
#include "GSVertexHW.h"
|
#include "GSVertexHW.h"
|
||||||
|
|
||||||
class GSRendererOGL : public GSRendererHW
|
class GSRendererOGL final : public GSRendererHW
|
||||||
{
|
{
|
||||||
enum PRIM_OVERLAP {
|
enum PRIM_OVERLAP {
|
||||||
PRIM_OVERLAP_UNKNOW,
|
PRIM_OVERLAP_UNKNOW,
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include "GSTextureCache.h"
|
#include "GSTextureCache.h"
|
||||||
#include "GSDeviceOGL.h"
|
#include "GSDeviceOGL.h"
|
||||||
|
|
||||||
class GSTextureCacheOGL : public GSTextureCache
|
class GSTextureCacheOGL final : public GSTextureCache
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
int Get8bitFormat() { return GL_R8;}
|
int Get8bitFormat() { return GL_R8;}
|
||||||
|
|
|
@ -38,7 +38,7 @@ namespace PboPool {
|
||||||
void Destroy();
|
void Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
class GSTextureOGL : public GSTexture
|
class GSTextureOGL final : public GSTexture
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
GLuint m_texture_id; // the texture id
|
GLuint m_texture_id; // the texture id
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <GL/glx.h>
|
#include <GL/glx.h>
|
||||||
|
|
||||||
class GSWndOGL : public GSWndGL
|
class GSWndOGL final : public GSWndGL
|
||||||
{
|
{
|
||||||
Window m_NativeWindow;
|
Window m_NativeWindow;
|
||||||
Display* m_NativeDisplay;
|
Display* m_NativeDisplay;
|
||||||
|
|
Loading…
Reference in New Issue