Bug 100401 - Move ImageOrientation transform back in CG space (lower-left origin), adapt the skia code to work with that
Summary: Move ImageOrientation transform back in CG space (lower-left origin), adapt t...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nico Weber
URL:
Keywords:
Depends on:
Blocks: 100191
  Show dependency treegraph
 
Reported: 2012-10-25 11:46 PDT by Nico Weber
Modified: 2012-10-30 09:47 PDT (History)
6 users (show)

See Also:


Attachments
Patch (11.80 KB, patch)
2012-10-25 11:47 PDT, Nico Weber
no flags Details | Formatted Diff | Diff
Patch (12.26 KB, patch)
2012-10-25 11:54 PDT, Nico Weber
no flags Details | Formatted Diff | Diff
Patch (11.53 KB, patch)
2012-10-25 12:12 PDT, Nico Weber
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Weber 2012-10-25 11:46:01 PDT
Move ImageOrientation transform back in CG space (lower-left origin), adapt the skia code to work with that
Comment 1 Nico Weber 2012-10-25 11:47:17 PDT
Created attachment 170700 [details]
Patch
Comment 2 Nico Weber 2012-10-25 11:47:37 PDT
Comment on attachment 170700 [details]
Patch

(upload error)
Comment 3 Nico Weber 2012-10-25 11:54:43 PDT
Created attachment 170702 [details]
Patch
Comment 4 WebKit Review Bot 2012-10-25 11:56:45 PDT
Attachment 170702 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/plat..." exit_code: 1
Source/WebCore/rendering/RenderObject.cpp:2234:  Should have a space between // and comment  [whitespace/comments] [4]
Total errors found: 1 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Nico Weber 2012-10-25 12:12:23 PDT
Created attachment 170707 [details]
Patch
Comment 6 Eric Seidel (no email) 2012-10-25 13:03:53 PDT
Comment on attachment 170707 [details]
Patch

Thanks.
Comment 7 Eric Seidel (no email) 2012-10-25 13:06:18 PDT
Noel:  Nico and I discussed on IRC.  This patch should bring us "back" to how things worked before Nico started working on this.  He said he'd post a patch to show what converting from our current right-handed-system to a left-handed-system would look like.
Comment 8 WebKit Review Bot 2012-10-25 13:32:34 PDT
Comment on attachment 170707 [details]
Patch

Clearing flags on attachment: 170707

Committed r132525: <http://trac.webkit.org/changeset/132525>
Comment 9 WebKit Review Bot 2012-10-25 13:32:38 PDT
All reviewed patches have been landed.  Closing bug.
Comment 10 noel gordon 2012-10-25 18:53:57 PDT
(In reply to comment #7)
> Noel:  Nico and I discussed on IRC.  This patch should bring us "back" to how things worked before Nico started working on this.  He said he'd post a patch to show what converting from our current right-handed-system to a left-handed-system would look like.

"back" sounds good.  We should also unskip image-orientation-css.html in chromium TestExpectations and start generating its pixel results.  We should compare:

http://trac.webkit.org/browser/trunk/Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp?rev=127170#L47
http://trac.webkit.org/browser/trunk/Source/WebCore/platform/graphics/skia/ImageSkia.cpp?rev=127170#L292

and note that one of them mentions orientation!

Note: I'm AFK until Tuesday AEST.
Comment 11 Nico Weber 2012-10-25 21:57:53 PDT
(In reply to comment #10)
> (In reply to comment #7)
> > Noel:  Nico and I discussed on IRC.  This patch should bring us "back" to how things worked before Nico started working on this.  He said he'd post a patch to show what converting from our current right-handed-system to a left-handed-system would look like.
> 
> "back" sounds good.  We should also unskip image-orientation-css.html in chromium TestExpectations and start generating its pixel results.

I checked in expectations in bug 100434. I'll unskip the test tomorrow.

> We should compare:
> 
> http://trac.webkit.org/browser/trunk/Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp?rev=127170#L47
> http://trac.webkit.org/browser/trunk/Source/WebCore/platform/graphics/skia/ImageSkia.cpp?rev=127170#L292
> 
> and note that one of them mentions orientation!

Good catch, uploaded a patch to https://bugs.webkit.org/show_bug.cgi?id=100456 (I don't think it makes a difference in practice, see changelog entry in that bug).
Comment 12 noel gordon 2012-10-30 06:10:11 PDT
(In reply to comment #11)
>
> > "back" sounds good.  We should also unskip image-orientation-css.html in chromium TestExpectations and start generating its pixel results.
> 
> I checked in expectations in bug 100434. I'll unskip the test tomorrow.

That's for image-orientation.html.  I was asking about "image-orientation-css".html :)
Comment 13 noel gordon 2012-10-30 06:12:12 PDT
(In reply to comment #11)

> > We should compare:
> > 
> > http://trac.webkit.org/browser/trunk/Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp?rev=127170#L47
> > http://trac.webkit.org/browser/trunk/Source/WebCore/platform/graphics/skia/ImageSkia.cpp?rev=127170#L292
> > 
> > and note that one of them mentions orientation!
> 
> Good catch, uploaded a patch to https://bugs.webkit.org/show_bug.cgi?id=100456 (I don't think it makes a difference in practice, see changelog entry in that bug).

Ok thanks, added bug 100456 to the chromium orientation meta bug.
Comment 14 Nico Weber 2012-10-30 09:47:01 PDT
(In reply to comment #12)
> (In reply to comment #11)
> >
> > > "back" sounds good.  We should also unskip image-orientation-css.html in chromium TestExpectations and start generating its pixel results.
> > 
> > I checked in expectations in bug 100434. I'll unskip the test tomorrow.
> 
> That's for image-orientation.html.  I was asking about "image-orientation-css".html :)

Oh, I thought that test used the image-orientation css stuff. I'm enabling it in bug 100767, and I'll land baselines for it later today.