summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2017-11-01 17:41:01 -0700
committerchaviw <chaviw@google.com>2017-11-08 13:04:07 -0800
commit8b3871addb9bbd5776f4ed59e67af2baa9c583fd (patch)
treefef78695a4f87e8e1b3e938a88cafb91980e3815 /opengl/tests/gl_basic/gl_basic.cpp
parent817112a049d15d64c5dcb8c8a97773d3a921b362 (diff)
Don't invoke transactions on layers that will be removed.
A layer can be marked as removed, but still be present in memory. This check ensures that transactions aren't invoked on layers that will be removed on the next commitTransaction. Normally, this would be harmless since the layer will get removed as soon as a commitTransaction is called. However, for cases like re-parenting, a removed child layer can be re-parented to a non-removed layer, which prevents the child from getting removed. Test: Added code that would destroy a layer before the re-parent was called. Ensure that the re-parent was ignored. There doesn't seem to be an easy way to write a test case right now. Change-Id: I17614447fc4253bdbbb0c06469bb09117b55c1ab
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions