Bug 618561 - Enable direct Qt rendering for Maemo6 r=dougt a=approval2.0
authorOleg Romashin <romaxa@gmail.com>
Tue, 04 Jan 2011 17:37:24 +0200
changeset 59838 88a95c3e9373ed3d06bf8afa3d68752577d6ee07
parent 59837 566d6ebc113e598d0fb9bf266cb7bcd315d92bfc
child 59839 e55110b28ba56b87383ba4c82cd6f7ee36711b1a
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersdougt, approval2
bugs618561
milestone2.0b9pre
Bug 618561 - Enable direct Qt rendering for Maemo6 r=dougt a=approval2.0
gfx/thebes/gfxQtPlatform.cpp
--- a/gfx/thebes/gfxQtPlatform.cpp
+++ b/gfx/thebes/gfxQtPlatform.cpp
@@ -74,23 +74,17 @@
 #ifndef MOZ_PANGO
 #include <ft2build.h>
 #include FT_FREETYPE_H
 #endif
 
 #include "nsIPrefBranch.h"
 #include "nsIPrefService.h"
 
-// Because the QPainter backend has some problems with glyphs rendering
-// it is better to use image or xlib cairo backends by default
-#if (MOZ_PLATFORM_MAEMO == 6)
-#define DEFAULT_RENDER_MODE RENDER_BUFFERED
-#else
 #define DEFAULT_RENDER_MODE RENDER_DIRECT
-#endif
 
 static QPaintEngine::Type sDefaultQtPaintEngineType = QPaintEngine::X11;
 gfxFontconfigUtils *gfxQtPlatform::sFontconfigUtils = nsnull;
 static cairo_user_data_key_t cairo_qt_pixmap_key;
 static void do_qt_pixmap_unref (void *data)
 {
     QPixmap *pmap = (QPixmap*)data;
     delete pmap;