Skip to content

compositing: Don't translate points to layer space when using WebRender. - #11537

Merged
bors-servo merged 1 commit into
servo:masterfrom
pcwalton:webrender-remove-layer-space-translation
Jun 3, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
pcwalton:webrender-remove-layer-space-translation

Conversation

@pcwalton

@pcwalton pcwalton commented Jun 1, 2016 •

Copy link
Copy Markdown
Contributor

This makes mouse events take the same code path, regardless of whether
WebRender is in use or not. This approach enables accurate
display-list-based hit testing when WebRender is in use.

Closes #11108.

r? @glennw


This change is Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jun 1, 2016
@glennw

glennw commented Jun 2, 2016

Copy link
Copy Markdown
Member

@pcwalton This looks good to me. Could you just verify that it works with --device-pixel-ratio set to 1 and 2, and then r=me.

@pcwalton
pcwalton force-pushed the webrender-remove-layer-space-translation branch from 5e7f0c8 to 9a9762f Compare June 2, 2016 22:31
@highfive

highfive commented Jun 2, 2016

Copy link
Copy Markdown

New code was committed to pull request.

@pcwalton

pcwalton commented Jun 2, 2016

Copy link
Copy Markdown
Contributor Author

Verified that it works with different device pixel ratios.

@pcwalton

pcwalton commented Jun 2, 2016

Copy link
Copy Markdown
Contributor Author

@bors-servo: r=glennw

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 9a9762f has been approved by glennw

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jun 2, 2016
This makes mouse events take the same code path, regardless of whether
WebRender is in use or not. This approach enables accurate
display-list-based hit testing when WebRender is in use.

Closes servo#11108.
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 9a9762f with merge 51cfb5b...

bors-servo pushed a commit that referenced this pull request Jun 2, 2016
…ion, r=glennw

compositing: Don't translate points to layer space when using WebRender.

This makes mouse events take the same code path, regardless of whether
WebRender is in use or not. This approach enables accurate
display-list-based hit testing when WebRender is in use.

Closes #11108.

r? @glennw

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11537)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-wpt

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jun 2, 2016
@pcwalton

pcwalton commented Jun 2, 2016

Copy link
Copy Markdown
Contributor Author

@bors-servo: retry

Seems infra related.

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 9a9762f with merge 19172af...

bors-servo pushed a commit that referenced this pull request Jun 2, 2016
…ion, r=glennw

compositing: Don't translate points to layer space when using WebRender.

This makes mouse events take the same code path, regardless of whether
WebRender is in use or not. This approach enables accurate
display-list-based hit testing when WebRender is in use.

Closes #11108.

r? @glennw

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11537)
<!-- Reviewable:end -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Jun 2, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-wpt

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jun 3, 2016
@highfive

highfive commented Jun 3, 2016

Copy link
Copy Markdown
  ▶ Unexpected subtest result in /webgl/conformance-1.0.3/conformance/textures/default-texture.html:
  │ FAIL [expected PASS] WebGL test #0: at (0, 0) expected: 0,0,0,255 was 255,255,255,255
  │   → assert_true: at (0, 0) expected: 0,0,0,255 was 255,255,255,255 expected true got false
  │ 
  │ reportTestResultsToHarness/&lt;@http://web-platform.test:8000/webgl/conformance-1.0.3/resources/js-test-pre.js:87:9
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1397:20
  │ test@http://web-platform.test:8000/resources/testharness.js:495:9
  │ reportTestResultsToHarness@http://web-platform.test:8000/webgl/conformance-1.0.3/resources/js-test-pre.js:86:7
  │ testFailed@http://web-platform.test:8000/webgl/conformance-1.0.3/resources/js-test-pre.js:152:5
  │ checkCanvasRectColor@http://web-platform.test:8000/webgl/conformance-1.0.3/conformance/resources/webgl-test-utils.js:1046:9
  │ checkCanvasRect@http://web-platform.test:8000/webgl/conformance-1.0.3/conformance/resources/webgl-test-utils.js:1072:3
  │ checkCanvas@http://web-platform.test:8000/webgl/conformance-1.0.3/conformance/resources/webgl-test-utils.js:1095:3
  └ @http://web-platform.test:8000/webgl/conformance-1.0.3/conformance/textures/default-texture.html:14:1

