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 193305 1c2c267a019f146dedf9407b9a03a048b3c07bcb
parent 193304 e9cfd77058245432c6482bc9d9ca29d7adbb6c63
child 193306 504c3281b6635353c8bc817c3b37cdf16991d8be
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [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));
             }