Fix EGL multithread single window tests.
authorMika Isojärvi <misojarvi@google.com>
Tue, 12 May 2015 23:07:12 +0000 (16:07 -0700)
committerMika Isojärvi <misojarvi@google.com>
Wed, 13 May 2015 23:27:09 +0000 (16:27 -0700)
Avoid trying to destroy windows when current thread has no windows in single
window cases. Tests always create new resources, if there are too few, and
destroy resources when there are too many. When number of resources is somewhere
in between test chooses randomly what to do next. In a single window case the
current thread may not be able to create a new window and thus may not have any
windows. When there are no windows the random operation must not attempt to
destroy a window.

Bug: 20958064
Change-Id: I5366233c141278a994768110b399afa79f6ed2e5


No differences found