协程架构重构成功, 下一步准备指针交换 无锁化重构
This commit is contained in:
@@ -57,6 +57,8 @@ namespace YSG {
|
||||
QColor backgroundColor();
|
||||
bool mFirstResize = true, mFirstPrepareData = true;
|
||||
void setBackgroundColor(const QColor& color) const;
|
||||
void markRenderStateDirty();
|
||||
void requestRender();
|
||||
struct Layer {
|
||||
QString mLayerName;
|
||||
QVector<RenderAble*> mRenderAbles;
|
||||
@@ -89,6 +91,11 @@ namespace YSG {
|
||||
QHash<QString, Layer*> mLayerMap;
|
||||
bool event(QEvent* event) final;
|
||||
void paintEvent(QPaintEvent* event) final;
|
||||
void scheduleRenderTimer();
|
||||
void submitRender();
|
||||
void finishRender();
|
||||
void requestUpdate(const QRegion& region);
|
||||
void renderColor(RenderAble::ColorBuffer* color, QSize size, QColor background, std::uint64_t version);
|
||||
friend class TimerThread;
|
||||
friend struct RenderAble;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user