Bug 1288194 - Part 2: Fix incorrectly recorded argument in DrawTargetRecording::PushLayer. r=bas, a=ritu
authorBob Owen <bobowencode@gmail.com>
Mon, 08 Aug 2016 17:11:44 +0100
changeset 349885 9d5109af8c1d562bbdf30e035a2021717453d16e
parent 349884 45e8335e629e371a21f4c1effe65c012956e1c45
child 349886 61c7711193eef45737235dda88eedf0432521d48
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbas, ritu
bugs1288194
milestone50.0a2
Bug 1288194 - Part 2: Fix incorrectly recorded argument in DrawTargetRecording::PushLayer. r=bas, a=ritu MozReview-Commit-ID: HdvCaPGDqvk
gfx/2d/DrawTargetRecording.cpp
--- a/gfx/2d/DrawTargetRecording.cpp
+++ b/gfx/2d/DrawTargetRecording.cpp
@@ -580,20 +580,20 @@ DrawTargetRecording::PushLayer(bool aOpa
                                SourceSurface* aMask,
                                const Matrix& aMaskTransform,
                                const IntRect& aBounds, bool aCopyBackground)
 {
   if (aMask) {
     EnsureSurfaceStored(mRecorder, aMask, "PushLayer");
   }
 
-  mRecorder->RecordEvent(RecordedPushLayer(this, aOpacity, aOpacity, aMask,
+  mRecorder->RecordEvent(RecordedPushLayer(this, aOpaque, aOpacity, aMask,
                                            aMaskTransform, aBounds,
                                            aCopyBackground));
-  mFinalDT->PushLayer(aOpacity, aOpacity, aMask, aMaskTransform, aBounds,
+  mFinalDT->PushLayer(aOpaque, aOpacity, aMask, aMaskTransform, aBounds,
                       aCopyBackground);
 }
 
 void
 DrawTargetRecording::PopLayer()
 {
   mRecorder->RecordEvent(RecordedPopLayer(this));
   mFinalDT->PopLayer();