Closed
Bug 1065526
Opened 10 years ago
Closed 10 years ago
Add a Copy() method to Moz2D Matrix
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: jwatt, Assigned: jwatt)
Details
Attachments
(2 files)
655 bytes,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
912 bytes,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
As discussed on IRC, let's add a Copy() method to Matrix to allow: dt->SetTransform(Matrix(dt->GetTransform()).Foo(...)); to be written as: dt->SetTransform(dt->GetTransform().Copy().Foo(...)); which I think makes it marginally easier to spot that we're modifying the existing transform. This is a really common usage pattern so I think it's worth it, although it may seem a little unnecessary to some.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8487432 -
Flags: review?(bas)
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8487433 -
Flags: review?(bas)
Comment 3•10 years ago
|
||
Comment on attachment 8487432 [details] [diff] [review] patch Moz2D Matrix Review of attachment 8487432 [details] [diff] [review]: ----------------------------------------------------------------- I wonder if we should use FORCEINLINE if we're going to use this a lot.
Attachment #8487432 -
Flags: review?(bas) → review+
Assignee | ||
Comment 4•10 years ago
|
||
Comment on attachment 8487433 [details] [diff] [review] patch gfxMatrix I'll add MOZ_ALWAYS_INLINE to both patches.
Attachment #8487433 -
Attachment is patch: true
Assignee | ||
Comment 5•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f758f49893e5 https://hg.mozilla.org/integration/mozilla-inbound/rev/1c30f59cc34b
Comment 6•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f758f49893e5 https://hg.mozilla.org/mozilla-central/rev/1c30f59cc34b
Assignee: nobody → jwatt
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Updated•10 years ago
|
Attachment #8487433 -
Flags: review?(bas) → review+
You need to log in
before you can comment on or make changes to this bug.
Description
•