diff options
| author | Pablo Ceballos <pceballos@google.com> | 2015-12-03 11:44:46 -0800 |
|---|---|---|
| committer | Pablo Ceballos <pceballos@google.com> | 2015-12-03 11:52:13 -0800 |
| commit | e338df1c2ff4ed2cd575a0e3193ef77c9cd9cb72 (patch) | |
| tree | f78eb0cfd79a40ca845a840a4f1934c04e3ad7e9 /opengl/tests/gl_basic/gl_basic.cpp | |
| parent | 438afe17614b357ac5482f061cbfd38e1baeb493 (diff) | |
SF: detachLayer from Client earlier on destruction
- When a Layer is destroyed the Layer destructor isn't called until
the next vsync refresh. However, the onRemoved() callback is called
on the next invalidate. So it's possible to submit a transaction on
the layer in between the call to onRemoved() and the destructor
being called.
- Call detachLayer() from onRemoved() instead of from the destructor
so that any transactions on a destroyed Layer will fail to get the
Layer object even if the destructor has yet to be called.
Bug 25887783
Change-Id: Ic2371f695bc91aa7120bf6506bb834ceb536420e
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions
