commit | 390f882f8905e8d1ac0d4b7f2e01aa04dccc3c16 | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Tue Mar 13 18:00:10 2012 -0700 |
committer | Romain Guy <romainguy@google.com> | Tue Mar 13 18:00:10 2012 -0700 |
tree | e3959d0a87585b60b8c4e1bc0d16ca874cda9c23 | |
parent | 6810a2442b7c38a3f5d04aa91cef9c0cc5f92cb9 [diff] |
Correctly compute the number of bytes written by each op. Bug #6157792 Previously, DisplayListRenderer would compute the number of bytes written after a drawing op by looking at the difference between the start pointer of the command stream and the end pointer of the command stream. The SkWriter class used to record the commands stream allocates blocks of storage which would cause a crash when a command spanned two blocks. Change-Id: I4d79d3feeb6d72d9d4e6ab05ecebd72d004be56c