Closed Bug 1345849 Opened 7 years ago Closed 7 years ago

Use DrawTriangles() instead of DrawTriangle() in OpenGL compositor backend

Categories

(Core :: Graphics: Layers, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: mikokm, Assigned: mikokm)

References

Details

(Whiteboard: [gfx-noted])

Attachments

(2 files)

This is an optimization related to bug 1286412.

The compositor changes introduced in bug 1323797 and bug 1323791 would allow rendering polygons in OpenGL compositor with a single DrawTriangles() call instead of multiple DrawTriangle() calls. For complex scenes, this would reduce draw calls and state changes, improving performance.

This is already done in BasicCompositor and CompositorD3D11.
Priority: -- → P3
Whiteboard: [gfx-noted]
Assignee: nobody → mikokm
Status: NEW → ASSIGNED
This patch improves OpenGL compositing performance by up to 10%.
Comment on attachment 8851746 [details]
Bug 1345849 - Part 2: Remove unused Triangle::width and height

https://reviewboard.mozilla.org/r/123974/#review127360
Attachment #8851746 - Flags: review?(jmuizelaar) → review+
Comment on attachment 8851745 [details]
Bug 1345849 - Part 1: Use DrawTriangles() instead of DrawTriangle() in OpenGL compositor backend

https://reviewboard.mozilla.org/r/123972/#review132106
Attachment #8851745 - Flags: review?(jmuizelaar) → review+
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/c39953270c30
Part 1: Use DrawTriangles() instead of DrawTriangle() in OpenGL compositor backend r=jrmuizel
https://hg.mozilla.org/integration/autoland/rev/6d21cafb2879
Part 2: Remove unused Triangle::width and height r=jrmuizel
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/c39953270c30
https://hg.mozilla.org/mozilla-central/rev/6d21cafb2879
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: