In the <http://trac.webkit.org/changeset/214635>, we needed to calculate the image scaling factor for all platforms. It was needed do the calculation: sizeForDrawing = sizeOfImage * imageScaleFactor. But this makes ImageSource::subsamplingLevelForScale() now returns a SubsamplingLevel not equal to SubsamplingLevel::Default if the scaleFactor is greater than { 1, 1} for all platforms. The subsamplingLevel should only be used for CG.
Created attachment 305997 [details] Patch
Created attachment 306002 [details] Patch
Comment on attachment 306002 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=306002&action=review > Source/WebCore/platform/graphics/GraphicsContext.h:502 > + FloatSize scaleFactor(const FloatRect& destRect, const FloatRect& srcRect) const; This needs a better name that explains why two rects are passed in.
Created attachment 306022 [details] Patch
Comment on attachment 306002 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=306002&action=review >> Source/WebCore/platform/graphics/GraphicsContext.h:502 >> + FloatSize scaleFactor(const FloatRect& destRect, const FloatRect& srcRect) const; > > This needs a better name that explains why two rects are passed in. I renamed it to scaleFactorForDrawing().
Created attachment 306627 [details] Patch
Comment on attachment 306627 [details] Patch Clearing flags on attachment: 306627 Committed r215163: <http://trac.webkit.org/changeset/215163>
All reviewed patches have been landed. Closing bug.