Closed Bug 1380483 Opened 7 years ago Closed 7 years ago

Properly set AA, transform and use rotated buffers with OMTP capturing

Categories

(Core :: Graphics, enhancement)

55 Branch
x86
macOS
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: mchang, Assigned: mchang)

References

Details

Attachments

(1 file, 1 obsolete file)

Previously, we were ignoring the set enables AA methods while recording with DrawTargetCapture. We were also incorrectly setting the surface format for DRawTargetCapture. Finally, we weren't drawing all portions of the content required since we could have multiple DrawTarget destinations with a RotatedBuffer. We fix this by basically cloning ClientPaintedLayer::PaintThebes. It's essentially the same function and I plan to move Record/Replay into PaintThebes once all the bugs are gone.
Attachment #8885925 - Flags: review?(dvander)
Comment on attachment 8885925 [details] [diff] [review]
Paint into all RotatedContent's destination DrawTargets

Review of attachment 8885925 [details] [diff] [review]:
-----------------------------------------------------------------

::: gfx/layers/client/ClientPaintedLayer.cpp
@@ +229,5 @@
> +                                              ClientManager()->GetPaintedLayerCallbackData());
> +
> +    ctx = nullptr;
> +
> +    target->DrawCapturedDT(captureDT, Matrix());

Should this be going through PaintThread::PaintContents? Otherwise we're throwing the async path out.
Now with less fail. Thanks!
Attachment #8885925 - Attachment is obsolete: true
Attachment #8885925 - Flags: review?(dvander)
Attachment #8885942 - Flags: review?(dvander)
Attachment #8885942 - Flags: review?(dvander) → review+
Pushed by mchang@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/283cd85e6c9a
Properly set AA, transform and use rotated buffers with OMTP capturing. r=dvander
https://hg.mozilla.org/mozilla-central/rev/283cd85e6c9a
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: