Bug 969869 - Use fallible allocation in WebGL element array cache; r=bjacob

It seems like the sizes for these data structures can be controlled from
Web content, and we are already prepared to deal with OOM conditions,
except that we are using infallible allocations by mistake.
This commit is contained in:
Ehsan Akhgari 2014-02-09 18:16:03 -05:00
parent 153d4aef9a
commit 319c31bf14

View File

@ -134,7 +134,7 @@ struct WebGLElementArrayCacheTree
private:
WebGLElementArrayCache& mParent;
nsTArray<T> mTreeData;
FallibleTArray<T> mTreeData;
size_t mNumLeaves;
bool mInvalidated;
size_t mFirstInvalidatedLeaf;