зеркало из https://github.com/mozilla/gecko-dev.git
9fdad4e863
In SourceSurfaceImage::GetTextureClient, we use LookupForAdd. This is because we typically will create a new TextureClient if there isn't already one created. This creation can fail because the size is too big, or we don't have the memory available for it. Unfortunately LookupForAdd is an infallible operation; it is expected we will always add something to the hashtable if we don't find an entry. This patch adds an OrRemove method to cover the corner case where we are unable to complete the insertion. |
||
---|---|---|
.. | ||
gtest | ||
unit | ||
windows | ||
NotXPCOMTest.idl | ||
RegFactory.cpp | ||
SizeTest01.cpp | ||
SizeTest02.cpp | ||
SizeTest03.cpp | ||
SizeTest04.cpp | ||
SizeTest05.cpp | ||
SizeTest06.cpp | ||
TestArguments.cpp | ||
TestBlockingProcess.cpp | ||
TestHarness.h | ||
TestPRIntN.cpp | ||
TestQuickReturn.cpp | ||
TestShutdown.cpp | ||
TestStackCrawl.cpp | ||
TestStreamUtils.cpp | ||
TestUnicodeArguments.cpp | ||
TestWinReg.js | ||
TestingAtomList.h | ||
moz.build | ||
resources.h | ||
test.properties |