| 92 | } |
| 93 | |
| 94 | bool RenderManager::StopDesktopRender() { |
| 95 | LOGW(" *** StopDesktopRender ***"); |
| 96 | if (desktop_render_process_) { |
| 97 | ProcessHelper::CloseProcess(desktop_render_process_->pid_); |
| 98 | desktop_render_process_ = nullptr; |
| 99 | } |
| 100 | |
| 101 | // kill all |
| 102 | auto processes = ProcessHelper::GetProcessList(false); |
| 103 | for (auto& p : processes) { |
| 104 | if (p->exe_full_path_.find(kGammaRayRenderName) != std::string::npos) { |
| 105 | ProcessHelper::CloseProcess(p->pid_); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | return true; |
| 110 | } |
| 111 | |
| 112 | bool RenderManager::ReStartDesktopRender(const std::string& work_dir, const std::string& app_path, const std::vector<std::string>& _args) { |
| 113 | std::stringstream ss; |
no outgoing calls
no test coverage detected