Test memory usage of a layer hosting OpenGL view.