WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
67545
[Cairo] InterpolationNone for image scaling should use nearest-neighbor scaling
https://bugs.webkit.org/show_bug.cgi?id=67545
Summary
[Cairo] InterpolationNone for image scaling should use nearest-neighbor scaling
Martin Robinson
Reported
2011-09-02 17:51:26 PDT
The problem is readily evident when viewing pixel dump results in GtkLauncher. Instead of using nearest-neighbor scaling the resulting images use CAIRO_FILTER_FAST, which leads to distortion in the output. Scaled images with InterpolationNone should use CAIRO_FILTER_NEAREST.
Attachments
Patch
(5.70 KB, patch)
2011-09-02 17:55 PDT
,
Martin Robinson
xan.lopez
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Martin Robinson
Comment 1
2011-09-02 17:55:29 PDT
Created
attachment 106230
[details]
Patch
Xan Lopez
Comment 2
2011-09-02 18:03:51 PDT
Comment on
attachment 106230
[details]
Patch Looks good to me.
Ryuan Choi
Comment 3
2011-09-02 19:13:44 PDT
Comment on
attachment 106230
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=106230&action=review
> Source/WebCore/platform/graphics/cairo/PlatformContextCairo.cpp:162 > case InterpolationNone: > + cairo_pattern_set_filter(pattern.get(), CAIRO_FILTER_NEAREST); > case InterpolationLow: > cairo_pattern_set_filter(pattern.get(), CAIRO_FILTER_FAST); > break;
IMHO, break looks missing.
Xan Lopez
Comment 4
2011-09-03 04:51:04 PDT
Comment on
attachment 106230
[details]
Patch Absolutely right, break is missing. Sorry about that.
Martin Robinson
Comment 5
2011-09-09 14:55:00 PDT
I don't see this issue any longer oddly enough! I'm going to close for now. I'll reopen if I observe it again.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug