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
Родитель 2d8ab09b73
Коммит a125f95885
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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 =