summaryrefslogtreecommitdiff
path: root/src/cairo-qt-surface.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@gmail.com>2009-07-16 00:16:57 -0400
committerJeff Muizelaar <jmuizelaar@mozilla.com>2009-07-16 00:16:57 -0400
commit4f9551e5e533deb66401b601766bf4263192b6de (patch)
tree2f50f096faa77c0bff20ed2dee0c4d94c90810bd /src/cairo-qt-surface.cpp
parent1caa34103925c53b180cd614f5c6b425b5a3f271 (diff)
[qt] Reduce padding in cairo_qt_surface_t struct
Removes 4 bytes of padding (on a 32bit system) from the datastructure by reordering the members. Mozilla bug #498880
Diffstat (limited to 'src/cairo-qt-surface.cpp')
-rw-r--r--src/cairo-qt-surface.cpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/cairo-qt-surface.cpp b/src/cairo-qt-surface.cpp
index 5542abd6..bad6b299 100644
--- a/src/cairo-qt-surface.cpp
+++ b/src/cairo-qt-surface.cpp
@@ -82,33 +82,34 @@
typedef struct {
cairo_surface_t base;
- QPainter *p;
-
- /* The pixmap/image constructors will store their objects here */
- QPixmap *pixmap;
- QImage *image;
-
- QRect window;
-
bool has_clipping;
- QRect clip_bounds;
-
// if this is true, calls to intersect_clip_path won't
// update the clip_bounds rect
bool no_update_clip_bounds;
- cairo_surface_t *image_equiv;
+ cairo_bool_t supports_porter_duff;
#if defined(Q_WS_X11) && CAIRO_HAS_XLIB_XRENDER_SURFACE
/* temporary, so that we can share the xlib surface's glyphs code */
- cairo_surface_t *xlib_equiv;
bool xlib_has_clipping;
+ cairo_surface_t *xlib_equiv;
QRect xlib_clip_bounds;
int xlib_clip_serial;
QPoint redir_offset;
#endif
- cairo_bool_t supports_porter_duff;
+ QPainter *p;
+
+ /* The pixmap/image constructors will store their objects here */
+ QPixmap *pixmap;
+ QImage *image;
+
+ QRect window;
+
+
+ QRect clip_bounds;
+
+ cairo_surface_t *image_equiv;
} cairo_qt_surface_t;
/* Will be true if we ever try to create a QPixmap and end