Bug 1008610 - Convert right xlib surface into a SourceSurface. r=Bas, a=sledru
authorMatt Woodrow <mwoodrow@mozilla.com>
Tue, 13 May 2014 14:58:54 +1200
changeset 192280 1c2c267a019f
parent 192279 e9cfd7705824
child 192281 504c3281b663
push id3557
push userryanvm@gmail.com
push date2014-05-14 16:23 +0000
treeherdermozilla-beta@c3bcd563e6ce [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersBas, sledru
bugs1008610
milestone30.0
Bug 1008610 - Convert right xlib surface into a SourceSurface. r=Bas, a=sledru
gfx/thebes/gfxXlibNativeRenderer.cpp
--- a/gfx/thebes/gfxXlibNativeRenderer.cpp
+++ b/gfx/thebes/gfxXlibNativeRenderer.cpp
@@ -621,17 +621,17 @@ gfxXlibNativeRenderer::Draw(gfxContext* 
             return;
         }
 
         gfxASurface* paintSurface = blackImage;
         if (drawTarget) {
             NativeSurface native;
             native.mFormat = moz2DFormat;
             native.mType = NativeSurfaceType::CAIRO_SURFACE;
-            native.mSurface = tempXlibSurface;
+            native.mSurface = paintSurface->CairoSurface();
             native.mSize = ToIntSize(size);
             RefPtr<SourceSurface> sourceSurface =
                 drawTarget->CreateSourceSurfaceFromNativeSurface(native);
             if (sourceSurface) {
                 drawTarget->DrawSurface(sourceSurface,
                     Rect(offset.x, offset.y, size.width, size.height),
                     Rect(0, 0, size.width, size.height));
             }