Fix the Canvas::setRotation method
BUG:416126 (cherry picked from commit 5631090c79833acdece0a7cc18712536b98eac13)