Fix clip expansion in SkPictureRecord::recordRestoreOffsetPlaceholder()
authorfmalita@google.com <fmalita@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 27 Aug 2013 15:50:19 +0000 (15:50 +0000)
committerfmalita@google.com <fmalita@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 27 Aug 2013 15:50:19 +0000 (15:50 +0000)
commitd0f1a4fb28057de42d116005d82166b2302d28e9
tree286c1a6f15981df72dcc39ddf724a47c817e2105
parentb9168ed4324a51ae1e7263de35e54367483040d6
Fix clip expansion in SkPictureRecord::recordRestoreOffsetPlaceholder()

For operations which can expand the region, zeroing previous clip ops' restore offsets is not enough: we need to also break the chain - otherwise the next restore() will simply traverse back and reset the skip offsets.

R=robertphillips@google.com

Review URL: https://codereview.chromium.org/22987003

git-svn-id: http://skia.googlecode.com/svn/trunk@10934 2bbb7eff-a529-9590-31e7-b0007b416f81
src/core/SkPictureRecord.cpp
tests/PictureTest.cpp