WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
73247
[chromium] CCLayerQuad does not return FloatQuad in correct order
https://bugs.webkit.org/show_bug.cgi?id=73247
Summary
[chromium] CCLayerQuad does not return FloatQuad in correct order
Alok Priyadarshi
Reported
2011-11-28 14:00:03 PST
CCLayerQuad::floatQuad() does not return correct FloatQuad. The orientation is reversed.
Attachments
proposed patch
(5.37 KB, patch)
2011-11-28 14:46 PST
,
Alok Priyadarshi
webkit.review.bot
: commit-queue-
Details
Formatted Diff
Diff
proposed patch
(7.73 KB, patch)
2011-11-30 11:50 PST
,
Alok Priyadarshi
no flags
Details
Formatted Diff
Diff
proposed patch
(7.89 KB, patch)
2011-12-01 14:25 PST
,
Alok Priyadarshi
no flags
Details
Formatted Diff
Diff
proposed patch
(7.91 KB, patch)
2011-12-02 12:56 PST
,
Alok Priyadarshi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Alok Priyadarshi
Comment 1
2011-11-28 14:46:22 PST
Created
attachment 116823
[details]
proposed patch I am expecting that a few compositing tests will need to rebaselined.
WebKit Review Bot
Comment 2
2011-11-28 14:48:10 PST
Attachment 116823
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:38: Extra space after ( in function call [whitespace/parens] [4] Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:39: Extra space after ( in function call [whitespace/parens] [4] Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:54: Extra space after ( in function call [whitespace/parens] [4] Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:55: Extra space after ( in function call [whitespace/parens] [4] Total errors found: 4 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alok Priyadarshi
Comment 3
2011-11-29 15:26:00 PST
ping!
James Robinson
Comment 4
2011-11-29 16:02:26 PST
Comment on
attachment 116823
[details]
proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=116823&action=review
I don't really understand this change. What is correct/incorrect about a certain orientation? What problem does this cause?
> Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:37 > + FloatPoint p1(-0.5f, -0.5f);
you shouldn't have the trailing 'f' here. see
http://www.webkit.org/coding/coding-style.html
'Floating point literals'
WebKit Review Bot
Comment 5
2011-11-29 18:02:11 PST
Comment on
attachment 116823
[details]
proposed patch
Attachment 116823
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/10678858
New failing tests: platform/chromium/compositing/huge-layer-rotated.html compositing/geometry/vertical-scroll-composited.html compositing/geometry/layer-due-to-layer-children.html fast/replaced/width100percent-textarea.html compositing/geometry/ancestor-overflow-change.html http/tests/inspector/network-preflight-options.html compositing/reflections/nested-reflection-transition.html compositing/direct-image-compositing.html compositing/shadows/shadow-drawing.html compositing/geometry/layer-due-to-layer-children-deep.html compositing/color-matching/image-color-matching.html compositing/reflections/nested-reflection-transformed.html compositing/reflections/nested-reflection-transformed2.html compositing/reflections/reflection-in-composited.html compositing/geometry/fixed-position-transform-composited-page-scale.html
Alok Priyadarshi
Comment 6
2011-11-29 20:19:39 PST
Comment on
attachment 116823
[details]
proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=116823&action=review
Sorry it does not change the orientation. It just returns a FloatQuad with vertices in the wrong sequence. Suppose you construct a CCLayerQuad with a FloatQuad(p1, p2, p3, p4). CCLayerQuad::floatQuad() will return a FloatQuad(p4, p1, p2, p3). I think CCLayerQuad::floatQuad() should return the same FloatQuad it was constructed with in the first place. Without this patch the new unit test FloatQuadConversion will fail. It does not make any difference with the current implementation but will be important for one of the fixes for
https://bugs.webkit.org/show_bug.cgi?id=72760
.
>> Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:37 >> + FloatPoint p1(-0.5f, -0.5f); > > you shouldn't have the trailing 'f' here. see
http://www.webkit.org/coding/coding-style.html
'Floating point literals'
ok.
>> Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:38 >> + FloatPoint p2( 0.5f, -0.5f); > > Extra space after ( in function call [whitespace/parens] [4]
should I fix this style recommendation? It is much more readable this way.
James Robinson
Comment 7
2011-11-29 22:01:49 PST
I think that space is probably fine for alignment. Are the layout test failures really due to this patch? That would be alarming if so.
Alok Priyadarshi
Comment 8
2011-11-30 10:43:19 PST
(In reply to
comment #7
)
> I think that space is probably fine for alignment. > > Are the layout test failures really due to this patch? That would be alarming if so.
Yes all the compositing failures are due to this patch. They are 1-2 pixel differences due to rotating the quad underlying a layer texture by 90 degrees. There are more tests to be rebaselined under webkit_gpu_tests. I have just sent a try run to find all those. I will update the patch with test-expectations as soon as I have the final list of tests. These are flaky: fast/replaced/width100percent-textarea.html http/tests/inspector/network-preflight-options.html
Alok Priyadarshi
Comment 9
2011-11-30 11:50:09 PST
Created
attachment 117242
[details]
proposed patch
WebKit Review Bot
Comment 10
2011-11-30 11:53:15 PST
Attachment 117242
[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/WebKit/chromium/tests/CCLayerQuadTest.cpp:38: Extra space after ( in function call [whitespace/parens] [4] Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:39: Extra space after ( in function call [whitespace/parens] [4] Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:54: Extra space after ( in function call [whitespace/parens] [4] Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:55: Extra space after ( in function call [whitespace/parens] [4] Total errors found: 4 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alok Priyadarshi
Comment 11
2011-12-01 13:10:11 PST
James: Any other concerns? Is it OK to commit after resolving test_expectations.txt?
Alok Priyadarshi
Comment 12
2011-12-01 14:25:55 PST
Created
attachment 117490
[details]
proposed patch Updated test_expectations.
WebKit Review Bot
Comment 13
2011-12-01 14:39:40 PST
Attachment 117490
[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/WebKit/chromium/tests/CCLayerQuadTest.cpp:38: Extra space after ( in function call [whitespace/parens] [4] Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:39: Extra space after ( in function call [whitespace/parens] [4] Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:54: Extra space after ( in function call [whitespace/parens] [4] Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:55: Extra space after ( in function call [whitespace/parens] [4] Total errors found: 4 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
James Robinson
Comment 14
2011-12-01 14:47:47 PST
I think this fine. If you don't mind I'm going to let the cr-linux bot eat the most recent patch to make sure that the test_expectations covers everything - life's been pretty hard for the WebKit gardener lately and I don't want to make it worse.
Alok Priyadarshi
Comment 15
2011-12-02 08:25:42 PST
cr-linux bot is happy.
James Robinson
Comment 16
2011-12-02 10:35:21 PST
Comment on
attachment 117490
[details]
proposed patch Here goes!
WebKit Review Bot
Comment 17
2011-12-02 11:08:39 PST
Comment on
attachment 117490
[details]
proposed patch Clearing flags on attachment: 117490 Committed
r101833
: <
http://trac.webkit.org/changeset/101833
>
WebKit Review Bot
Comment 18
2011-12-02 11:08:44 PST
All reviewed patches have been landed. Closing bug.
Alok Priyadarshi
Comment 19
2011-12-02 11:47:43 PST
The patch was rolled out in
r101841
due to invalid test_expectations.txt.
https://bugs.webkit.org/show_bug.cgi?id=73678
Alok Priyadarshi
Comment 20
2011-12-02 12:56:22 PST
Created
attachment 117672
[details]
proposed patch Now with test_expectations.txt certified by run_webkit_test --lint-test-files.
WebKit Review Bot
Comment 21
2011-12-02 12:58:01 PST
Attachment 117672
[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/WebKit/chromium/tests/CCLayerQuadTest.cpp:38: Extra space after ( in function call [whitespace/parens] [4] Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:39: Extra space after ( in function call [whitespace/parens] [4] Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:54: Extra space after ( in function call [whitespace/parens] [4] Source/WebKit/chromium/tests/CCLayerQuadTest.cpp:55: Extra space after ( in function call [whitespace/parens] [4] Total errors found: 4 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alok Priyadarshi
Comment 22
2011-12-02 13:09:09 PST
Committed
r101844
: <
http://trac.webkit.org/changeset/101844
>
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