Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_update_info.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2010 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#include "kis_update_info.h"
8
15 qRegisterMetaType<KisUpdateInfoSP>("KisUpdateInfoSP");
16}
17
21
25
27{
28 return QRect();
29}
30
32{
33 return true;
34}
35
37 return viewportRect.toAlignedRect();
38}
39
43
45{
46 return 0;
47}
48
50 : m_levelOfDetail(0)
51{
52}
53
55 qFatal("Not implemented yet!");
56 return QRect();
57}
58
63
68
73
78
80{
81 if (m_levelOfDetail != rhs.m_levelOfDetail) return false;
82
83 // TODO: that makes the algorithm of updates compressor incorrect!
85
86 tileList.append(rhs.tileList);
87
88 return true;
89}
90
92 : m_type(type),
93 m_dirtyImageRect(dirtyImageRect)
94{
95}
96
101
103{
104 return m_dirtyImageRect;
105}
106
108{
109 // return invalid level of detail to avoid merging the update info
110 // with other updates
111 return -1 - (int)m_type;
112}
113
115{
116 return false;
117}
int levelOfDetail() const override
KisMarkerUpdateInfo(Type type, const QRect &dirtyImageRect)
QRect dirtyImageRect() const override
bool canBeCompressed() const override
KisTextureTileUpdateInfoSPList tileList
void assignLevelOfDetail(int lod)
QRect dirtyViewportRect() override
QRect dirtyImageRect() const override
void assignDirtyImageRect(const QRect &rect)
bool tryMergeWith(const KisOpenGLUpdateInfo &rhs)
int levelOfDetail() const override
QRect dirtyImageRect() const override
QRect dirtyViewportRect() override
int levelOfDetail() const override
virtual QRect dirtyViewportRect()
virtual ~KisUpdateInfo()
virtual bool canBeCompressed() const
KIS_DECLARE_STATIC_INITIALIZER