65 kNativeGL_BackendType,
67#if SK_ANGLE && (defined(SK_BUILD_FOR_WIN) || defined(SK_BUILD_FOR_MAC))
71#if defined(SK_GRAPHITE)
72 kGraphiteDawn_BackendType,
77#if defined(SK_GRAPHITE)
78 kGraphiteVulkan_BackendType,
83#if defined(SK_GRAPHITE)
84 kGraphiteMetal_BackendType,
88 kDirect3D_BackendType,
167#if defined(SK_GRAPHITE)
169 void snapRecordingAndSubmit();
virtual void onUIStateChanged(const SkString &stateName, const SkString &stateValue)
virtual bool onChar(SkUnichar c, skui::ModifierKey)
virtual bool onMouseWheel(float delta, int x, int y, skui::ModifierKey)
void setActive(bool active)
virtual bool onPinch(skui::InputState state, float scale, float x, float y)
virtual bool onFling(skui::InputState state)
virtual bool onTouch(intptr_t owner, skui::InputState, float x, float y)
virtual bool onKey(skui::Key, skui::InputState, skui::ModifierKey)
virtual void onAttach(Window *window)
virtual void onResize(int width, int height)
virtual bool onMouse(int x, int y, skui::InputState, skui::ModifierKey)
virtual void onBackendCreated()
virtual void onPrePaint()
virtual void onPaint(SkSurface *)
virtual const DisplayParams & getRequestedDisplayParams()
virtual bool scaleContentToFit() const
bool onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers)
void visitLayers(const std::function< void(Layer *)> &visitor)
bool onTouch(intptr_t owner, skui::InputState state, float x, float y)
skgpu::graphite::Context * graphiteContext() const
virtual void setUIState(const char *)
bool onChar(SkUnichar c, skui::ModifierKey modifiers)
void onUIStateChanged(const SkString &stateName, const SkString &stateValue)
virtual void setClipboardText(const char *)
static Window * CreateNativeWindow(void *platformData)
void pushLayer(Layer *layer)
virtual void setRequestedDisplayParams(const DisplayParams &, bool allowReattach=true)
bool onMouseWheel(float delta, int x, int y, skui::ModifierKey modifiers)
virtual bool attach(BackendType)=0
bool onFling(skui::InputState state)
virtual const char * getClipboardText()
bool signalLayers(const std::function< bool(Layer *)> &visitor)
void markInvalProcessed()
GrDirectContext * directContext() const
void onActivate(bool isActive)
bool fIsContentInvalidated
DisplayParams fRequestedDisplayParams
bool onPinch(skui::InputState state, float scale, float x, float y)
void onResize(int width, int height)
std::unique_ptr< skwindow::WindowContext > fWindowContext
bool onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers)
virtual void setTitle(const char *)=0
SkTDArray< Layer * > fLayers
virtual float scaleFactor() const
skgpu::graphite::Recorder * graphiteRecorder() const
Dart_NativeFunction function