Bug 1183820 - Expose if cairo uses XRender to GetAzureBackendInfo. r=mattwoodrow

--HG--
extra : rebase_source : 48a9b892e552461dfc9e4f955122240aa08a6db0
extra : histedit_source : 7dd98adff17ab32a39250f7e5bbb94c763e8bc4c
This commit is contained in:
Andrew Comminos 2015-07-14 13:56:00 -04:00
parent 4a1174fffa
commit 934be774e5
2 changed files with 8 additions and 1 deletions

View File

@ -264,7 +264,7 @@ public:
static bool AsyncPanZoomEnabled();
void GetAzureBackendInfo(mozilla::widget::InfoObject &aObj) {
virtual void GetAzureBackendInfo(mozilla::widget::InfoObject &aObj) {
aObj.DefineProperty("AzureCanvasBackend", GetBackendName(mPreferredCanvasBackend));
aObj.DefineProperty("AzureSkiaAccelerated", UseAcceleratedSkiaCanvas());
aObj.DefineProperty("AzureFallbackCanvasBackend", GetBackendName(mFallbackCanvasBackend));

View File

@ -108,6 +108,13 @@ public:
#endif
}
#ifdef MOZ_X11
virtual void GetAzureBackendInfo(mozilla::widget::InfoObject &aObj) override {
gfxPlatform::GetAzureBackendInfo(aObj);
aObj.DefineProperty("CairoUseXRender", UseXRender());
}
#endif
static bool UseFcFontList() { return sUseFcFontList; }
bool UseImageOffscreenSurfaces() {