32 RenderingFlags flags()
const override {
return BoundedRectRendering; }
33 void preprocess()
override;
34 StateFlags changedStates()
const override {
return {}; }
35 virtual QImage process(
const QImage &sourceImage, QPainter::RenderHints hints) = 0;
36 virtual void sync(QQuickItem *item);
37 void render(
const RenderState *state)
override final;
39 void setCached(
bool cached);
45 void onRenderTextureChanged();
48 QImage updateCachedImage(QSGTextureProvider *provider);
49 bool updateTexture(QSGTexture *texture);
52 void renderImpl(QPainter *p);
55 QPointer<QSGTextureProvider> m_sourceProvider;
57 QImage m_renderDevice;
58 QQuickItem *m_item =
nullptr;
59 QQuickWindow *m_window =
nullptr;
60 bool m_cached =
false;
61 bool m_changed =
true;
62 bool m_antialiasing =
false;
63 bool m_smooth =
false;