aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.cc
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-07-13 20:53:52 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-07-13 20:53:52 +0100
commita8c84e90a39c54174dd24b5b76bd17aed8311481 (patch)
tree2de94b976fd882e1ce3b83e8880e80f97d043775 /ice40/arch.cc
parenta71b576de6c404572439e30a56c4ff19497523a2 (diff)
downloadnextpnr-a8c84e90a39c54174dd24b5b76bd17aed8311481.tar.gz
nextpnr-a8c84e90a39c54174dd24b5b76bd17aed8311481.tar.bz2
nextpnr-a8c84e90a39c54174dd24b5b76bd17aed8311481.zip
Make GUI nice and smooth.
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r--ice40/arch.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index af6e922c..547dbcd6 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -534,9 +534,8 @@ DecalXY Arch::getGroupDecal(GroupId group) const
return decalxy;
};
-std::vector<GraphicElement> Arch::getDecalGraphics(DecalId decal) const
+std::vector<GraphicElement> ArchRProxyMethods::getDecalGraphics(DecalId decal) const
{
- boost::shared_lock_guard<boost::shared_mutex> lock(mtx_);
std::vector<GraphicElement> ret;
if (decal.type == DecalId::TYPE_FRAME) {
@@ -568,7 +567,7 @@ std::vector<GraphicElement> Arch::getDecalGraphics(DecalId decal) const
BelId bel;
bel.index = decal.index;
- auto bel_type = getBelType(bel);
+ auto bel_type = parent_->getBelType(bel);
if (bel_type == TYPE_ICESTORM_LC) {
GraphicElement el;
@@ -954,4 +953,9 @@ CellInfo *ArchRWProxyMethods::getCell(IdString cell)
return parent_->cells.at(cell).get();
}
+UIUpdatesRequired ArchRWProxyMethods::getUIUpdatesRequired(void)
+{
+ return parent_->getUIUpdatesRequired();
+}
+
NEXTPNR_NAMESPACE_END