MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / OnCreate

Method OnCreate

src/render/plugins/frame_debugger/frame_debugger_plugin.cpp:41–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected