[prev in list] [next in list] [prev in thread] [next in thread]
List: kwin
Subject: Re: Review Request: Introduce class DecorationPaintRedirector for
From: Martin_Gräßlin <kde () martin-graesslin ! com>
Date: 2011-08-24 20:35:42
Message-ID: 20110824203542.4729.82823 () vidsolbach ! de
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
> On Aug. 24, 2011, 8:30 p.m., Thomas L=C3=BCbking wrote:
> > Just to be sure:
> > the strategy is still to get rid of the paintredirector alongside an ne=
w deco API (and possibly a wrapper class/loader for old decorations)
Yes of course :-) The idea for this class is to get rid of the special hand=
ling inside client on the one hand and inside performPaint on the other han=
d. Both should help to later on have two APIs with the legacy one still usi=
ng paintredirector.
- Martin
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102422/#review5992
-----------------------------------------------------------
On Aug. 24, 2011, 3:48 p.m., Arthur Arlt wrote:
> =
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/102422/
> -----------------------------------------------------------
> =
> (Updated Aug. 24, 2011, 3:48 p.m.)
> =
> =
> Review request for kwin.
> =
> =
> Summary
> -------
> =
> This patch introduces the new class DecorationPaintRedirector. It inherit=
s from PaintRedirector and covers the functionality for decoration handling=
when compositing is active. This functionality was moved from Client to th=
is new class.
> The reason for doing this is to get rid of the Client dependency in class=
Scene.
> This is an initial review request. There are still some Client dependenci=
es left. But it works so far except for changing the decoration in composit=
ed mode or removing no border. Doing this does not lead to a crash but the =
decorations are not updated. Newly added clients are displayed correctly wi=
th the new decoration. Should be not that hard to fix it; will be done the =
next days ;)
> =
> =
> Diffs
> -----
> =
> kwin/CMakeLists.txt bde6626 =
> kwin/client.h d9cdddf =
> kwin/client.cpp 9d86cc4 =
> kwin/composite.cpp 2b8ea6f =
> kwin/decorationpaintredirector.h PRE-CREATION =
> kwin/decorationpaintredirector.cpp PRE-CREATION =
> kwin/deleted.cpp f465159 =
> kwin/paintredirector.h bb5d67c =
> kwin/paintredirector.cpp 7ed4d6f =
> kwin/scene.h 6ce39c0 =
> kwin/scene.cpp 8509400 =
> kwin/scene_opengl.cpp cf3eb65 =
> kwin/scene_xrender.cpp 73dd22f =
> =
> Diff: http://git.reviewboard.kde.org/r/102422/diff
> =
> =
> Testing
> -------
> =
> Works for both OpenGL and XRender on my system. However, as told in the d=
escription, changing the decoration (in composited mode)does not lead to a =
crash, but does not update the decorations for existing clients. Feel free =
to tell me the solution if it is obvious to you.
> =
> =
> Thanks,
> =
> Arthur
> =
>
[Attachment #5 (text/html)]
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;"> <tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://git.reviewboard.kde.org/r/102422/">http://git.reviewboard.kde.org/r/102422/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <p style="margin-top: 0;">On August 24th, 2011, 8:30 p.m., <b>Thomas \
Lübking</b> wrote:</p> <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;"> <pre style="white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">Just to be sure: the strategy is still to get rid of the paintredirector \
alongside an new deco API (and possibly a wrapper class/loader for old \
decorations)</pre> </blockquote>
</blockquote>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Yes of course :-) The \
idea for this class is to get rid of the special handling inside client on the one \
hand and inside performPaint on the other hand. Both should help to later on have two \
APIs with the legacy one still using paintredirector.</pre> <br />
<p>- Martin</p>
<br />
<p>On August 24th, 2011, 3:48 p.m., Arthur Arlt wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;"> <tr>
<td>
<div>Review request for kwin.</div>
<div>By Arthur Arlt.</div>
<p style="color: grey;"><i>Updated Aug. 24, 2011, 3:48 p.m.</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">This patch introduces the new class DecorationPaintRedirector. It \
inherits from PaintRedirector and covers the functionality for decoration handling \
when compositing is active. This functionality was moved from Client to this new \
class. The reason for doing this is to get rid of the Client dependency in class \
Scene. This is an initial review request. There are still some Client dependencies \
left. But it works so far except for changing the decoration in composited mode or \
removing no border. Doing this does not lead to a crash but the decorations are not \
updated. Newly added clients are displayed correctly with the new decoration. Should \
be not that hard to fix it; will be done the next days ;)</pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">Works for both OpenGL and XRender on my system. However, as told in the \
description, changing the decoration (in composited mode)does not lead to a crash, \
but does not update the decorations for existing clients. Feel free to tell me the \
solution if it is obvious to you.</pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>kwin/CMakeLists.txt <span style="color: grey">(bde6626)</span></li>
<li>kwin/client.h <span style="color: grey">(d9cdddf)</span></li>
<li>kwin/client.cpp <span style="color: grey">(9d86cc4)</span></li>
<li>kwin/composite.cpp <span style="color: grey">(2b8ea6f)</span></li>
<li>kwin/decorationpaintredirector.h <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>kwin/decorationpaintredirector.cpp <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>kwin/deleted.cpp <span style="color: grey">(f465159)</span></li>
<li>kwin/paintredirector.h <span style="color: grey">(bb5d67c)</span></li>
<li>kwin/paintredirector.cpp <span style="color: grey">(7ed4d6f)</span></li>
<li>kwin/scene.h <span style="color: grey">(6ce39c0)</span></li>
<li>kwin/scene.cpp <span style="color: grey">(8509400)</span></li>
<li>kwin/scene_opengl.cpp <span style="color: grey">(cf3eb65)</span></li>
<li>kwin/scene_xrender.cpp <span style="color: grey">(73dd22f)</span></li>
</ul>
<p><a href="http://git.reviewboard.kde.org/r/102422/diff/" style="margin-left: \
3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>
_______________________________________________
kwin mailing list
kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic