commit | 23d62fd37dc22247ef1b55c5b9bc58d1c307081a | [log] [tgz] |
---|---|---|
author | Chong Zhang <chz@google.com> | Mon Sep 21 13:25:58 2015 -0700 |
committer | Chong Zhang <chz@google.com> | Mon Sep 21 13:46:53 2015 -0700 |
tree | 5e4e86446245a26bd72f601f1653542a11ce7cc0 | |
parent | 153a2930e3da91d47a51dca0802700d838de55a7 [diff] |
Do not do setSurface on window size changes Surface should only be invalidated when surface generation changed (which we're already doing). Window size change doesn't always imply a surface change. During a drag-resizing action, the window size is constantly changing but the surface remains the same. setSurface could take 12ms+ each frame and cause frame drops. bug: 23793966 Change-Id: Iac0456122e8916cf06b1a7a0940584ab4bf4065d