Bug 822143. Remove unused pattern from CreateSamplingRestrictedDrawable. r=mstange
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Mon, 17 Dec 2012 15:08:40 -0500
changeset 125410 6304fff5886683f751843ad95a614b48989f1070
parent 125409 e18421c16c7a14b559638429c5119da3d3d7aed0
child 125411 bc98fdc051f5c2f85f2a1951e625323266ad0777
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs822143, 572680
milestone20.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 822143. Remove unused pattern from CreateSamplingRestrictedDrawable. r=mstange Seems this got left behind when converting to gfxDrawable in bug 572680.
gfx/thebes/gfxUtils.cpp
--- a/gfx/thebes/gfxUtils.cpp
+++ b/gfx/thebes/gfxUtils.cpp
@@ -256,20 +256,16 @@ CreateSamplingRestrictedDrawable(gfxDraw
     if (!temp || temp->CairoStatus())
         return nullptr;
 
     nsRefPtr<gfxContext> tmpCtx = new gfxContext(temp);
     tmpCtx->SetOperator(OptimalFillOperator());
     aDrawable->Draw(tmpCtx, needed - needed.TopLeft(), true,
                     gfxPattern::FILTER_FAST, gfxMatrix().Translate(needed.TopLeft()));
 
-    nsRefPtr<gfxPattern> resultPattern = new gfxPattern(temp);
-    if (!resultPattern)
-        return nullptr;
-
     nsRefPtr<gfxDrawable> drawable = 
         new gfxSurfaceDrawable(temp, size, gfxMatrix().Translate(-needed.TopLeft()));
     return drawable.forget();
 }
 
 // working around cairo/pixman bug (bug 364968)
 // Our device-space-to-image-space transform may not be acceptable to pixman.
 struct NS_STACK_CLASS AutoCairoPixmanBugWorkaround