Closed
Bug 1129871
Opened 8 years ago
Closed 8 years ago
Avoid needlessly copying tiles
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: nical, Assigned: nical)
Details
Attachments
(2 files)
11.42 KB,
patch
|
jrmuizel
:
review+
BenWa
:
review+
|
Details | Diff | Splinter Review |
1.83 KB,
patch
|
BenWa
:
review+
|
Details | Diff | Splinter Review |
We tend to forget about what's happening during copies and destruction of tile structures which are sort of POD but not really (they have a destructor). There's a ton of misleading things that can happen when mutating the copy of a tile (like discarding buffers) rather than the object we keep for the next step. So let's just remove this useless thinking overhead and mutate tiles in-place rather than passing copies around.
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8559760 -
Flags: review?(jmuizelaar)
Comment 2•8 years ago
|
||
Comment on attachment 8559760 [details] [diff] [review] Simplify TiledContentClient a bit. Review of attachment 8559760 [details] [diff] [review]: ----------------------------------------------------------------- I don't have any problem with this other than my standard hate for the implicit reference taking of C++. The original decision here was made by bgirard so you may want to run it by him as well.
Attachment #8559760 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 3•8 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #2) > I don't have any problem with this other than my standard hate for the > implicit reference taking of C++. The original decision here was made by > bgirard so you may want to run it by him as well. I can turn these references into pointers if you prefer
Comment 4•8 years ago
|
||
(In reply to Nicolas Silva [:nical] from comment #3) > (In reply to Jeff Muizelaar [:jrmuizel] from comment #2) > > I don't have any problem with this other than my standard hate for the > > implicit reference taking of C++. The original decision here was made by > > bgirard so you may want to run it by him as well. > > I can turn these references into pointers if you prefer References are what we're supposed to use...
Assignee | ||
Comment 5•8 years ago
|
||
Attachment #8559832 -
Flags: review?(bgirard)
Assignee | ||
Updated•8 years ago
|
Attachment #8559760 -
Flags: review?(bgirard)
Comment 6•8 years ago
|
||
Comment on attachment 8559760 [details] [diff] [review] Simplify TiledContentClient a bit. Review of attachment 8559760 [details] [diff] [review]: ----------------------------------------------------------------- This was designed like this explicitly because instead of doing fancy double buffering the tiling could would just replace the tiles that it needed. However we don't use the tiles like this anymore so it's fine if we remove this.
Attachment #8559760 -
Flags: review?(bgirard) → review+
Updated•8 years ago
|
Attachment #8559832 -
Flags: review?(bgirard) → review+
Assignee | ||
Comment 7•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/6c8a74ba8122 https://hg.mozilla.org/integration/mozilla-inbound/rev/b57d930e0ba6
Comment 8•8 years ago
|
||
Backed out for gtest asserts. https://hg.mozilla.org/integration/mozilla-inbound/rev/e6112488026a https://treeherder.mozilla.org/logviewer.html#?job_id=6312428&repo=mozilla-inbound 09:59:33 INFO - [3457] ###!!! ASSERTION: Unexpected placeholder tile - failed to allocate?: '!IsPlaceholder(newTile)', file /builds/slave/m-in-l64-st-an-d-0000000000000/build/src/gfx/layers/TiledLayerBuffer.h, line 537 09:59:33 INFO - Hit MOZ_CRASH() at /builds/slave/m-in-l64-st-an-d-0000000000000/build/src/memory/mozalloc/mozalloc_abort.cpp:37
Assignee | ||
Comment 9•8 years ago
|
||
fixed and relanded https://hg.mozilla.org/integration/mozilla-inbound/rev/6952d9fe4f36 https://hg.mozilla.org/integration/mozilla-inbound/rev/e1bb91f60697
Comment 10•8 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6952d9fe4f36 https://hg.mozilla.org/mozilla-central/rev/e1bb91f60697
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Comment 11•8 years ago
|
||
backed out for causing bug 1133484
Status: RESOLVED → REOPENED
status-firefox38:
fixed → ---
Flags: needinfo?(nical.bugzilla)
Resolution: FIXED → ---
Assignee | ||
Comment 12•8 years ago
|
||
I'll get back to this soon, focusing other things at the moment.
Flags: needinfo?(nical.bugzilla)
https://hg.mozilla.org/mozilla-central/rev/e0e88a24cd39
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: mozilla38 → mozilla42
You need to log in
before you can comment on or make changes to this bug.
Description
•