gsdx ogl: mark OGL object as final

Give the compiler more devirtualization hint
This commit is contained in:
Gregory Hainaut 2016-04-05 00:01:43 +02:00
parent decac5fd12
commit b8a023d158
5 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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,

View File

@ -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;}

View File

@ -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

View File

@ -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;