Move CanvasRenderTask to gfx crate.

Fix #2921