|
Intercept the user32!SystemParametersInfoW API in the win32k user gdi lockdown mode
This API fails for the font related values queried by webkit like SPI_GETFONTSMOOTHING and
SPI_GETFONTSMOOTHINGTYPE. This eventually causes skia to default to no antialiasing and no cleartype
which causes fonts to appear blurry and distorted.
Our solution for now is to fake the return values for SPI_GETFONTSMOOTHING to smooth and
SPI_GETFONTSMOOTHINGTYPE to cleartype.
I added a TODO in there to look into an IPC based approach in the near future if this causes problems.
BUG= 365160
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+66 lines, -0 lines) |
Patch |
 |
M |
sandbox/win/src/interceptors.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sandbox/win/src/interceptors_64.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sandbox/win/src/interceptors_64.cc
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sandbox/win/src/ipc_tags.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sandbox/win/src/process_mitigations_win32k_dispatcher.cc
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sandbox/win/src/process_mitigations_win32k_interception.h
|
View
|
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sandbox/win/src/process_mitigations_win32k_interception.cc
|
View
|
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sandbox/win/src/process_mitigations_win32k_policy.cc
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sandbox/win/src/sandbox_policy_base.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|