| 39 | } |
| 40 | |
| 41 | bool FrameDebuggerPlugin::OnCreate(const tc::GrPluginParam& param) { |
| 42 | GrPluginInterface::OnCreate(param); |
| 43 | auto key_save_encoded_video = "save_encoded_video"; |
| 44 | if (HasParam(key_save_encoded_video)) { |
| 45 | save_encoded_video_ = GetConfigParam<bool>(key_save_encoded_video); |
| 46 | } |
| 47 | if (save_encoded_video_) { |
| 48 | root_widget_->setWindowTitle(GetPluginName().c_str()); |
| 49 | content_layout_ = new QHBoxLayout(); |
| 50 | root_widget_->setLayout(content_layout_); |
| 51 | root_widget_->show(); |
| 52 | } |
| 53 | return true; |
| 54 | } |
| 55 | |
| 56 | bool FrameDebuggerPlugin::OnDestroy() { |
| 57 | for (const auto& [k, v] : encoded_video_files_) { |
nothing calls this directly
no outgoing calls
no test coverage detected