Bug 1741352 - Relax widget size log in WebRenderLayerManager::Initialize() r=gfx-reviewers,bradwerth

We also want  a size check log in content process.

Differential Revision: https://phabricator.services.mozilla.com/D131210
This commit is contained in:
sotaro
2021-11-16 22:34:14 +00:00
parent aa17f409c6
commit 90b1d74ff8

View File

@@ -78,10 +78,10 @@ bool WebRenderLayerManager::Initialize(
LayoutDeviceIntSize size = mWidget->GetClientSize();
// Check widget size
if (XRE_IsParentProcess() &&
(size.width < 0 || size.width > wr::MAX_RENDER_TASK_SIZE ||
size.height < 0 || size.height > wr::MAX_RENDER_TASK_SIZE)) {
gfxCriticalNote << "Widget size is not valid " << size;
if (size.width < 0 || size.width > wr::MAX_RENDER_TASK_SIZE ||
size.height < 0 || size.height > wr::MAX_RENDER_TASK_SIZE) {
gfxCriticalNoteOnce << "Widget size is not valid " << size
<< " isParent: " << XRE_IsParentProcess();
}
PWebRenderBridgeChild* bridge =