mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 722164 - Set Azure Quartz Canvas image interpolation to low for better performance. r=jmuizelaar
This commit is contained in:
parent
3984ed0152
commit
33ac1e18fe
@ -865,6 +865,14 @@ DrawTargetCG::Init(const IntSize &aSize, SurfaceFormat &)
|
||||
// so flip it to the top left
|
||||
CGContextTranslateCTM(mCg, 0, mSize.height);
|
||||
CGContextScaleCTM(mCg, 1, -1);
|
||||
// See Bug 722164 for performance details
|
||||
// Medium or higher quality lead to expensive interpolation
|
||||
// for canvas we want to use low quality interpolation
|
||||
// to have competitive performance with other canvas
|
||||
// implementation.
|
||||
// XXX: Create input parameter to control interpolation and
|
||||
// use the default for content.
|
||||
CGContextSetInterpolationQuality(mCg, kCGInterpolationLow);
|
||||
|
||||
//XXX: set correct format
|
||||
mFormat = FORMAT_B8G8R8A8;
|
||||
|
Loading…
Reference in New Issue
Block a user