canvas: Specify size for RenderPass shared quad state and quad list size
CanvasResourceDispatcher creates a CompositorFrame with exactly one quad, but because it uses the default RenderPass::Create() factory function, it ends up allocating storage for 128 quads and 32 shared quad states. A similar use case, VideoFrameSubmitter, was measured to take around 0.2% of total Chrome CPU time in cases like Google Meet which have a large number of VideoFrameSubmitters. Although there are no measurements for offscreen / low latency canvas, the same optimization should help. Bug: 1077299 Change-Id: I4862e8bda50edd35c73adf26c1d5b180de1cb2a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2181076 Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org> Commit-Queue: Khushal <khushalsagar@chromium.org> Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org> Reviewed-by:Khushal <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/master@{#765346}
Showing
Please register or sign in to comment