Open Bug 1161636 Opened 6 years ago Updated 4 years ago
Avoid Copying canvas 2d into a new Texture
Client each frame .
Currently CanvasRenderingContext2D keeps its own DrawTarget which it draws into and copies the whole thing in a TextureClient after each frame to share it with the Compositor. We should do the following things: * draw directly into a TextureClient * share this TextureClient with the compositor without copying it at the end of the frame * use a new TextureClient for each frame and only copy from the previous TextureClient if the first drawing operation does not overwrite all of the canvas' pixels Eventually use a pool to reduce the overhead of creating and destroying textures each frame, but we already pay that cost so we can track the pool as an orthogonal improvement (could be done in bug 1008221).
6 years ago
Assignee: nobody → bas
You need to log in before you can comment on or make changes to this bug.