From 52aacbca78ce72f749f774500bdda757b10b13bc Mon Sep 17 00:00:00 2001 From: Ryan Hunt Date: Fri, 8 Dec 2017 01:31:16 -0600 Subject: [PATCH] Don't append to mDrawTargetsToFlush in Tiled OMTP (bug 1424172, r=bas) MozReview-Commit-ID: GhlE3DXwKJi --HG-- extra : rebase_source : 41a178a2cdce32e954841024f1075ee33081f475 extra : source : 0863e916742e8f4986db3b38b75b0b6ee2099d8f --- gfx/layers/PaintThread.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gfx/layers/PaintThread.cpp b/gfx/layers/PaintThread.cpp index f14dd5576bc4..4718218bddca 100644 --- a/gfx/layers/PaintThread.cpp +++ b/gfx/layers/PaintThread.cpp @@ -391,10 +391,7 @@ PaintThread::AsyncPaintTiledContents(CompositorBridgeChild* aBridge, // Draw all the things into the actual dest target. target->DrawCapturedDT(capture, Matrix()); - - if (!mDrawTargetsToFlush.Contains(target)) { - mDrawTargetsToFlush.AppendElement(target); - } + target->Flush(); if (gfxPrefs::LayersOMTPReleaseCaptureOnMainThread()) { // This should ensure the capture drawtarget, which may hold on to UnscaledFont objects,