commit | 6fbe54c663bd0eed6f6519c31a4c8e291db2613b | [log] [tgz] |
---|---|---|
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Jun 11 11:01:48 2013 |
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Jun 11 11:01:48 2013 |
tree | aee7c8f354f86f9d0d64e25deaa20cbf2396b4ad | |
parent | 7fb5373fb76951b7e8b534f04d508dd51e21be6e [diff] |
Compact the clipstack for kReplace_Op'd geometry When adding a clip rect or clip path to the stack with the kReplace_Op operation, remove all previous elements within the same save frame (elements with fSaveCount equal to the current fSaveCount of the stack). This prevents unbounded growth of the clipstack for long-lived instances that gets reused. Addresses https://code.google.com/p/skia/issues/detail?id=748 R=robertphillips@google.com Author: fs@opera.com Review URL: https://chromiumcodereview.appspot.com/16160020 git-svn-id: http://skia.googlecode.com/svn/trunk@9502 2bbb7eff-a529-9590-31e7-b0007b416f81