Removing more warnings

This commit is contained in:
Alexander Bock
2017-07-17 18:03:37 -04:00
parent 7cfa358f04
commit 7737b082d9
42 changed files with 265 additions and 162 deletions
+7 -4
View File
@@ -263,10 +263,13 @@ void MemoryAwareTileCache::put(const ProviderTileKey& key,
}
void MemoryAwareTileCache::update() {
size_t dataSizeCPU = getCPUAllocatedDataSize();
size_t dataSizeGPU = getGPUAllocatedDataSize();
_cpuAllocatedTileData.setValue(dataSizeCPU / 1024 / 1024);
_gpuAllocatedTileData.setValue(dataSizeGPU / 1024 / 1024);
const size_t dataSizeCPU = getCPUAllocatedDataSize();
const size_t dataSizeGPU = getGPUAllocatedDataSize();
const size_t ByteToMegaByte = 1024 * 1024;
_cpuAllocatedTileData.setValue(dataSizeCPU / ByteToMegaByte);
_gpuAllocatedTileData.setValue(dataSizeGPU / ByteToMegaByte);
}
size_t MemoryAwareTileCache::getGPUAllocatedDataSize() const {