mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
0916cf6de0
ScreenshotLayer overrides SingleTileLayer's draw function to simplify the drawing process. Unfortunately, this doesn't respect the layer mask, and can cause the layer to appear incorrectly stretched. Change the screenshot process so that whole-page screenshots pass parameters that are pre-scaled (to avoid mismatches when the viewport changes), and set the page size on the ScreenShotLayer so it draws in the correct place. This also alters the masking slightly to avoid visible seams around masks in the centre of the page, and to avoid unnnecessary drawing at the edges of the page. This change fixes the frame-rate issues with the screenshot layer, as it removes unnecessary over-draw. --HG-- extra : rebase_source : 671c5a48d7bc08b3b452ed7eea228eb22843c1ce |
||
---|---|---|
.. | ||
app | ||
base | ||
branding | ||
chrome | ||
components | ||
config/mozconfigs/android | ||
installer | ||
locales | ||
modules | ||
sync | ||
themes/core | ||
build.mk | ||
confvars.sh | ||
LICENSE | ||
Makefile.in | ||
makefiles.sh |