Skip to content
This repository was archived by the owner on Jun 8, 2020. It is now read-only.

Make create_source_surface_from_data fallible. - #201

Merged
bors-servo merged 1 commit into
servo:masterfrom
pcwalton:fallible-create-source-surface-from-data
Sep 30, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
pcwalton:fallible-create-source-surface-from-data

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

Some Azure backends will return a null source surface if the size is
zero, which was causing a crash. This patch forces callers to handle
this case by returning an option.

r? @mbrubeck

Review on Reviewable

Some Azure backends will return a null source surface if the size is
zero, which was causing a crash. This patch forces callers to handle
this case by returning an option.
@mbrubeck

Copy link
Copy Markdown
Contributor

@bors-servo r+

@bors-servo

Copy link
Copy Markdown

📌 Commit e6eff36 has been approved by mbrubeck

@bors-servo

Copy link
Copy Markdown

⌛ Testing commit e6eff36 with merge f517e08...

bors-servo pushed a commit that referenced this pull request Sep 30, 2015
…a, r=mbrubeck

Make `create_source_surface_from_data` fallible.

Some Azure backends will return a null source surface if the size is
zero, which was causing a crash. This patch forces callers to handle
this case by returning an option.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/rust-azure/201)
<!-- Reviewable:end -->
pcwalton added a commit to pcwalton/servo that referenced this pull request Sep 30, 2015
incorporate the fix for zero-sized shmem on Mac.

Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10.

Closes servo#7422.
@bors-servo

Copy link
Copy Markdown

☀️ Test successful - travis

@bors-servo
bors-servo merged commit e6eff36 into servo:master Sep 30, 2015
@bors-servo

Copy link
Copy Markdown

☔ The latest upstream changes (presumably #201) made this pull request unmergeable. Please resolve the merge conflicts.

@pcwalton
pcwalton deleted the fallible-create-source-surface-from-data branch September 30, 2015 22:06
pcwalton added a commit to pcwalton/servo that referenced this pull request Oct 1, 2015
incorporate the fix for zero-sized shmem on Mac.

Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10.

Closes servo#7422.
bors-servo pushed a commit to servo/servo that referenced this pull request Oct 1, 2015
Handle zero-sized source surfaces properly, and upgrade `ipc-channel` to incorporate the fix for zero-sized shmem on Mac.

Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10.

Closes #7422.

r? @mbrubeck (don't r+ until the upstream dependencies have landed)

cc @jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7802)
<!-- Reviewable:end -->
jrmuizel pushed a commit to jrmuizel/gecko-cinnabar that referenced this pull request Jun 12, 2017
…upgrade `ipc-channel` to incorporate the fix for zero-sized shmem on Mac (from pcwalton:zero-size-source-surfaces); r=mbrubeck

Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10.

Closes #7422.

r? @mbrubeck (don't r+ until the upstream dependencies have landed)

cc @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: e2048d57c4c0602c5a6b82db8cb76e6c3e5467fa
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Sep 30, 2019
…upgrade `ipc-channel` to incorporate the fix for zero-sized shmem on Mac (from pcwalton:zero-size-source-surfaces); r=mbrubeck

Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10.

Closes #7422.

r? mbrubeck (don't r+ until the upstream dependencies have landed)

cc jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: e2048d57c4c0602c5a6b82db8cb76e6c3e5467fa

UltraBlame original commit: d2e5c6f463146d88bb7e7b196cbf42161192c895
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
…upgrade `ipc-channel` to incorporate the fix for zero-sized shmem on Mac (from pcwalton:zero-size-source-surfaces); r=mbrubeck

Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10.

Closes #7422.

r? mbrubeck (don't r+ until the upstream dependencies have landed)

cc jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: e2048d57c4c0602c5a6b82db8cb76e6c3e5467fa

UltraBlame original commit: d2e5c6f463146d88bb7e7b196cbf42161192c895
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
…upgrade `ipc-channel` to incorporate the fix for zero-sized shmem on Mac (from pcwalton:zero-size-source-surfaces); r=mbrubeck

Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10.

Closes #7422.

r? mbrubeck (don't r+ until the upstream dependencies have landed)

cc jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: e2048d57c4c0602c5a6b82db8cb76e6c3e5467fa

UltraBlame original commit: d2e5c6f463146d88bb7e7b196cbf42161192c895
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants