зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
e1f1a27e9c
Коммит
58d190620e
|
@ -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()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче