Make the code hidpi aware

CCBUGS: 443824
0 jobs for v21.12.2
latest