mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
2f28c4b3a4
We can make GPUParent::RecvInit more efficient in two ways: 1. Using `auto&' for the type of the for-loop variable means that we're not copying each GfxPrefSetting value that we're iterating over, which is a win. 2. Pulling the `gfxPrefs::all()' call out of the loop means that we don't have to call it on each iteration. You may think the compiler could do this for you, but the compiler can't be sure that sGfxPrefList isn't being modified by SetCachedValue. |
||
---|---|---|
.. | ||
2d | ||
angle | ||
cairo | ||
config | ||
doc | ||
docs | ||
gl | ||
graphite2 | ||
harfbuzz | ||
ipc | ||
layers | ||
ots | ||
qcms | ||
skia | ||
src | ||
tests | ||
thebes | ||
vr | ||
ycbcr | ||
moz.build |