mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
remove unused KWin::PaintRedirector::preparePaint() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
bc5dc10c08
commit
14389df81f
2 changed files with 1 additions and 14 deletions
|
@ -208,11 +208,6 @@ void PaintRedirector::updatePixmaps(const QRect *rects, const QRegion ®ion)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PaintRedirector::preparePaint(const QPixmap &pending)
|
|
||||||
{
|
|
||||||
Q_UNUSED(pending)
|
|
||||||
}
|
|
||||||
|
|
||||||
void PaintRedirector::resizePixmaps()
|
void PaintRedirector::resizePixmaps()
|
||||||
{
|
{
|
||||||
QRect rects[PixmapCount];
|
QRect rects[PixmapCount];
|
||||||
|
@ -302,11 +297,6 @@ void RasterXRenderPaintRedirector::resize(PaintRedirector::DecorationPixmap bord
|
||||||
xcb_render_fill_rectangles(connection(), XCB_RENDER_PICT_OP_SRC, *m_pictures[border], preMultiply(Qt::transparent), 1, &rect);
|
xcb_render_fill_rectangles(connection(), XCB_RENDER_PICT_OP_SRC, *m_pictures[border], preMultiply(Qt::transparent), 1, &rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RasterXRenderPaintRedirector::preparePaint(const QPixmap &pending)
|
|
||||||
{
|
|
||||||
m_tempImage = pending.toImage();
|
|
||||||
}
|
|
||||||
|
|
||||||
void RasterXRenderPaintRedirector::paint(PaintRedirector::DecorationPixmap border, const QRect &r, const QRect &b, const QRegion ®)
|
void RasterXRenderPaintRedirector::paint(PaintRedirector::DecorationPixmap border, const QRect &r, const QRect &b, const QRegion ®)
|
||||||
{
|
{
|
||||||
// clip the sub area
|
// clip the sub area
|
||||||
|
|
|
@ -42,7 +42,7 @@ class Deleted;
|
||||||
class XRenderPicture;
|
class XRenderPicture;
|
||||||
|
|
||||||
// This class redirects all painting of a given widget (including its children)
|
// This class redirects all painting of a given widget (including its children)
|
||||||
// into a paint device (QPixmap).
|
// into a paint device (QImage).
|
||||||
class PaintRedirector
|
class PaintRedirector
|
||||||
: public QObject
|
: public QObject
|
||||||
{
|
{
|
||||||
|
@ -92,7 +92,6 @@ protected:
|
||||||
virtual xcb_render_picture_t picture(DecorationPixmap border) const;
|
virtual xcb_render_picture_t picture(DecorationPixmap border) const;
|
||||||
virtual void resizePixmaps(const QRect *rects);
|
virtual void resizePixmaps(const QRect *rects);
|
||||||
virtual void resize(DecorationPixmap border, const QSize &size);
|
virtual void resize(DecorationPixmap border, const QSize &size);
|
||||||
virtual void preparePaint(const QPixmap &pending);
|
|
||||||
virtual void updatePixmaps(const QRect *rects, const QRegion ®ion);
|
virtual void updatePixmaps(const QRect *rects, const QRegion ®ion);
|
||||||
virtual void paint(DecorationPixmap border, const QRect& r, const QRect &b, const QRegion ®);
|
virtual void paint(DecorationPixmap border, const QRect& r, const QRect &b, const QRegion ®);
|
||||||
virtual QPaintDevice *scratch() = 0;
|
virtual QPaintDevice *scratch() = 0;
|
||||||
|
@ -129,7 +128,6 @@ protected:
|
||||||
virtual xcb_render_picture_t picture(DecorationPixmap border) const;
|
virtual xcb_render_picture_t picture(DecorationPixmap border) const;
|
||||||
virtual void resize(DecorationPixmap border, const QSize &size);
|
virtual void resize(DecorationPixmap border, const QSize &size);
|
||||||
virtual void paint(DecorationPixmap border, const QRect &r, const QRect &b, const QRegion ®);
|
virtual void paint(DecorationPixmap border, const QRect &r, const QRect &b, const QRegion ®);
|
||||||
virtual void preparePaint(const QPixmap &pending);
|
|
||||||
|
|
||||||
virtual QPaintDevice *recreateScratch(const QSize &size);
|
virtual QPaintDevice *recreateScratch(const QSize &size);
|
||||||
virtual QPaintDevice *scratch();
|
virtual QPaintDevice *scratch();
|
||||||
|
@ -140,7 +138,6 @@ private:
|
||||||
xcb_pixmap_t m_pixmaps[PixmapCount];
|
xcb_pixmap_t m_pixmaps[PixmapCount];
|
||||||
xcb_gcontext_t m_gc;
|
xcb_gcontext_t m_gc;
|
||||||
XRenderPicture* m_pictures[PixmapCount];
|
XRenderPicture* m_pictures[PixmapCount];
|
||||||
QImage m_tempImage;
|
|
||||||
QImage m_scratchImage;
|
QImage m_scratchImage;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue