Proper naming for backingstore logging category

The logging category is exported, so the name should be
specific.

Change-Id: Iffdc89875ef9e3091009780edc614fee10c05532
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
This commit is contained in:
Paul Olav Tvete 2018-06-22 11:28:16 +02:00
parent 9706945157
commit 7023f9de85

View File

@ -68,9 +68,9 @@ QT_BEGIN_NAMESPACE
namespace QtWaylandClient { namespace QtWaylandClient {
Q_DECLARE_LOGGING_CATEGORY(logCategory) Q_DECLARE_LOGGING_CATEGORY(lcWaylandBackingstore)
Q_LOGGING_CATEGORY(logCategory, "qt.qpa.wayland.backingstore") Q_LOGGING_CATEGORY(lcWaylandBackingstore, "qt.qpa.wayland.backingstore")
QWaylandShmBuffer::QWaylandShmBuffer(QWaylandDisplay *display, QWaylandShmBuffer::QWaylandShmBuffer(QWaylandDisplay *display,
const QSize &size, QImage::Format format, int scale) const QSize &size, QImage::Format format, int scale)
@ -277,7 +277,7 @@ void QWaylandShmBackingStore::resize(const QSize &size)
// run single buffered, while with the pixman renderer we have to use two. // run single buffered, while with the pixman renderer we have to use two.
QWaylandShmBuffer *buffer = getBuffer(sizeWithMargins); QWaylandShmBuffer *buffer = getBuffer(sizeWithMargins);
while (!buffer) { while (!buffer) {
qCDebug(logCategory, "QWaylandShmBackingStore: stalling waiting for a buffer to be released from the compositor..."); qCDebug(lcWaylandBackingstore, "QWaylandShmBackingStore: stalling waiting for a buffer to be released from the compositor...");
mDisplay->blockingReadEvents(); mDisplay->blockingReadEvents();
buffer = getBuffer(sizeWithMargins); buffer = getBuffer(sizeWithMargins);