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; }
};
class GSDeviceOGL : public GSDevice
class GSDeviceOGL final : public GSDevice
{
public:
__aligned(struct, 32) VSConstantBuffer

View File

@ -27,7 +27,7 @@
#include "GSTextureCacheOGL.h"
#include "GSVertexHW.h"
class GSRendererOGL : public GSRendererHW
class GSRendererOGL final : public GSRendererHW
{
enum PRIM_OVERLAP {
PRIM_OVERLAP_UNKNOW,

View File

@ -25,7 +25,7 @@
#include "GSTextureCache.h"
#include "GSDeviceOGL.h"
class GSTextureCacheOGL : public GSTextureCache
class GSTextureCacheOGL final : public GSTextureCache
{
protected:
int Get8bitFormat() { return GL_R8;}

View File

@ -38,7 +38,7 @@ namespace PboPool {
void Destroy();
}
class GSTextureOGL : public GSTexture
class GSTextureOGL final : public GSTexture
{
private:
GLuint m_texture_id; // the texture id

View File

@ -25,7 +25,7 @@
#include <X11/Xlib.h>
#include <GL/glx.h>
class GSWndOGL : public GSWndGL
class GSWndOGL final : public GSWndGL
{
Window m_NativeWindow;
Display* m_NativeDisplay;