Bug 931769, part 1 - Make gfxPattern::GetPattern use its mExtend member. r=Bas
authorJonathan Watt <jwatt@jwatt.org>
Tue, 29 Oct 2013 08:14:39 +0000
changeset 168405 194ba1b8f191cab6f5f97105b33d1b99b13148d4
parent 168146 cd94525c17a419e540590d4e7f8e00467bd91ae7
child 168406 6123376c20f14aa5938eeb1c7e1c6bc5794c923b
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersBas
bugs931769
milestone28.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 931769, part 1 - Make gfxPattern::GetPattern use its mExtend member. r=Bas
gfx/thebes/gfxPattern.cpp
--- a/gfx/thebes/gfxPattern.cpp
+++ b/gfx/thebes/gfxPattern.cpp
@@ -151,17 +151,17 @@ gfxPattern::GetPattern(DrawTarget *aTarg
 {
   if (mGfxPattern) {
     mGfxPattern->~Pattern();
     mGfxPattern = nullptr;
   }
 
   if (!mPattern) {
     mGfxPattern = new (mSurfacePattern.addr())
-      SurfacePattern(mSourceSurface, EXTEND_CLAMP, mTransform);
+      SurfacePattern(mSourceSurface, ToExtendMode(mExtend), mTransform);
     return mGfxPattern;
   }
 
   GraphicsExtend extend = (GraphicsExtend)cairo_pattern_get_extend(mPattern);
 
   switch (cairo_pattern_get_type(mPattern)) {
   case CAIRO_PATTERN_TYPE_SOLID:
     {