From e565bbcea602a005481218400e58a84fd7147838 Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Sat, 8 Jun 2019 03:58:36 +0000 Subject: [PATCH] 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 --- gfx/2d/DrawTargetD2D1.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/2d/DrawTargetD2D1.cpp b/gfx/2d/DrawTargetD2D1.cpp index 95dfa4d04503..5c32c08d78da 100644 --- a/gfx/2d/DrawTargetD2D1.cpp +++ b/gfx/2d/DrawTargetD2D1.cpp @@ -155,6 +155,8 @@ already_AddRefed DrawTargetD2D1::IntoLuminanceSource( return DrawTarget::IntoLuminanceSource(aLuminanceType, aOpacity); } + Flush(); + mLuminanceEffect->SetInput(0, mBitmap); RefPtr luminanceOutput;