Closed Bug 784260 Opened 12 years ago Closed 12 years ago

[Azure] DrawTargetD2D::CreateBrushForPattern should be able to deal with surfaces from other Azure backends

Categories

(Core :: Graphics, defect)

15 Branch
All
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: nrc, Assigned: nrc)

Details

Attachments

(2 files)

Crashes with a null pointer exception in D2D code.
OS: All → Windows 7
Attached file test case
You need to have D3D layers and D2D enabled, then prefer the Cairo Azure backend, then load the test case (you'll need some local file called hippo.jpg, or change to some other image name, doesn't seem to work with remote images though).

Expected: a 100x100 part of the image at the top left, and the whole image on the right

Actual result: crashes
Attached patch patchSplinter Review
Attachment #653659 - Flags: review?(bas.schouten)
Comment on attachment 653659 [details] [diff] [review]
patch

Looks fine to me, keep in mind this is not encouraged practice :).
Attachment #653659 - Flags: review?(bas.schouten) → review+
(In reply to Bas Schouten (:bas) from comment #3)
> Comment on attachment 653659 [details] [diff] [review]
> patch
> 
> Looks fine to me, keep in mind this is not encouraged practice :).

Having different backends for content and canvas? Or passing surfaces from one backend to another? Because the latter will always happen if we allow the former.
https://hg.mozilla.org/mozilla-central/rev/ca3a3ff0af73
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: