Closed Bug 964731 Opened 10 years ago Closed 10 years ago

Convert ImageLayerD3D10 and CreateOptimalSurface/CreateOptimalMaskSurface to Moz2D

Categories

(Core :: Graphics: Layers, defect)

31 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31
Tracking Status
firefox31 --- fixed

People

(Reporter: ali, Assigned: jwatt)

References

Details

(Whiteboard: [qa-] )

Attachments

(1 file, 1 obsolete file)

Remove the calls to Image::DeprecatedGetAsSurface from ImageLayerD3D10::GetImageSRView.
Blocks: 960524
Depends on: 964733
Hi Ali, Is this unconfirmed because you're not sure it is a bug, or because you need to have editbug permissions for Bugzilla? Let me know. Thanks!
Flags: needinfo?(ali)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Ali, I went ahead and gave you canconfirm permissions based on your bugzilla history. Let me know if you need anything else!
Flags: needinfo?(ali)
Thanks Liz! It was indeed because of the latter.
The ImageLayerD3D10 code is strongly intertwined with CreateOptimalSurface/CreateOptimalMaskSurface, so I'm also going to convert them as part of this bug.
Summary: Remove gfxASurface usage from ImageLayerD3D10::GetImageSRView → Convert ImageLayerD3D10 and CreateOptimalSurface/CreateOptimalMaskSurface to Moz2D
OS: Mac OS X → All
Hardware: x86 → All
Attached patch patch (obsolete) — Splinter Review
Bas, I'm trying to maintain the gKeyD3D10Texture optimization, although doing so is messy.
Assignee: nobody → jwatt
Attachment #8400694 - Flags: review?(bas)
Also you can ignore the |data.mDeprecatedSurface = nullptr| line. I'll land this together with the patch is bug 960524 which kills off mDeprecatedSurface.
Comment on attachment 8400694 [details] [diff] [review]
patch

Review of attachment 8400694 [details] [diff] [review]:
-----------------------------------------------------------------

This patch looks good, so this r- is not related to the quality of the patch, but we should really fix the native surface handling along with this probably.. That would remove a lot of the complexity.

::: layout/base/FrameLayerBuilder.cpp
@@ +3965,5 @@
>                               aRoundedRectClipCount);
>  
> +    RefPtr<SourceSurface> surface = dt->Snapshot();
> +#ifdef MOZ_ENABLE_D3D10_LAYER
> +    void* data = dt->GetUserData(gKeyD3D10Texture);

You want to use GetNativeSurface here on the dt and not depend on the userdata at least for the DrawTarget where you have that option. I wonder if we should add a GetNativeSurface on SourceSurface as well. I suspect we probably do..
Attachment #8400694 - Flags: review?(bas) → review-
Depends on: 993319
Attached patch patchSplinter Review
Attachment #8400694 - Attachment is obsolete: true
Attachment #8403651 - Flags: review?(bas)
No longer depends on: 964733
Attachment #8403651 - Flags: review?(bas) → review+
https://hg.mozilla.org/mozilla-central/rev/70af90b7e08b
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
I'm going to go ahead and mark this qa- since it's been in since Nightly and hasn't caused any obvious problems.
Whiteboard: [qa?] → [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: