From e862bfe569694bc6d7b94101ea1616ee3286d4b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Sat, 16 Mar 2013 14:45:14 +0100 Subject: [PATCH] kwin: Refactor some code in the PaintRedirector Add virtual resizePixmaps() and updatePixmaps() methods that resizes and updates all the pixmaps. Make resize() and paint() regular virtuals with stub implementations. The new methods will be used by OpenGLPaintRedirector in the next commit. --- paintredirector.cpp | 64 +++++++++++++++++++++++++++++++++------------ paintredirector.h | 7 +++-- 2 files changed, 52 insertions(+), 19 deletions(-) diff --git a/paintredirector.cpp b/paintredirector.cpp index 41974d2126..34ef613a47 100644 --- a/paintredirector.cpp +++ b/paintredirector.cpp @@ -187,9 +187,7 @@ void PaintRedirector::ensurePixmapsPainted() QRect rects[PixmapCount]; m_client->layoutDecorationRects(rects[LeftPixmap], rects[TopPixmap], rects[RightPixmap], rects[BottomPixmap], Client::DecorationRelative); - for (int i=0; ilayoutDecorationRects(rects[LeftPixmap], rects[TopPixmap], rects[RightPixmap], rects[BottomPixmap], Client::DecorationRelative); - for (int i=0; i