Bug 1376297 part 2 - Switch to nsRefPtrHashtable since it's more appropriate for holding RefPtr values. r=froydnj

MozReview-Commit-ID: 5hxCuDpITcC
This commit is contained in:
Mats Palmgren 2017-06-28 01:03:16 +02:00
parent 1bbdb5f4c6
commit c49a96b7fd

View File

@ -21,6 +21,7 @@
#include "nsDebug.h" // for NS_RUNTIMEABORT
#include "nsIObserver.h"
#include "nsRegion.h" // for nsIntRegion
#include "nsRefPtrHashtable.h"
#include "mozilla/gfx/Rect.h"
#include "mozilla/ReentrantMonitor.h" // for ReentrantMonitor, etc
@ -392,7 +393,7 @@ private:
* Hold TextureClients refs until end of their usages on host side.
* It defer calling of TextureClient recycle callback.
*/
nsDataHashtable<nsUint64HashKey, RefPtr<TextureClient> > mTexturesWaitingRecycled;
nsRefPtrHashtable<nsUint64HashKey, TextureClient> mTexturesWaitingRecycled;
/**
* Mapping from async compositable IDs to image containers.