Skip to content

Commit

Permalink
Bug 1119072, Part 16: Replace uses of hash_set with unodered_set (gfx…
Browse files Browse the repository at this point in the history
…), r=bas

--HG--
extra : rebase_source : 6fe532f999372f71b7e544231b4727c86aa34d70
  • Loading branch information
briansmith committed Jan 8, 2015
1 parent 713ef86 commit f13c2f6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
4 changes: 2 additions & 2 deletions gfx/2d/DrawEventRecorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <fstream>

#if defined(_MSC_VER)
#include <hash_set>
#include <unordered_set>
#else
#include <set>
#endif
Expand Down Expand Up @@ -53,7 +53,7 @@ class DrawEventRecorderPrivate : public DrawEventRecorder
virtual void Flush() = 0;

#if defined(_MSC_VER)
typedef stdext::hash_set<const void*> ObjectSet;
typedef std::unordered_set<const void*> ObjectSet;
#else
typedef std::set<const void*> ObjectSet;
#endif
Expand Down
8 changes: 0 additions & 8 deletions gfx/2d/DrawTargetD2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
#include <vector>
#include <sstream>

#ifdef _MSC_VER
#include <hash_set>
#else
#include <unordered_set>
#endif

struct IDWriteFactory;

Expand Down Expand Up @@ -165,11 +161,7 @@ class DrawTargetD2D : public DrawTarget
friend class AutoSaveRestoreClippedOut;
friend class SourceSurfaceD2DTarget;

#ifdef _MSC_VER
typedef stdext::hash_set<DrawTargetD2D*> TargetSet;
#else
typedef std::unordered_set<DrawTargetD2D*> TargetSet;
#endif

bool InitD2DRenderTarget();
void PrepareForDrawing(ID2D1RenderTarget *aRT);
Expand Down
8 changes: 0 additions & 8 deletions gfx/2d/DrawTargetD2D1.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
#include <vector>
#include <sstream>

#ifdef _MSC_VER
#include <hash_set>
#else
#include <unordered_set>
#endif

struct IDWriteFactory;

Expand Down Expand Up @@ -154,11 +150,7 @@ class DrawTargetD2D1 : public DrawTarget
private:
friend class SourceSurfaceD2D1;

#ifdef _MSC_VER
typedef stdext::hash_set<DrawTargetD2D1*> TargetSet;
#else
typedef std::unordered_set<DrawTargetD2D1*> TargetSet;
#endif

// This function will mark the surface as changing, and make sure any
// copy-on-write snapshots are notified.
Expand Down

0 comments on commit f13c2f6

Please sign in to comment.