mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1175005: performance regression. backout_2dba54b89ec8
This commit is contained in:
parent
ccbb8c9ed6
commit
a6e162011f
@ -1163,20 +1163,6 @@ GfxInfoBase::RemoveCollector(GfxInfoCollectorBase* collector)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
GfxInfoBase::GetMonitors(JSContext* aCx, JS::MutableHandleValue aResult)
|
|
||||||
{
|
|
||||||
JS::Rooted<JSObject*> array(aCx, JS_NewArrayObject(aCx, 0));
|
|
||||||
|
|
||||||
nsresult rv = FindMonitors(aCx, array);
|
|
||||||
if (NS_FAILED(rv)) {
|
|
||||||
return rv;
|
|
||||||
}
|
|
||||||
|
|
||||||
aResult.setObject(*array);
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
GfxInfoCollectorBase::GfxInfoCollectorBase()
|
GfxInfoCollectorBase::GfxInfoCollectorBase()
|
||||||
{
|
{
|
||||||
GfxInfoBase::AddCollector(this);
|
GfxInfoBase::AddCollector(this);
|
||||||
|
@ -54,8 +54,7 @@ public:
|
|||||||
NS_IMETHOD GetFeatureSuggestedDriverVersion(int32_t aFeature, nsAString & _retval) override;
|
NS_IMETHOD GetFeatureSuggestedDriverVersion(int32_t aFeature, nsAString & _retval) override;
|
||||||
NS_IMETHOD GetWebGLParameter(const nsAString & aParam, nsAString & _retval) override;
|
NS_IMETHOD GetWebGLParameter(const nsAString & aParam, nsAString & _retval) override;
|
||||||
|
|
||||||
NS_IMETHOD GetMonitors(JSContext* cx, JS::MutableHandleValue _retval) override;
|
NS_IMETHOD GetFailures(uint32_t *failureCount, int32_t** indices, char ***failures) override;
|
||||||
NS_IMETHOD GetFailures(uint32_t *failureCount, int32_t** indices, char ***failures) override;
|
|
||||||
NS_IMETHOD_(void) LogFailure(const nsACString &failure) override;
|
NS_IMETHOD_(void) LogFailure(const nsACString &failure) override;
|
||||||
NS_IMETHOD GetInfo(JSContext*, JS::MutableHandle<JS::Value>) override;
|
NS_IMETHOD GetInfo(JSContext*, JS::MutableHandle<JS::Value>) override;
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
/* NOTE: this interface is completely undesigned, not stable and likely to change */
|
/* NOTE: this interface is completely undesigned, not stable and likely to change */
|
||||||
|
|
||||||
[scriptable, uuid(47eedfa0-f7cb-445b-b5cf-a2ca83600560)]
|
[scriptable, uuid(b0cd9d34-8dba-4b1d-8126-ca21826dbf35)]
|
||||||
interface nsIGfxInfo : nsISupports
|
interface nsIGfxInfo : nsISupports
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
@ -54,17 +54,6 @@ interface nsIGfxInfo : nsISupports
|
|||||||
|
|
||||||
readonly attribute boolean isGPU2Active;
|
readonly attribute boolean isGPU2Active;
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns an array of objects describing each monitor. Guaranteed properties
|
|
||||||
* are "screenWidth" and "screenHeight". This is only implemented on Desktop.
|
|
||||||
*
|
|
||||||
* Windows additionally supplies "refreshRate" and "pseudoDisplay".
|
|
||||||
*
|
|
||||||
* OS X additionally supplies "scale".
|
|
||||||
*/
|
|
||||||
[implicit_jscontext]
|
|
||||||
jsval getMonitors();
|
|
||||||
|
|
||||||
void getFailures(
|
void getFailures(
|
||||||
out unsigned long failureCount,
|
out unsigned long failureCount,
|
||||||
[optional, array, size_is(failureCount)] out long indices,
|
[optional, array, size_is(failureCount)] out long indices,
|
||||||
|
Loading…
Reference in New Issue
Block a user