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
Родитель e1f1a27e9c
Коммит 58d190620e
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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()) {

Просмотреть файл

@ -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()) {