| 1340 | } |
| 1341 | |
| 1342 | bool |
| 1343 | Project::isGPURenderingEnabledInProject() const |
| 1344 | { |
| 1345 | if (!appPTR->getCurrentSettings()->isOpenGLRenderingEnabled()) { |
| 1346 | return false; |
| 1347 | } |
| 1348 | int index = _imp->gpuSupport->getValue(); |
| 1349 | |
| 1350 | if (index == 0) { |
| 1351 | return true; |
| 1352 | } else if (index == 1) { |
| 1353 | return false; |
| 1354 | } else if (index == 2) { |
| 1355 | return !getApp()->isBackground(); |
| 1356 | } |
| 1357 | assert(false); |
| 1358 | |
| 1359 | return false; |
| 1360 | } |
| 1361 | |
| 1362 | std::list<ImagePlaneDesc> |
| 1363 | Project::getProjectDefaultLayers() const |
no test coverage detected