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 159962 7b0f7f3dfa8e625a902c946efaa4f4bde2d63755
parent 159961 c13412051f524172b096b138228246b9cf48bb0b
child 159963 f81e94b06315a312c59b1b487399a82c9bfa34a2
push id37468
push usermwoodrow@mozilla.com
push dateWed, 11 Dec 2013 21:06:07 +0000
treeherdermozilla-inbound@491765fa039c [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:
     {