mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
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:
parent
e1f1a27e9c
commit
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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user