Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkSLDebuggerSlide Class Reference

#include <SkSLDebuggerSlide.h>

Inheritance diagram for SkSLDebuggerSlide:
Slide SkRefCnt SkRefCntBase

Public Member Functions

 SkSLDebuggerSlide ()
 
void draw (SkCanvas *canvas) override
 
bool animate (double nanos) override
 
void resize (SkScalar winWidth, SkScalar winHeight) override
 
void load (SkScalar winWidth, SkScalar winHeight) override
 
void unload () override
 
bool onMouse (SkScalar x, SkScalar y, skui::InputState state, skui::ModifierKey modifiers) override
 
- Public Member Functions inherited from Slide
virtual SkISize getDimensions () const
 
virtual void gpuTeardown ()
 
virtual void draw (SkCanvas *canvas)=0
 
virtual bool animate (double nanos)
 
virtual void load (SkScalar winWidth, SkScalar winHeight)
 
virtual void resize (SkScalar winWidth, SkScalar winHeight)
 
virtual void unload ()
 
virtual bool onChar (SkUnichar c)
 
virtual bool onMouse (SkScalar x, SkScalar y, skui::InputState state, skui::ModifierKey modifiers)
 
virtual bool onGetControls (SkMetaData *)
 
virtual void onSetControls (const SkMetaData &)
 
const SkStringgetName ()
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Additional Inherited Members

- Protected Attributes inherited from Slide
SkString fName
 

Detailed Description

Definition at line 24 of file SkSLDebuggerSlide.h.

Constructor & Destructor Documentation

◆ SkSLDebuggerSlide()

SkSLDebuggerSlide::SkSLDebuggerSlide ( )

Definition at line 30 of file SkSLDebuggerSlide.cpp.

30 {
31 fName = "Debugger";
32 fTrace = sk_make_sp<SkSL::DebugTracePriv>();
33}
SkString fName
Definition: Slide.h:54

Member Function Documentation

◆ animate()

bool SkSLDebuggerSlide::animate ( double  nanos)
overridevirtual

Reimplemented from Slide.

Definition at line 290 of file SkSLDebuggerSlide.cpp.

290 {
291 return true;
292}

◆ draw()

void SkSLDebuggerSlide::draw ( SkCanvas canvas)
overridevirtual

Implements Slide.

Definition at line 283 of file SkSLDebuggerSlide.cpp.

283 {
284 canvas->clear(SK_ColorWHITE);
285 ImGui::Begin("Debugger", nullptr, ImGuiWindowFlags_AlwaysVerticalScrollbar);
286 this->showRootGUI();
287 ImGui::End();
288}
constexpr SkColor SK_ColorWHITE
Definition: SkColor.h:122
void clear(SkColor color)
Definition: SkCanvas.h:1199

◆ load()

void SkSLDebuggerSlide::load ( SkScalar  winWidth,
SkScalar  winHeight 
)
overridevirtual

Reimplemented from Slide.

Definition at line 35 of file SkSLDebuggerSlide.cpp.

35{}

◆ onMouse()

bool SkSLDebuggerSlide::onMouse ( SkScalar  x,
SkScalar  y,
skui::InputState  state,
skui::ModifierKey  modifiers 
)
inlineoverridevirtual

Reimplemented from Slide.

Definition at line 35 of file SkSLDebuggerSlide.h.

36 { return true; }

◆ resize()

void SkSLDebuggerSlide::resize ( SkScalar  winWidth,
SkScalar  winHeight 
)
inlineoverridevirtual

Reimplemented from Slide.

Definition at line 31 of file SkSLDebuggerSlide.h.

31{}

◆ unload()

void SkSLDebuggerSlide::unload ( )
overridevirtual

Reimplemented from Slide.

Definition at line 37 of file SkSLDebuggerSlide.cpp.

37 {
38 fTrace = sk_make_sp<SkSL::DebugTracePriv>();
39 fPlayer.reset(nullptr);
40 fPlayer.setBreakpoints(std::unordered_set<int>{});
41}
void reset(sk_sp< DebugTracePriv > trace)
void setBreakpoints(std::unordered_set< int > breakpointLines)

The documentation for this class was generated from the following files: