d->rasterizer.reset(new QRasterizer);
d->rasterBuffer.reset(new QRasterBuffer());
d->outlineMapper.reset(new QOutlineMapper);
- d->outlinemapper_xform_dirty = true;
d->basicStroker.setMoveToHook(qt_ft_outline_move_to);
d->basicStroker.setLineToHook(qt_ft_outline_line_to);
d->systemStateChanged();
QRasterPaintEngineState *s = state();
- ensureOutlineMapper();
+ updateOutlineMapper();
d->outlineMapper->m_clip_rect = d->deviceRect;
if (d->outlineMapper->m_clip_rect.width() > RASTER_COORD_LIMIT)
s->matrix = matrix;
s->flags.tx_noshear = qt_scaleForTransform(s->matrix, &s->txscale);
- ensureOutlineMapper();
+ updateOutlineMapper();
}
QClipData *newClip = new QClipData(d->rasterBuffer->height());
newClip->initialize();
ClipData clipData = { base, newClip, isectOp };
- ensureOutlineMapper();
+ updateOutlineMapper();
d->rasterize(d->outlineMapper->convertPath(path), qt_span_clip, &clipData);
newClip->fixup();
return;
}
- ensureOutlineMapper();
+ updateOutlineMapper();
d->rasterize(d->outlineMapper->convertPath(path), blend, fillData);
}
// return;
// }
- ensureOutlineMapper();
+ updateOutlineMapper();
d->rasterize(d->outlineMapper->convertPath(path), blend, &s->brushData);
}
QPainterPath path;
path.addRect(r);
- ensureOutlineMapper();
+ updateOutlineMapper();
fillPath(path, data);
}
// Compose polygon fill..,
QVectorPath vp((qreal *) points, pointCount, 0, QVectorPath::polygonFlags(mode));
- ensureOutlineMapper();
+ updateOutlineMapper();
QT_FT_Outline *outline = d->outlineMapper->convertPath(vp);
// scanconvert.
ensureBrush();
if (s->brushData.blend) {
// Compose polygon fill..,
- ensureOutlineMapper();
+ updateOutlineMapper();
d->outlineMapper->beginOutline(mode == WindingMode ? Qt::WindingFill : Qt::OddEvenFill);
d->outlineMapper->moveTo(*points);
const QPoint *p = points;
inline void ensurePen() { ensurePen(state()->pen); }
void updateOutlineMapper();
- inline void ensureOutlineMapper();
void updateRasterState();
inline void ensureRasterState() {
int deviceDepth;
bool mono_surface;
- bool outlinemapper_xform_dirty;
QScopedPointer<QRasterizer> rasterizer;
};
uchar *m_buffer;
};
-inline void QRasterPaintEngine::ensureOutlineMapper() {
- if (d_func()->outlinemapper_xform_dirty)
- updateOutlineMapper();
-}
-
inline const QClipData *QRasterPaintEnginePrivate::clip() const {
Q_Q(const QRasterPaintEngine);
if (q->state() && q->state()->clip && q->state()->clip->enabled)