Skip to content

Commit

Permalink
Retroplayer: RenderBufferPoolGBM: remove bpp
Browse files Browse the repository at this point in the history
gbm does not need to know the bpp of the format
  • Loading branch information
lrusak committed Aug 9, 2018
1 parent 13b8f5b commit af3ee37
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
4 changes: 1 addition & 3 deletions xbmc/cores/RetroPlayer/buffers/RenderBufferGBM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ using namespace KODI;
using namespace RETRO;

CRenderBufferGBM::CRenderBufferGBM(CRenderContext &context,
int fourcc,
int bpp) :
int fourcc) :
m_context(context),
m_fourcc(fourcc),
m_bpp(bpp),
m_egl(new CEGLImage(static_cast<CWinSystemGbmEGLContext*>(CServiceBroker::GetWinSystem())->GetEGLDisplay())),
m_bo(new CGBMBufferObject(fourcc))
{
Expand Down
4 changes: 1 addition & 3 deletions xbmc/cores/RetroPlayer/buffers/RenderBufferGBM.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ namespace RETRO
{
public:
CRenderBufferGBM(CRenderContext &context,
int fourcc,
int bpp);
int fourcc);
~CRenderBufferGBM() override;

// implementation of IRenderBuffer via CRenderBufferSysMem
Expand All @@ -46,7 +45,6 @@ namespace RETRO
// Construction parameters
CRenderContext &m_context;
const int m_fourcc = 0;
const int m_bpp;

const GLenum m_textureTarget = GL_TEXTURE_EXTERNAL_OES;
GLuint m_textureId = 0;
Expand Down
5 changes: 1 addition & 4 deletions xbmc/cores/RetroPlayer/buffers/RenderBufferPoolGBM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ bool CRenderBufferPoolGBM::IsCompatible(const CRenderVideoSettings &renderSettin
IRenderBuffer *CRenderBufferPoolGBM::CreateRenderBuffer(void *header /* = nullptr */)
{
return new CRenderBufferGBM(m_context,
m_fourcc,
m_bpp);
m_fourcc);
}

bool CRenderBufferPoolGBM::ConfigureInternal()
Expand All @@ -43,14 +42,12 @@ bool CRenderBufferPoolGBM::ConfigureInternal()
case AV_PIX_FMT_0RGB32:
{
m_fourcc = DRM_FORMAT_ARGB8888;
m_bpp = sizeof(uint32_t);
return true;
}
case AV_PIX_FMT_RGB555:
case AV_PIX_FMT_RGB565:
{
m_fourcc = DRM_FORMAT_RGB565;
m_bpp = sizeof(uint16_t);
return true;
}
default:
Expand Down
1 change: 0 additions & 1 deletion xbmc/cores/RetroPlayer/buffers/RenderBufferPoolGBM.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ namespace RETRO

// Configuration parameters
int m_fourcc = 0;
int m_bpp = 0;
};
}
}

0 comments on commit af3ee37

Please sign in to comment.