Bug 1068193 - Use the correct return type for Factory::CreateWrappingDataSourceSurface; r=jrmuizel
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 17 Sep 2014 17:55:17 -0400
changeset 205916 d5423e2b9f7d92daf0c7b633276684ddbdc8e754
parent 205915 0cc9fcdca191f5e078e6201e67b4e84b4e811f69
child 205917 46859d329455a936a3dca1e0983a47e737b798c4
push id27507
push userryanvm@gmail.com
push dateThu, 18 Sep 2014 02:16:54 +0000
treeherdermozilla-central@488d490da742 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1068193
milestone35.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 1068193 - Use the correct return type for Factory::CreateWrappingDataSourceSurface; r=jrmuizel
gfx/thebes/gfxWindowsNativeDrawing.cpp
--- a/gfx/thebes/gfxWindowsNativeDrawing.cpp
+++ b/gfx/thebes/gfxWindowsNativeDrawing.cpp
@@ -264,17 +264,17 @@ gfxWindowsNativeDrawing::PaintToContext(
         mRenderState = RENDER_STATE_DONE;
     } else if (mRenderState == RENDER_STATE_ALPHA_RECOVERY_WHITE_DONE) {
         nsRefPtr<gfxImageSurface> black = mBlackSurface->GetAsImageSurface();
         nsRefPtr<gfxImageSurface> white = mWhiteSurface->GetAsImageSurface();
         if (!gfxAlphaRecovery::RecoverAlpha(black, white)) {
             NS_ERROR("Alpha recovery failure");
             return;
         }
-        RefPtr<SourceSurface> source =
+        RefPtr<DataSourceSurface> source =
             Factory::CreateWrappingDataSourceSurface(black->Data(),
                                                      black->Stride(),
                                                      ToIntSize(black->GetSize()),
                                                      SurfaceFormat::B8G8R8A8);
 
         mContext->Save();
         mContext->SetMatrix(
           mContext->CurrentMatrix().Translate(mNativeRect.TopLeft()));