Bug 1556470. Add a Flush() to DrawTargetD2D1::IntoLuminanceSource(). r=bas

I needed this change to make things work with my CreateClippedDrawTarget. It
seems reasonable but I can't justify it rigorously.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jeff Muizelaar 2019-06-08 03:58:36 +00:00
Родитель 9c48545798
Коммит e565bbcea6
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -155,6 +155,8 @@ already_AddRefed<SourceSurface> DrawTargetD2D1::IntoLuminanceSource(
return DrawTarget::IntoLuminanceSource(aLuminanceType, aOpacity);
}
Flush();
mLuminanceEffect->SetInput(0, mBitmap);
RefPtr<ID2D1Image> luminanceOutput;