45 Viewer(
int argc,
char**
argv,
void* platformData);
145 enum class ColorMode {
149 kColorManagedF16Norm,
155 void setColorMode(ColorMode);
156 int startupSlide()
const;
157 void setCurrentSlide(
int);
158 void setupCurrentSlide();
159 SkISize currentSlideSize()
const;
160 void listNames()
const;
161 void dumpShadersToResources();
163 void updateUIState();
168 void changeZoomLevel(
float delta);
169 void updateGestureTransLimit();
171 SkMatrix computePerspectiveMatrix();
189 bool fShowSlideDimensions;
193 bool fShowImGuiDebugWindow;
194 bool fShowSlidePicker;
195 bool fShowImGuiTestWindow;
196 bool fShowHistogramWindow;
198 bool fShowZoomWindow;
199 bool fZoomWindowFixed;
207 ColorMode fColorMode;
212 bool fApplyBackingScale;
219 enum class GestureDevice {
226 GestureDevice fGestureDevice;
232 bool fDrawTileBoundaries;
234 bool fDrawViaSerialize =
false;
236 enum PerspectiveMode {
241 PerspectiveMode fPerspectiveMode;
248 SkPaintFields fPaintOverrides;
252 SkFontFields fFontOverrides;
257 DisplayFields fDisplayOverrides;
259 struct CachedShader {
260 bool fHovered =
false;
274 enum ShaderOptLevel :
int {
275 kShaderOptLevel_Source,
276 kShaderOptLevel_Compile,
277 kShaderOptLevel_Optimize,
278 kShaderOptLevel_Inline,
280 ShaderOptLevel fOptLevel = kShaderOptLevel_Source;
static const int kGrShaderTypeCount
bool onChar(SkUnichar c, skui::ModifierKey modifiers) override
static GrContextOptions::ShaderErrorHandler * ShaderErrorHandler()
bool onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers) override
bool onTouch(intptr_t owner, skui::InputState state, float x, float y) override
void onBackendCreated() override
bool onMouseWheel(float delta, int x, int y, skui::ModifierKey) override
bool onPinch(skui::InputState state, float scale, float x, float y) override
void onResize(int width, int height) override
Viewer(int argc, char **argv, void *platformData)
void onUIStateChanged(const SkString &stateName, const SkString &stateValue) override
void onPaint(SkSurface *) override
bool onFling(skui::InputState state) override
bool onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers) override
Dart_NativeFunction function
SkSurfacePropsFields fSurfaceProps
bool overridesSomething() const
bool overridesSomething() const