Remove “scaling” logging from QBackingStore
Prepare for renaming the logging category. Change-Id: I1fefefa510032ca70754fde9d80f9ac35ffa977b Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>bb10
parent
f226854d25
commit
fd27fcf185
|
|
@ -151,15 +151,11 @@ void QBackingStore::beginPaint(const QRegion ®ion)
|
|||
|| source->size() != d_ptr->highDpiBackingstore->size()
|
||||
|| source->devicePixelRatio() != d_ptr->highDpiBackingstore->devicePixelRatio();
|
||||
if (needsNewImage) {
|
||||
qCDebug(lcScaling) << "QBackingStore::beginPaint new backingstore for" << d_ptr->window;
|
||||
qCDebug(lcScaling) << " source size" << source->size() << "dpr" << source->devicePixelRatio();
|
||||
d_ptr->highDpiBackingstore.reset(
|
||||
new QImage(source->bits(), source->width(), source->height(), source->bytesPerLine(), source->format()));
|
||||
|
||||
qreal targetDevicePixelRatio = d_ptr->window->devicePixelRatio();
|
||||
d_ptr->highDpiBackingstore->setDevicePixelRatio(targetDevicePixelRatio);
|
||||
qCDebug(lcScaling) <<" destination size" << d_ptr->highDpiBackingstore->size()
|
||||
<< "dpr" << targetDevicePixelRatio;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue