Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in gfx/ r=nical

The change has been reverted involuntary by bug 1574745

Differential Revision: https://phabricator.services.mozilla.com/D47734

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Sylvestre Ledru 2019-10-01 13:05:43 +00:00
Родитель 54a0b260d2
Коммит 63ab1f2c5b
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -943,9 +943,9 @@ void CompositorOGL::EndRenderingToNativeLayer() {
"BeginRenderingToNativeLayer?");
if (StaticPrefs::nglayout_debug_widget_update_flashing()) {
float r = float(rand()) / RAND_MAX;
float g = float(rand()) / RAND_MAX;
float b = float(rand()) / RAND_MAX;
float r = float(rand()) / float(RAND_MAX);
float g = float(rand()) / float(RAND_MAX);
float b = float(rand()) / float(RAND_MAX);
EffectChain effectChain;
effectChain.mPrimaryEffect = new EffectSolidColor(Color(r, g, b, 0.2f));
// If we're clipping the render target to the invalid rect, then the