Bug 948221 - Part 3: Fix a bug where a SurfacePattern created by gfxPattern didn't respect the requested filter mode. r=Bas
authorMatt Woodrow <mwoodrow@mozilla.com>
Thu, 12 Dec 2013 10:05:26 +1300
changeset 177000 7b0f7f3dfa8e625a902c946efaa4f4bde2d63755
parent 176999 c13412051f524172b096b138228246b9cf48bb0b
child 177001 f81e94b06315a312c59b1b487399a82c9bfa34a2
push id462
push userraliiev@mozilla.com
push dateTue, 22 Apr 2014 00:22:30 +0000
treeherdermozilla-release@ac5db8c74ac0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersBas
bugs948221
milestone29.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 948221 - Part 3: Fix a bug where a SurfacePattern created by gfxPattern didn't respect the requested filter mode. r=Bas
gfx/thebes/gfxPattern.cpp
--- a/gfx/thebes/gfxPattern.cpp
+++ b/gfx/thebes/gfxPattern.cpp
@@ -175,17 +175,17 @@ gfxPattern::GetPattern(DrawTarget *aTarg
 {
   if (mGfxPattern) {
     mGfxPattern->~Pattern();
     mGfxPattern = nullptr;
   }
 
   if (!mPattern) {
     mGfxPattern = new (mSurfacePattern.addr())
-      SurfacePattern(mSourceSurface, ToExtendMode(mExtend), mTransform);
+      SurfacePattern(mSourceSurface, ToExtendMode(mExtend), mTransform, mFilter);
     return mGfxPattern;
   }
 
   GraphicsExtend extend = (GraphicsExtend)cairo_pattern_get_extend(mPattern);
 
   switch (cairo_pattern_get_type(mPattern)) {
   case CAIRO_PATTERN_TYPE_SOLID:
     {