<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Protocol: colored buffer"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93094#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Protocol: colored buffer"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93094">bug 93094</a>
from <span class="vcard"><a class="email" href="mailto:ppaalanen@gmail.com" title="Pekka Paalanen <ppaalanen@gmail.com>"> <span class="fn">Pekka Paalanen</span></a>
</span></b>
<pre>I don't understand why moving the cursor would cause CPU load. We need a lot
more information about the implementations involved to reply to that. It sounds
like something (the application?) is redrawing or posting damage when there is
none.
But you talk about an X application. Is this CPU usage issue specific to
Xwayland?
Now, assuming you use case is valid...
For a solid color buffer, we could add what you propose, but there is already
protocol to do the equivalent and consuming just one pixel of storage: allocate
a 1x1 wl_buffer, e.g. from wl_shm, and paint the one pixel with the color you
want. When attaching it to a wl_surface, use wl_viewport to scale that one
pixel up to any size you want.
The extension for wl_viewport is not stable yet, but should be quite soon. You
can follow it in <a class="bz_bug_link
bz_status_NEW "
title="NEW - Standardize wl_scaler protocol extension"
href="show_bug.cgi?id=83918">bug #83918</a>.
If this is really about Xwayland, it seems you have three separate issues filed
here:
- the CPU consumption with Xwayland
- Wayland protocol for solid color buffers
- making Xwayland use the solid color buffers (if even possible)
Is this correct?
Btw. it is allowed to attach the same wl_buffer to several wl_surfaces at the
same time, but there is a caveat: <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Protocol: wl_buffer.release is racy"
href="show_bug.cgi?id=75303">bug #75303</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>