Ensured XRWebGLLayers clamp their framebuffer size.
In some cases extreme output canvas sized were causing failed allocations and incomplete framebuffers, which made the ImageLayerBridge choke. This patch both clamps the backbuffer size to the max texture size and, if an incomplete framebuffer is detected, produces black 1x1 images for the ImageLayerBridge to consume instead of attempting to pass the texture that failed to allocate. Bug: 814460 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: Idba50e08052767360423018e06bc65f1f87c4d14 Reviewed-on: https://chromium-review.googlesource.com/964796Reviewed-by:Brian Sheedy <bsheedy@chromium.org> Reviewed-by:
Ian Vollick <vollick@chromium.org> Commit-Queue: Brandon Jones <bajones@chromium.org> Cr-Commit-Position: refs/heads/master@{#543549}
Showing
Please register or sign in to comment