bug 688798 - disable client side rendering for maemo only r=cjones

This commit is contained in:
Brad Lassey 2011-09-23 13:24:12 -04:00
parent ce0d25a190
commit d23950cfb6

View File

@ -125,13 +125,16 @@ public:
static PRInt32 GetDPI();
static PRBool UseClientSideRendering() {
#if defined(MOZ_X11) && defined(MOZ_GFX_OPTIMIZE_MOBILE)
// XRender is not accelerated on the platforms we care about
// at the moment, and X server pixman is out of our control;
// it's likely to be older than (our) cairo's. So fall back
// on software rendering for more predictable performance.
#if defined(MOZ_X11) && defined(MOZ_PLATFORM_MAEMO)
// XRender is not accelerated on the Maemo at the moment, and
// X server pixman is out of our control; it's likely to be
// older than (our) cairo's. So fall back on software
// rendering for more predictable performance.
// This setting will likely not be relevant when we have
// GL-accelerated compositing.
// GL-accelerated compositing. We know of other platforms
// with bad drivers where we'd like to also use client side
// rendering, but until we have the ability to featuer test
// this, we'll only disable this for maemo.
return PR_TRUE;
#else
return PR_FALSE;