commit | add458feee2faa82ddd3e6450fbb4df70ddeea0d | [log] [tgz] |
---|---|---|
author | Dennis Kempin <denniskempin@google.com> | Wed May 17 19:16:31 2017 -0700 |
committer | Dennis Kempin <denniskempin@google.com> | Thu May 18 17:37:40 2017 -0700 |
tree | 9ac1ad4873135c00cddb91d7f7672d8ebb4eda08 | |
parent | 74cb3b6d6b6077fc0280d1700d9fe54d59b32783 [diff] |
Surface: Do not copy back if front and back buffer are identical It is unnecessary to copy from and to the same surface. Skipping the copy back is a huge performance improvement when using shared buffer mode and locking a rectangle of the surface. Bug: 38398135 Test: Use stylus demo and remove full-surface locking hack. Change-Id: Ie8d03468507489247ba4a4be5f0cde5960e69c16