Bug 962667 - Don't treat quartz surfaces as optimized, r=jrmuizel
authorMichael Wu <mwu@mozilla.com>
Fri, 31 Jan 2014 17:57:19 -0500
changeset 166318 fc3d3be15c0ce1c237f4014379f5bfdbc93bc311
parent 166317 977fb2494568352b1dd3f2cbde89b9cfd809a095
child 166319 5cf89fb575c4eb060d90d799502082706aae745d
push id39177
push usermwu@mozilla.com
push dateFri, 31 Jan 2014 22:58:44 +0000
treeherdermozilla-inbound@fc3d3be15c0c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs962667
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 962667 - Don't treat quartz surfaces as optimized, r=jrmuizel
image/src/imgFrame.cpp
--- a/image/src/imgFrame.cpp
+++ b/image/src/imgFrame.cpp
@@ -286,17 +286,16 @@ nsresult imgFrame::Optimize()
       mOptSurface = mWinSurface;
     }
   }
 #endif
 
 #ifdef XP_MACOSX
   if (mQuartzSurface) {
     mQuartzSurface->Flush();
-    mOptSurface = mQuartzSurface;
   }
 #endif
 
   if (mOptSurface == nullptr)
     mOptSurface = gfxPlatform::GetPlatform()->OptimizeImage(mImageSurface, mFormat);
 
   if (mOptSurface) {
     mImageSurface = nullptr;