DescriptionMerge sub-device annotations in SkPDFDevice::drawDevice()
Previously annotations added between saveLayer/restore were lost.
Merge annotations in SkPDFDevice::drawDevice(). Also modified code to
apply correct transformation and clipping on annotations added between
saveLayer/restore:
- Apply the initial transform only when adding the annotations into the
doc, otherwise we need to unapply sub-device's initial transform
before merging the annotations into parent-device.
- Apply only device-local clipping. fClipStack is in global coordinates,
which is not suitable to clip rects in sub-devices.
BUG=skia:4080
BUG=503515
Committed: https://skia.googlesource.com/skia/+/ef6c50a80f77e6da84e198a34755dd42b1b0cf1e
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Fix warnings #
Total comments: 1
Patch Set 4 : Rebase and address comment #
Messages
Total messages: 25 (9 generated)
|