Bug 703484 - Part 3: Fix android OMTC whitelist. r=ajuma

--HG--
extra : rebase_source : e16788c85616fa92bfe724266b60435b446e9124
This commit is contained in:
Marco Castelluccio 2012-05-30 14:56:56 -04:00
Родитель 8c545c33a9
Коммит 76944b6f7b
2 изменённых файлов: 11 добавлений и 6 удалений

Просмотреть файл

@ -255,14 +255,17 @@ GfxInfo::GetGfxDriverInfo()
/* The following entry, when uncommented, will allow us to whitelist a /* The following entry, when uncommented, will allow us to whitelist a
* specific device. See the long comment in GetFeatureStatusImpl for more * specific device. See the long comment in GetFeatureStatusImpl for more
* info. */ * info. */
// APPEND_TO_DRIVER_BLOCKLIST( DRIVER_OS_ALL, #ifdef MOZ_JAVA_COMPOSITOR
// my_vendor_id, my_device_id, APPEND_TO_DRIVER_BLOCKLIST2( DRIVER_OS_ALL,
// nsIGfxInfo::FEATURE_OPENGL_LAYERS, nsIGfxInfo::FEATURE_NO_INFO, (nsAString&) GfxDriverInfo::GetDeviceVendor(VendorAll), GfxDriverInfo::allDevices,
// DRIVER_LESS_THAN, GfxDriverInfo::allDevices ); nsIGfxInfo::FEATURE_OPENGL_LAYERS, nsIGfxInfo::FEATURE_NO_INFO,
DRIVER_COMPARISON_IGNORED, GfxDriverInfo::allDriverVersions );
#else
APPEND_TO_DRIVER_BLOCKLIST2( DRIVER_OS_ALL, APPEND_TO_DRIVER_BLOCKLIST2( DRIVER_OS_ALL,
(nsAString&) GfxDriverInfo::GetDeviceVendor(VendorAll), GfxDriverInfo::allDevices, (nsAString&) GfxDriverInfo::GetDeviceVendor(VendorAll), GfxDriverInfo::allDevices,
nsIGfxInfo::FEATURE_OPENGL_LAYERS, nsIGfxInfo::FEATURE_BLOCKED_DEVICE, nsIGfxInfo::FEATURE_OPENGL_LAYERS, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions ); DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions );
#endif
} }
return *mDriverInfo; return *mDriverInfo;
} }
@ -281,7 +284,7 @@ GfxInfo::GetFeatureStatusImpl(PRInt32 aFeature,
if (aOS) if (aOS)
*aOS = os; *aOS = os;
// Don't evaluate special cases when evaluating the downlaoded blocklist. // Don't evaluate special cases when evaluating the downloaded blocklist.
if (!aDriverInfo.Length()) { if (!aDriverInfo.Length()) {
if (aFeature == FEATURE_OPENGL_LAYERS) { if (aFeature == FEATURE_OPENGL_LAYERS) {
/* The following code is an old way to whitelist devices when we're ready. /* The following code is an old way to whitelist devices when we're ready.

Просмотреть файл

@ -689,6 +689,9 @@ nsWindow::GetLayerManager(PLayersChild*, LayersBackend, LayerManagerPersistence,
mLayerManager = CreateBasicLayerManager(); mLayerManager = CreateBasicLayerManager();
return mLayerManager; return mLayerManager;
} }
mUseAcceleratedRendering = GetShouldAccelerate();
#ifdef MOZ_JAVA_COMPOSITOR #ifdef MOZ_JAVA_COMPOSITOR
bool useCompositor = UseOffMainThreadCompositing(); bool useCompositor = UseOffMainThreadCompositing();
@ -703,7 +706,6 @@ nsWindow::GetLayerManager(PLayersChild*, LayersBackend, LayerManagerPersistence,
sFailedToCreateGLContext = true; sFailedToCreateGLContext = true;
} }
#endif #endif
mUseAcceleratedRendering = GetShouldAccelerate();
if (!mUseAcceleratedRendering || if (!mUseAcceleratedRendering ||
sFailedToCreateGLContext) sFailedToCreateGLContext)