49 KoColorConversionTransformation::ConversionFlags conversionFlags);
74 KoColorConversionTransformation::ConversionFlags conversionFlags);
86 void initGL(QOpenGLFunctions *f);
88 void setChannelFlags(
const QBitArray &channelFlags);
91 bool internalColorManagementActive()
const;
92 bool setInternalColorManagementActive(
bool value);
97 static const int BACKGROUND_TEXTURE_CHECK_SIZE = 32;
98 static const int BACKGROUND_TEXTURE_SIZE = BACKGROUND_TEXTURE_CHECK_SIZE * 2;
104 void generateCheckerTexture(
const QImage & checkImage);
105 GLuint checkerTexture();
107 void updateConfig(
bool useBuffer,
int NumMipmapLevels);
109 void testingForceInitialized();
113 return m_storedImageBounds;
117 return x / m_texturesInfo.effectiveWidth;
121 return y / m_texturesInfo.effectiveHeight;
126 int tile = row * m_numCols + col;
128 return m_textureTiles[tile];
135 int tile = row * m_numCols + col;
143 return &m_tileVertexBuffer;
147 return &m_tileTexCoordBuffer;
151 Q_ASSERT(m_texturesInfo.width == m_texturesInfo.height);
152 return 1.0 / m_texturesInfo.width;
158 void recalculateCache(
KisUpdateInfoSP info,
bool blockMipmapRegeneration);
160 void slotImageSizeChanged(qint32 w, qint32 h);
172 KoColorConversionTransformation::ConversionFlags conversionFlags);
174 void recreateImageTextureTiles();
176 void destroyImageTextureTiles();
178 void initBufferStorage(
bool useBuffer);
184 void updateTextureFormat();
200 bool m_internalColorManagementActive {
true};
213 QOpenGLFunctions *m_glFuncs {
nullptr};
215 bool m_useOcio {
false};
216 bool m_initialized {
false};
QOpenGLBuffer m_tileTexCoordBuffer
int getTextureBufferIndexCR(int col, int row)
KisOpenGLBufferCircularStorage m_bufferStorage
void sigShowFloatingMessage(const QString &message, int timeout, bool priority)
QRect storedImageBounds()
QRect m_storedImageBounds
QOpenGLBuffer * tileVertexBuffer()
KoColorConversionTransformation::ConversionFlags m_conversionFlags
QOpenGLBuffer * tileTexCoordBuffer()
KoColorConversionTransformation::Intent m_renderingIntent
QOpenGLBuffer m_tileVertexBuffer
QVector< KisTextureTile * > m_textureTiles
boost::optional< GLuint > m_checkerTexture
KisTextureTile * getTextureTileCR(int col, int row)
KisOpenGLUpdateInfoBuilder m_updateInfoBuilder
KisGLTexturesInfo m_texturesInfo
QSharedPointer< KisTextureTileInfoPool > KisTextureTileInfoPoolSP
QSharedPointer< KisProofingConfiguration > KisProofingConfigurationSP
KisSharedPtr< KisOpenGLImageTextures > KisOpenGLImageTexturesSP