#include <capture.h>
Definition at line 231 of file capture.h.
◆ Capture() [1/2]
impeller::Capture::Capture |
( |
const std::string & |
label | ) |
|
|
explicit |
◆ Capture() [2/2]
impeller::Capture::Capture |
( |
| ) |
|
|
default |
◆ CreateChild()
Capture impeller::Capture::CreateChild |
( |
std::string_view |
label | ) |
|
|
inline |
Definition at line 239 of file capture.h.
239 {
240#ifdef IMPELLER_ENABLE_CAPTURE
241 if (!active_) {
243 }
244
245 std::string label_copy = std::string(label);
246 auto new_capture =
Capture(label_copy);
247 new_capture.element_ =
248 element_->children.GetNext(new_capture.element_, false);
249 new_capture.element_->Rewind();
250 return new_capture;
251#else
253#endif
254 }
◆ GetElement()
std::shared_ptr< CaptureElement > impeller::Capture::GetElement |
( |
| ) |
const |
Definition at line 105 of file capture.cc.
105 {
106#ifdef IMPELLER_ENABLE_CAPTURE
107 return element_;
108#else
109 return nullptr;
110#endif
111}
◆ MakeInactive()
Capture impeller::Capture::MakeInactive |
( |
| ) |
|
|
static |
◆ Rewind()
void impeller::Capture::Rewind |
( |
| ) |
|
Definition at line 113 of file capture.cc.
113 {
115}
std::shared_ptr< CaptureElement > GetElement() const
The documentation for this class was generated from the following files: