Closed Bug 1266430 Opened 9 years ago Closed 9 years ago

Support offsets in DrawTargetD2D1::CopySurface when using a DataSourceSurface

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: bas.schouten, Assigned: bas.schouten)

References

Details

Attachments

(1 file)

No description provided.
Blocks: 1266432
Comment on attachment 8743889 [details] MozReview Request: Bug 1266430: Support offsets in DrawTargetD2D1::CopySurface when using PartialUploading. r=jrmuizel https://reviewboard.mozilla.org/r/48169/#review45377 ::: gfx/2d/DrawTargetD2D1.cpp:380 (Diff revision 1) > - gfxDebug() << *this << ": At this point complex partial uploads are not supported for CopySurface."; > + gfxDebug() << *this << ": At this point scaled partial uploads are not supported for CopySurface."; > return; > } > > + IntRect sourceRect = aSourceRect; > + sourceRect.x += (aDestination.x - aSourceRect.x) - mat._31; Doesn't mat._31 == (aDestination.x - aSourceRect.x)?
Attachment #8743889 - Flags: review?(jmuizelaar)
(In reply to Jeff Muizelaar [:jrmuizel] from comment #2) > Comment on attachment 8743889 [details] > MozReview Request: Bug 1266430: Support offsets in > DrawTargetD2D1::CopySurface when using PartialUploading. r=jrmuizel > > https://reviewboard.mozilla.org/r/48169/#review45377 > > ::: gfx/2d/DrawTargetD2D1.cpp:380 > (Diff revision 1) > > - gfxDebug() << *this << ": At this point complex partial uploads are not supported for CopySurface."; > > + gfxDebug() << *this << ": At this point scaled partial uploads are not supported for CopySurface."; > > return; > > } > > > > + IntRect sourceRect = aSourceRect; > > + sourceRect.x += (aDestination.x - aSourceRect.x) - mat._31; > > Doesn't mat._31 == (aDestination.x - aSourceRect.x)? The partial upload function adjusts the matrix for the offset it might have uploaded from, this causes that offset to be taken into account.
Flags: needinfo?(jmuizelaar)
Comment on attachment 8743889 [details] MozReview Request: Bug 1266430: Support offsets in DrawTargetD2D1::CopySurface when using PartialUploading. r=jrmuizel https://reviewboard.mozilla.org/r/48169/#review45607 Ah screwed over by C++'s implicit reference taking syntax. I wouldn't mind a comment about GetImageSurface modify mat.
Attachment #8743889 - Flags: review+
Flags: needinfo?(jmuizelaar)
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: