Fix canvas rate limiting for certain canvas scenarios.
In certain situations the "SetIsBeingDisplayed" notification for CanvasRenderingContext2D - coming from HTMLCanvasElement - occurs before the Canvas2DLayerBridge is allocated. In order to reliably allocate the rate limiter when needed, set the display status of the Canvas2DLayerBridge upon its allocation / installation. Bug: 1038670 Tbr: fserb@chromium.org Change-Id: I8029462ec7c94f4644763cd8b662471b69a7d64b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1999085 Commit-Queue: Kenneth Russell <kbr@chromium.org> Reviewed-by:Philip Rogers <pdr@chromium.org> Reviewed-by:
Juanmi Huertas <juanmihd@chromium.org> Cr-Commit-Position: refs/heads/master@{#732282}
Showing
Please register or sign in to comment