Bug 145878 - [EFL] canvas/philip/tests/toDataURL.jpeg.foo tests have been failed since r185417.
Summary: [EFL] canvas/philip/tests/toDataURL.jpeg.foo tests have been failed since r18...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: KwangHyuk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-11 04:56 PDT by Hunseop Jeong
Modified: 2015-06-12 09:45 PDT (History)
4 users (show)

See Also:


Attachments
WIP (1.52 KB, patch)
2015-06-11 06:04 PDT, Hunseop Jeong
no flags Details | Formatted Diff | Diff
Patch (3.54 KB, patch)
2015-06-11 09:04 PDT, KwangHyuk
no flags Details | Formatted Diff | Diff
Patch (4.86 KB, patch)
2015-06-11 10:13 PDT, KwangHyuk
no flags Details | Formatted Diff | Diff
screenshot - chrome browser (53.27 KB, image/png)
2015-06-11 10:19 PDT, KwangHyuk
no flags Details
screenshot - firefox (59.76 KB, image/png)
2015-06-11 10:19 PDT, KwangHyuk
no flags Details
Patch (4.55 KB, patch)
2015-06-12 08:37 PDT, KwangHyuk
no flags Details | Formatted Diff | Diff
RB conversion (4.55 KB, patch)
2015-06-12 09:19 PDT, KwangHyuk
no flags Details | Formatted Diff | Diff
RB conversion (4.55 KB, patch)
2015-06-12 09:21 PDT, KwangHyuk
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hunseop Jeong 2015-06-11 04:56:05 PDT
canvas/philip/tests/toDataURL.jpeg.primarycolours.html [ Failure ]
canvas/philip/tests/toDataURL.jpeg.quality.basic.html [ Failure ]
Comment 1 KwangHyuk 2015-06-11 05:13:09 PDT
(In reply to comment #0)
> canvas/philip/tests/toDataURL.jpeg.primarycolours.html [ Failure ]
> canvas/philip/tests/toDataURL.jpeg.quality.basic.html [ Failure ]

Oops R-B converting should be there on original source code of JPEG encoder.
Could you fix it ?
May be, you should use EFL macro.
Comment 2 Hunseop Jeong 2015-06-11 06:04:26 PDT
Created attachment 254718 [details]
WIP

I uploaded the patch to fix the "toDataURL.jpeg.primarycolours" test.
But it doesn't look good to me.
Comment 3 KwangHyuk 2015-06-11 08:17:56 PDT
(In reply to comment #2)
> Created attachment 254718 [details]
> WIP
> 
> I uploaded the patch to fix the "toDataURL.jpeg.primarycolours" test.
> But it doesn't look good to me.

Input data seem to be pre-processed in order to let JPEGImageEncoder handle it correctly.
Comment 4 KwangHyuk 2015-06-11 09:04:01 PDT
Created attachment 254726 [details]
Patch
Comment 5 KwangHyuk 2015-06-11 09:05:57 PDT
toDataURL.​jpeg.​primarycolours : passed
toDataURL.​jpeg.​quality.​basic : still has more issue related with image quality.

still working in progress.
Comment 6 KwangHyuk 2015-06-11 10:13:58 PDT
Created attachment 254727 [details]
Patch
Comment 7 KwangHyuk 2015-06-11 10:18:15 PDT
for this test toDataURL.​jpeg.​quality.​basic, Chrome and firefox shows same result. (refer the attached screenshot)
Therefore test should be ignored.
Comment 8 KwangHyuk 2015-06-11 10:19:19 PDT
Created attachment 254728 [details]
screenshot - chrome browser
Comment 9 KwangHyuk 2015-06-11 10:19:46 PDT
Created attachment 254729 [details]
screenshot - firefox
Comment 10 Gyuyoung Kim 2015-06-11 19:47:28 PDT
Comment on attachment 254727 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=254727&action=review

> Source/WebCore/platform/graphics/efl/ImageBufferEfl.cpp:72
> +        int w = cairo_image_surface_get_width(image);

s/w/width/g

> Source/WebCore/platform/graphics/efl/ImageBufferEfl.cpp:73
> +        int h = cairo_image_surface_get_height(image);

s/h/height/g

> Source/WebCore/platform/image-encoders/JPEGImageEncoder.cpp:87
> +{    

Added unnecessary spaces.
Comment 11 KwangHyuk 2015-06-12 08:37:53 PDT
Created attachment 254802 [details]
Patch
Comment 12 KwangHyuk 2015-06-12 08:39:43 PDT
(In reply to comment #10)
> Comment on attachment 254727 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=254727&action=review
> 
> > Source/WebCore/platform/graphics/efl/ImageBufferEfl.cpp:72
> > +        int w = cairo_image_surface_get_width(image);
> 
> s/w/width/g
> 
Thank you, fixed.

> > Source/WebCore/platform/graphics/efl/ImageBufferEfl.cpp:73
> > +        int h = cairo_image_surface_get_height(image);
> 
> s/h/height/g
> 
> > Source/WebCore/platform/image-encoders/JPEGImageEncoder.cpp:87
> > +{    
> 
> Added unnecessary spaces.

Fixed too. :)
Comment 13 KwangHyuk 2015-06-12 09:19:51 PDT
Created attachment 254804 [details]
RB conversion
Comment 14 KwangHyuk 2015-06-12 09:21:19 PDT
Created attachment 254805 [details]
RB conversion
Comment 15 WebKit Commit Bot 2015-06-12 09:45:51 PDT
Comment on attachment 254805 [details]
RB conversion

Clearing flags on attachment: 254805

Committed r185506: <http://trac.webkit.org/changeset/185506>
Comment 16 WebKit Commit Bot 2015-06-12 09:45:57 PDT
All reviewed patches have been landed.  Closing bug.