Closed Bug 962786 Opened 11 years ago Closed 11 years ago

Convert nsDragService to use Moz2D

Categories

(Core :: Widget, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 8 obsolete files)

The nsDragService implementations currently use gfxASurface's for drawing the drag image. We should convert this to use SourceSurface instead.
Attachment #8364110 - Flags: review?(roc)
Attachment #8364112 - Flags: review?(roc)
Attachment #8364113 - Flags: review?(roc)
Attachment #8364114 - Flags: review?(roc)
Attachment #8364115 - Flags: review?(roc)
Attachment #8364116 - Flags: review?(roc)
Attachment #8364118 - Flags: review?(roc)
I probably should have just done this all as a single change, ended up being simpler that I expected.
Yeah. Do you want to just fold all these together and have me review the combined patch? I think that will make the changes more obvious.
Goodbye pointlessly large patch queue.
Attachment #8364110 - Attachment is obsolete: true
Attachment #8364111 - Attachment is obsolete: true
Attachment #8364112 - Attachment is obsolete: true
Attachment #8364113 - Attachment is obsolete: true
Attachment #8364114 - Attachment is obsolete: true
Attachment #8364115 - Attachment is obsolete: true
Attachment #8364116 - Attachment is obsolete: true
Attachment #8364118 - Attachment is obsolete: true
Attachment #8364110 - Flags: review?(roc)
Attachment #8364111 - Flags: review?(roc)
Attachment #8364112 - Flags: review?(roc)
Attachment #8364113 - Flags: review?(roc)
Attachment #8364114 - Flags: review?(roc)
Attachment #8364115 - Flags: review?(roc)
Attachment #8364116 - Flags: review?(roc)
Attachment #8364118 - Flags: review?(roc)
Attachment #8365724 - Flags: review?(roc)
Comment on attachment 8365724 [details] [diff] [review] Convert nsDragService Review of attachment 8365724 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/base/nsIPresShell.h @@ +1037,5 @@ > + virtual mozilla::TemporaryRef<mozilla::gfx::SourceSurface> > + RenderNode(nsIDOMNode* aNode, > + nsIntRegion* aRegion, > + nsIntPoint& aPoint, > + nsIntRect* aScreenRect) = 0; Add typedefs for TemporaryRef and SourceSurface to this class to avoid prefixes ::: widget/xpwidgets/nsBaseDragService.h @@ +83,5 @@ > nsresult DrawDrag(nsIDOMNode* aDOMNode, > nsIScriptableRegion* aRegion, > int32_t aScreenX, int32_t aScreenY, > nsIntRect* aScreenDragRect, > + mozilla::RefPtr<mozilla::gfx::SourceSurface>* aSurface, add a typedef for RefPtr and SourceSurface to this class to avoid this prefix madness
Attachment #8365724 - Flags: review?(roc) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Depends on: 980436
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: