Skip to content

Commit

Permalink
Replace boost::unordered_map with std::unordered_map in `usdImagi…
Browse files Browse the repository at this point in the history
…ng/usdImaging`
  • Loading branch information
nvmkuruc committed Sep 19, 2023
1 parent ad4d31f commit d1e47b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions pxr/usdImaging/usdImaging/delegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
#include "pxr/base/work/loops.h"

#include "pxr/base/tf/envSetting.h"
#include "pxr/base/tf/hash.h"
#include "pxr/base/tf/pyLock.h"
#include "pxr/base/tf/fileUtils.h"
#include "pxr/base/tf/ostreamMethods.h"
Expand Down
5 changes: 3 additions & 2 deletions pxr/usdImaging/usdImaging/instanceAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
#include "pxr/base/gf/vec4i.h"
#include "pxr/base/gf/vec4h.h"

#include "pxr/base/tf/hash.h"
#include "pxr/base/tf/type.h"

#include <boost/unordered_map.hpp>
Expand Down Expand Up @@ -953,7 +954,7 @@ struct UsdImagingInstanceAdapter::_IsInstanceTransformVaryingFn

// We keep a simple cache directly on _IsInstanceTransformVaryingFn because
// we only need it during initialization and resyncs (not in UpdateForTime).
boost::unordered_map<UsdPrim, bool, boost::hash<UsdPrim>> cache;
boost::unordered_map<UsdPrim, bool, TfHash> cache;
};

bool
Expand Down Expand Up @@ -2408,7 +2409,7 @@ struct UsdImagingInstanceAdapter::_ComputeInstanceMapVariabilityFn
// We keep a simple cache of visibility varying states directly on
// _ComputeInstanceMapVariabilityFn because we only need it for the
// variability calculation and during resyncs.
boost::unordered_map<UsdPrim, bool, boost::hash<UsdPrim>> varyingCache;
boost::unordered_map<UsdPrim, bool, TfHash> varyingCache;
const UsdImagingInstanceAdapter* adapter;
std::vector<_InstancerData::Visibility>* visibility;
};
Expand Down
3 changes: 2 additions & 1 deletion pxr/usdImaging/usdImaging/resolvedAttributeCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
#include "pxr/base/tf/hash.h"
#include "pxr/base/work/utils.h"

#include <boost/functional/hash.hpp>
#include "pxr/base/tf/hash.h"

#include <tbb/concurrent_unordered_map.h>
#include <functional>

Expand Down

0 comments on commit d1e47b9

Please sign in to comment.