Bug 1668377 - Switch printing from WrapAndRecord to just Recording. r=aosmond

Using WrapAndRecord for printing was just a way to minimize risk when
working on the RecordingDrawTarget. We would prefer to eliminate
WrapAndRecord.

These leaves some of old function names around just to keep the patch
small. If it sticks we can fix those names.

Differential Revision: https://phabricator.services.mozilla.com/D91988
This commit is contained in:
Jeff Muizelaar 2020-10-01 14:23:59 +00:00
parent e1f1a27e9c
commit 58d190620e
2 changed files with 4 additions and 2 deletions

View File

@ -172,7 +172,8 @@ already_AddRefed<DrawTarget> PrintTarget::CreateWrapAndRecordDrawTarget(
if (aRecorder) {
// It doesn't really matter what we pass as the DrawTarget here.
dt = gfx::Factory::CreateWrapAndRecordDrawTarget(aRecorder, aDrawTarget);
dt = gfx::Factory::CreateRecordingDrawTarget(aRecorder, aDrawTarget,
aDrawTarget->GetRect());
}
if (!dt || !dt->IsValid()) {

View File

@ -95,7 +95,8 @@ PrintTargetRecording::CreateWrapAndRecordDrawTarget(
if (aRecorder) {
// It doesn't really matter what we pass as the DrawTarget here.
dt = gfx::Factory::CreateWrapAndRecordDrawTarget(aRecorder, aDrawTarget);
dt = gfx::Factory::CreateRecordingDrawTarget(aRecorder, aDrawTarget,
aDrawTarget->GetRect());
}
if (!dt || !dt->IsValid()) {