Closed
Bug 1480608
Opened 6 years ago
Closed 6 years ago
[blob image] Skip over items that aren't in bounds
Categories
(Core :: Graphics: WebRender, enhancement, P3)
Tracking
()
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: jrmuizel, Assigned: jrmuizel)
References
Details
Attachments
(1 file)
We already have the bounds at hand. It's easy for us to skip over the parts of the blob image that aren't used.
Updated•6 years ago
|
Priority: -- → P3
Comment hidden (mozreview-request) |
Comment 2•6 years ago
|
||
mozreview-review |
Comment on attachment 8997585 [details] Bug 1480608. Skip over items that aren't in DrawTarget/DirtyRect. https://reviewboard.mozilla.org/r/261274/#review268384 ::: gfx/webrender_bindings/Moz2DImageRenderer.cpp:290 (Diff revision 1) > int ReadInt() { > int ret; Unrelated to this patch, but should these ints be int32_ts as well? ::: gfx/webrender_bindings/Moz2DImageRenderer.cpp:320 (Diff revision 1) > - reader.SkipBounds(); > + auto combinedBounds = absBounds.Intersect(reader.ReadBounds()); > + if (combinedBounds.IsEmpty()) { You're not using the value of combinedBounds, so this could be written as a boolean Intersects check instead. auto itemBounds = reader.ReadBounds(); if (!absBounds.Intersects(itemBounds)) { ... }
Attachment #8997585 -
Flags: review?(mstange) → review+
Assignee | ||
Comment 3•6 years ago
|
||
mozreview-review |
Comment on attachment 8997585 [details] Bug 1480608. Skip over items that aren't in DrawTarget/DirtyRect. https://reviewboard.mozilla.org/r/261274/#review268804 ::: gfx/webrender_bindings/Moz2DImageRenderer.cpp:320 (Diff revision 1) > - reader.SkipBounds(); > + auto combinedBounds = absBounds.Intersect(reader.ReadBounds()); > + if (combinedBounds.IsEmpty()) { There's no implementation of Intersects() and it's unclear what the semantics of it should be.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Pushed by jmuizelaar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/00ff83d23238 Skip over items that aren't in DrawTarget/DirtyRect. r=mstange
Comment 7•6 years ago
|
||
Backed out for build bustages on Moz2DImageRenderer.cpp Push link: https://hg.mozilla.org/integration/autoland/rev/00ff83d23238b770a947bb407ec1afe39c3010b5 Backout link: https://hg.mozilla.org/integration/autoland/rev/24705823c696fbc83b3ace3b0a7f441fa6c2488d Log link: https://treeherder.mozilla.org/logviewer.html#?job_id=192655253&repo=autoland&lineNumber=21757
Flags: needinfo?(jmuizelaar)
Comment hidden (mozreview-request) |
Pushed by jmuizelaar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6c2a436870e0 Skip over items that aren't in DrawTarget/DirtyRect. r=mstange
Comment 10•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6c2a436870e0
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Assignee | ||
Updated•6 years ago
|
Flags: needinfo?(jmuizelaar)
Updated•6 years ago
|
Assignee: nobody → jmuizelaar
You need to log in
before you can comment on or make changes to this bug.
Description
•