зеркало из https://github.com/mozilla/pjs.git
Bug 696636 - move GetData to the beginning so it's always called first - r=mattwoodrow
This commit is contained in:
Родитель
69cc11fdf5
Коммит
56c7ad1c4a
|
@ -283,6 +283,8 @@ GfxInfo::GetFeatureStatusImpl(PRInt32 aFeature,
|
|||
OperatingSystem* aOS /* = nsnull */)
|
||||
|
||||
{
|
||||
GetData();
|
||||
|
||||
NS_ENSURE_ARG_POINTER(aStatus);
|
||||
*aStatus = nsIGfxInfo::FEATURE_STATUS_UNKNOWN;
|
||||
aSuggestedDriverVersion.SetIsVoid(true);
|
||||
|
@ -310,7 +312,6 @@ GfxInfo::GetFeatureStatusImpl(PRInt32 aFeature,
|
|||
if (aFeature == nsIGfxInfo::FEATURE_OPENGL_LAYERS ||
|
||||
aFeature == nsIGfxInfo::FEATURE_WEBGL_OPENGL ||
|
||||
aFeature == nsIGfxInfo::FEATURE_WEBGL_MSAA) {
|
||||
GetData();
|
||||
|
||||
// Disable OpenGL layers when we don't have texture_from_pixmap because it regresses performance.
|
||||
if (aFeature == nsIGfxInfo::FEATURE_OPENGL_LAYERS && !mHasTextureFromPixmap) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче