Closed
Bug 1266430
Opened 8 years ago
Closed 8 years ago
Support offsets in DrawTargetD2D1::CopySurface when using a DataSourceSurface
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: bas.schouten, Assigned: bas.schouten)
References
Details
Attachments
(1 file)
No description provided.
Assignee | ||
Comment 1•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/48169/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/48169/
Attachment #8743889 -
Flags: review?(jmuizelaar)
Comment 2•8 years ago
|
||
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)
Assignee | ||
Comment 3•8 years ago
|
||
(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 4•8 years ago
|
||
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+
Updated•8 years ago
|
Flags: needinfo?(jmuizelaar)
Comment 6•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f27d845244c5
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•