Bug 1288194 Part 2: Fix incorrectly recorded argument in DrawTargetRecording::PushLayer. r=bas
authorBob Owen <bobowencode@gmail.com>
Mon, 08 Aug 2016 17:11:44 +0100
changeset 308946 a31335a3173a9f0eccdc13943ec2872645182f15
parent 308945 a0c1998f35d2434a29bfedd069569fc75076fcf4
child 308947 949e3622421482913424f4fc168b2d2096015134
push id30553
push userkwierso@gmail.com
push dateWed, 10 Aug 2016 23:29:32 +0000
treeherdermozilla-central@dc8f8117d67b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbas
bugs1288194
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1288194 Part 2: Fix incorrectly recorded argument in DrawTargetRecording::PushLayer. r=bas 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();