diff options
author | wangxianzhu <wangxianzhu@chromium.org> | 2015-09-17 20:38:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-17 20:38:02 -0700 |
commit | ef6c50a80f77e6da84e198a34755dd42b1b0cf1e (patch) | |
tree | 6f621fce7cf1daacd9b8abcfea990f411e8e5974 /infra | |
parent | 1b55a963a2374a14bb82eb887bb99ee91680f0eb (diff) |
Merge 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
Review URL: https://codereview.chromium.org/1257533004
Diffstat (limited to 'infra')
0 files changed, 0 insertions, 0 deletions