Flutter Engine
The Flutter Engine
SkSLDebuggerSlide.h
Go to the documentation of this file.
1/*
2 * Copyright 2021 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkSLDebuggerSlide_DEFINED
9#define SkSLDebuggerSlide_DEFINED
10
15#include "tools/viewer/Slide.h"
16
17class SkCanvas;
18
19namespace skui {
20enum class InputState;
21enum class ModifierKey;
22} // namespace sk
23
24class SkSLDebuggerSlide : public Slide {
25public:
27
28 void draw(SkCanvas* canvas) override;
29 bool animate(double nanos) override;
30
31 void resize(SkScalar winWidth, SkScalar winHeight) override {}
32 void load(SkScalar winWidth, SkScalar winHeight) override;
33 void unload() override;
34
36 skui::ModifierKey modifiers) override { return true; }
37
38private:
39 void showRootGUI();
40 void showLoadTraceGUI();
41 void showDebuggerGUI();
42 void showStackTraceTable();
43 void showVariableTable();
44 void showCodeTable();
45
46 static constexpr int kNumTopRows = 12;
47
50 bool fRefresh = false;
51
52 char fTraceFile[256] = "SkSLDebugTrace.json";
53};
54
55#endif // SkSLDebuggerSlide_DEFINED
void unload() override
bool onMouse(SkScalar x, SkScalar y, skui::InputState state, skui::ModifierKey modifiers) override
bool animate(double nanos) override
void draw(SkCanvas *canvas) override
void load(SkScalar winWidth, SkScalar winHeight) override
void resize(SkScalar winWidth, SkScalar winHeight) override
Definition: Slide.h:29
float SkScalar
Definition: extension.cpp:12
AtkStateType state
double y
double x
InputState
Definition: InputState.h:6
ModifierKey
Definition: ModifierKey.h:9