@larsbergstrom

Copy link
Copy Markdown
Contributor

@bors-servo retry

  • infra (new servo-mac1)

@larsbergstrom

Copy link
Copy Markdown
Contributor

Weird, I see the mac-rel-wpt failure as:

./mach build --release
 in dir /Users/servo/buildbot/slave/mac-rel-wpt/build (timeout 1200 secs)
 watching logfiles {}
 argv: ['./mach', 'build', '--release']
 environment:
  CARGO_HOME=/Users/servo/.cargo
  CCACHE=/usr/local/bin/ccache
  HOME=/Users/servo
  LOGNAME=servo
  PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
  PWD=/Users/servo/buildbot/slave/mac-rel-wpt/build
  RUST_BACKTRACE=1
  SERVO_CACHE_DIR=/Users/servo/.servo
  SHELL=/bin/bash
  TMPDIR=/var/folders/vw/bcpmp_yj5c304vm86dyyq8800000gp/T/
  USER=servo
  XPC_FLAGS=0x0
  XPC_SERVICE_NAME=buildslave
  __CF_USER_TEXT_ENCODING=0x1F6:0x0:0x0
 using PTY: False
Pip failed to execute properly: Could not open requirements file: [Errno 2] No such file or directory: '/Users/servo/buildbot/slave/mac-rel-wpt/build/tests/wpt/harness/requirements.txt'

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 9a9762f with merge 77e6ea9...

bors-servo pushed a commit that referenced this pull request Jun 3, 2016
…ion, r=glennw

compositing: Don't translate points to layer space when using WebRender.

This makes mouse events take the same code path, regardless of whether
WebRender is in use or not. This approach enables accurate
display-list-based hit testing when WebRender is in use.

Closes #11108.

r? @glennw

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11537)
<!-- Reviewable:end -->
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Jun 3, 2016
@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jun 3, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows

@bors-servo
bors-servo merged commit 9a9762f into servo:master Jun 3, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jun 3, 2016
@pcwalton
pcwalton deleted the webrender-remove-layer-space-translation branch June 3, 2016 02:39
@paulrouget

Copy link
Copy Markdown
Contributor

Could this have caused this: #11648

aneeshusa added a commit to aneeshusa/webrender_traits that referenced this pull request Jun 11, 2016
This change is being made in Servo for security purposes;
this commit updates the definition to match for Webrender.
See the Servo repo for the reasoning behind this change.

Additionally, remove the TranslatePointToLayerSpace message
from the API; as of servo/servo#11537 this is no longer used.
Servo now uses a unified code path for mouse events whether
WebRender is in use or not. (Mouse events are always dispatched
to the root pipeline, removing the need to translate into
layer space.
aneeshusa added a commit to aneeshusa/webrender that referenced this pull request Jun 11, 2016
As of servo/servo#11537 this is no longer used, as Servo now uses
a unified code path for mouse events whether WebRender is in use or not.
(Mouse events are always dispatched to the root pipeline, removing the
need to translate into layer space.)
aneeshusa added a commit to aneeshusa/webrender_traits that referenced this pull request Jul 5, 2016
This change is being made in Servo for security purposes;
this commit updates the definition to match for Webrender.
See the Servo repo for the reasoning behind this change.

Additionally, remove the TranslatePointToLayerSpace message
from the API; as of servo/servo#11537 this is no longer used.
Servo now uses a unified code path for mouse events whether
WebRender is in use or not. (Mouse events are always dispatched
to the root pipeline, removing the need to translate into
layer space.
aneeshusa added a commit to aneeshusa/webrender that referenced this pull request Jul 5, 2016
As of servo/servo#11537 this is no longer used, as Servo now uses
a unified code path for mouse events whether WebRender is in use or not.
(Mouse events are always dispatched to the root pipeline, removing the
need to translate into layer space.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants