зеркало из https://github.com/mozilla/pjs.git
Bug 729438 - GetGLFrameBufferFormat need to be specified for maemo in Qt port. r=ajuma
This commit is contained in:
Родитель
fe6fa9e2c8
Коммит
ac1ed28e06
|
@ -3310,3 +3310,19 @@ nsWindow::UserActivity()
|
|||
mIdleService->ResetIdleTimeOut();
|
||||
}
|
||||
}
|
||||
|
||||
PRUint32
|
||||
nsWindow::GetGLFrameBufferFormat()
|
||||
{
|
||||
if (mLayerManager &&
|
||||
mLayerManager->GetBackendType() == LayerManager::LAYERS_OPENGL) {
|
||||
// On maemo the hardware fb has RGB format.
|
||||
#ifdef MOZ_PLATFORM_MAEMO
|
||||
return LOCAL_GL_RGB;
|
||||
#else
|
||||
return LOCAL_GL_RGBA;
|
||||
#endif
|
||||
}
|
||||
return LOCAL_GL_NONE;
|
||||
}
|
||||
|
||||
|
|
|
@ -229,6 +229,7 @@ public:
|
|||
NS_IMETHOD ReparentNativeWidget(nsIWidget* aNewParent);
|
||||
|
||||
QWidget* GetViewWidget();
|
||||
virtual PRUint32 GetGLFrameBufferFormat() MOZ_OVERRIDE;
|
||||
|
||||
protected:
|
||||
nsCOMPtr<nsIWidget> mParent;
|
||||
|
|
Загрузка…
Ссылка в новой задаче