mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 917496 - Disable GPUAdapterReporter because its values are frequently bogus. r=Hughman.
--HG-- extra : rebase_source : ae3bbbc142dfcf7101aaac94acc52e67e68e97fd
This commit is contained in:
parent
b75982ecc9
commit
fbfefcc32a
@ -6,6 +6,9 @@
|
||||
* Windows 8 RC SDK. The work for this file itself was based on the one in ProcessHacker at
|
||||
* http://processhacker.svn.sourceforge.net/viewvc/processhacker/2.x/trunk/plugins/ExtendedTools/d3dkmt.h?revision=4758&view=markup
|
||||
* For more details see Mozilla Bug 689870.
|
||||
* [Bug 917496 indicates that some of these structs may not match reality, and
|
||||
* therefore should not be trusted. See the reference to bug 917496 in
|
||||
* gfxWindowsPlatform.cpp.]
|
||||
*/
|
||||
|
||||
typedef struct _D3DKMTQS_COUNTER
|
||||
|
@ -385,13 +385,16 @@ gfxWindowsPlatform::gfxWindowsPlatform()
|
||||
|
||||
UpdateRenderMode();
|
||||
|
||||
mGPUAdapterReporter = new GPUAdapterReporter();
|
||||
NS_RegisterMemoryReporter(mGPUAdapterReporter);
|
||||
// This reporter is disabled because it frequently gives bogus values. See
|
||||
// bug 917496.
|
||||
//mGPUAdapterReporter = new GPUAdapterReporter();
|
||||
//NS_RegisterMemoryReporter(mGPUAdapterReporter);
|
||||
mGPUAdapterReporter = nullptr;
|
||||
}
|
||||
|
||||
gfxWindowsPlatform::~gfxWindowsPlatform()
|
||||
{
|
||||
NS_UnregisterMemoryReporter(mGPUAdapterReporter);
|
||||
//NS_UnregisterMemoryReporter(mGPUAdapterReporter);
|
||||
|
||||
mDeviceManager = nullptr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user