Closed
Bug 1379404
Opened 8 years ago
Closed 8 years ago
Fine tune text painting
Categories
(Core :: Web Painting, enhancement)
Core
Web Painting
Tracking
()
RESOLVED
FIXED
mozilla56
| Tracking | Status | |
|---|---|---|
| firefox56 | --- | fixed |
People
(Reporter: u459114, Assigned: u459114)
References
Details
Attachments
(4 files)
1. Pevent unnecessary gfxContext::Save/Load
2. Prevent AzureState copy in GlyphBufferAzure::Flush
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Attachment #8884560 -
Flags: review?(matt.woodrow)
Attachment #8884561 -
Flags: review?(matt.woodrow)
Attachment #8884562 -
Flags: review?(matt.woodrow)
Attachment #8884563 -
Flags: review?(matt.woodrow)
Comment 8•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8884560 [details]
Bug 1379404 - Part 1. Prevent using gfxContext::Save/Restore in nsTextFrame.
https://reviewboard.mozilla.org/r/155446/#review160522
Attachment #8884560 -
Flags: review?(matt.woodrow) → review+
Comment 9•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8884561 [details]
Bug 1379404 - Part 2. Prevent using gfxContext::Save/Restore in gfxFont.
https://reviewboard.mozilla.org/r/155448/#review160578
Attachment #8884561 -
Flags: review?(matt.woodrow) → review+
Comment 10•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8884562 [details]
Bug 1379404 - Part 3. Prevent using gfxContext::Save/Restore in gfxTextRun.
https://reviewboard.mozilla.org/r/155450/#review160580
Attachment #8884562 -
Flags: review?(matt.woodrow) → review+
Comment 11•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8884563 [details]
Bug 1379404 - Part 4. Prevent unnecessary AzureState copy in GlyphBufferAzure::Flush.
https://reviewboard.mozilla.org/r/155452/#review160582
::: gfx/thebes/gfxFont.cpp:1648
(Diff revision 2)
>
> gfx::GlyphBuffer buf;
> buf.mGlyphs = mGlyphBuffer;
> buf.mNumGlyphs = mNumGlyphs;
>
> - gfxContext::AzureState state = mRunParams.context->CurrentState();
> + gfxContext::AzureState &state = mRunParams.context->CurrentState();
Can we make this const?
Seems like we don't really want to be mutating the state of the context directly.
| Assignee | ||
Comment 12•8 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8884563 [details]
Bug 1379404 - Part 4. Prevent unnecessary AzureState copy in GlyphBufferAzure::Flush.
https://reviewboard.mozilla.org/r/155452/#review160582
> Can we make this const?
>
> Seems like we don't really want to be mutating the state of the context directly.
Actually, we can't(Unless we change gfxPattern::GetPattern to a const member funciton.)
We will call a mutatable member function of gfxContext::AzureState::pattern at
http://searchfox.org/mozilla-central/source/gfx/thebes/gfxFont.cpp#1664
| Assignee | ||
Comment 13•8 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8884563 [details]
Bug 1379404 - Part 4. Prevent unnecessary AzureState copy in GlyphBufferAzure::Flush.
https://reviewboard.mozilla.org/r/155452/#review160582
> Actually, we can't(Unless we change gfxPattern::GetPattern to a const member funciton.)
>
> We will call a mutatable member function of gfxContext::AzureState::pattern at
> http://searchfox.org/mozilla-central/source/gfx/thebes/gfxFont.cpp#1664
And we will change the context of gfxContext::AzureState::pattern of mRunParams.context->CurrentState(), before or after this change.
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 19•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8884563 [details]
Bug 1379404 - Part 4. Prevent unnecessary AzureState copy in GlyphBufferAzure::Flush.
https://reviewboard.mozilla.org/r/155452/#review161046
\o/
Attachment #8884563 -
Flags: review?(matt.woodrow) → review+
Comment 20•8 years ago
|
||
Pushed by cku@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d34a24ce5014
Part 1. Prevent using gfxContext::Save/Restore in nsTextFrame. r=mattwoodrow
https://hg.mozilla.org/integration/autoland/rev/24294f4c838e
Part 2. Prevent using gfxContext::Save/Restore in gfxFont. r=mattwoodrow
https://hg.mozilla.org/integration/autoland/rev/a7e790563964
Part 3. Prevent using gfxContext::Save/Restore in gfxTextRun. r=mattwoodrow
https://hg.mozilla.org/integration/autoland/rev/aa7da1e0163a
Part 4. Prevent unnecessary AzureState copy in GlyphBufferAzure::Flush. r=mattwoodrow
Comment 21•8 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d34a24ce5014
https://hg.mozilla.org/mozilla-central/rev/24294f4c838e
https://hg.mozilla.org/mozilla-central/rev/a7e790563964
https://hg.mozilla.org/mozilla-central/rev/aa7da1e0163a
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•