summaryrefslogtreecommitdiff
path: root/kde-frameworks/kdeclarative
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-08-02 19:14:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-08-02 19:14:55 +0100
commitb24bd25253fe093f722ab576d29fdc41d04cb1ee (patch)
tree0fcf2afd9f852c4d4c291cf8afaa2c244d598105 /kde-frameworks/kdeclarative
parent121ed4eec41fbf03e1998d09eede1bf449da63b9 (diff)
gentoo resync : 02.08.2019
Diffstat (limited to 'kde-frameworks/kdeclarative')
-rw-r--r--kde-frameworks/kdeclarative/Manifest5
-rw-r--r--kde-frameworks/kdeclarative/files/kdeclarative-5.57.0-fix-plotter-crash.patch262
-rw-r--r--kde-frameworks/kdeclarative/kdeclarative-5.57.0-r1.ebuild33
-rw-r--r--kde-frameworks/kdeclarative/kdeclarative-5.60.0.ebuild2
4 files changed, 2 insertions, 300 deletions
diff --git a/kde-frameworks/kdeclarative/Manifest b/kde-frameworks/kdeclarative/Manifest
index 5f52386f2495..588be38988bf 100644
--- a/kde-frameworks/kdeclarative/Manifest
+++ b/kde-frameworks/kdeclarative/Manifest
@@ -1,6 +1,3 @@
-AUX kdeclarative-5.57.0-fix-plotter-crash.patch 8674 BLAKE2B e260ae732380833519007bd379cf7d527d494959c3abcb1e88d9ec1f62899a26d2bf20dc995403d77adcce58b7da3bda5b9be7fa16c06c98b116c999b8674594 SHA512 da30f3f6a9cca0ffd2e737820633e29919761ce6631f25e12d39d2cee100f9a4d012f10767504bddde34fa390f8ee881e9dc052f15e4bf3b6f6cfb74ff763759
-DIST kdeclarative-5.57.0.tar.xz 173752 BLAKE2B 49d2d600004472634e979d24caee79b456fafaea0c18550145a8b7d25b619f56e4eaf4a447f5eee435627cef23f67fe5cfc45ff56d2cf67c7df2b681b744638d SHA512 90e5fd9474a85b8d723cf33b5c5db443837710a6f40fa12f57e1cfe87733986b9ca9c2accfa7e254acf081ee69d5b3126b3f67b531024225172d737ef1c7df07
DIST kdeclarative-5.60.0.tar.xz 173240 BLAKE2B 03831da9c3a7fc45a10d31dc5eb176ef44ab430755a434b95f0f13a741eba8c7d7c0b98937de979e1513afa594e4ad2af06eeb6fc82fdcc1347f48a9e530f1b3 SHA512 37bb343a615dd5d1c273926dc448214089cd40bb05fd15f772cb3bdcb312a5dfdb32256bc288a2051025e4853554fa2b7b7d105657a9f90385092edc1ec83705
-EBUILD kdeclarative-5.57.0-r1.ebuild 816 BLAKE2B 6944ab0d4f6b0d0ba529c4c5ab87032e05c1cd8794e273f2ffea1ba3b9f520ccabd30a8635b4e012307c58f23ea74e49d70ccb9ce25dfb403bb855a230837202 SHA512 b716de77020cfda163e18b4c3547c28401b15fff336f03d960162e13649c8ea7d41c59d837df45414899d559db69a669353e8bf8db2e7359bd5680d7824ba15a
-EBUILD kdeclarative-5.60.0.ebuild 763 BLAKE2B 6f7823c3200a4db84b3472fdc8eaea552dc3fd200fe9580c792aa44f816a302d97e84e8a434041a32bf665f0004c279d99ddad5514c76f79fd0ebbb23bf14e31 SHA512 93e64ef6a925fe9c6afcb2875ed26391f39c10547f2d6ff2f3fbe7e8fd88ece65847b7b52a8215988b740ee6df95bc2990e9c9a23add17e8fd83b4abc1b63d58
+EBUILD kdeclarative-5.60.0.ebuild 760 BLAKE2B 34d23b39b25071d7ceeaf9935c82bd85eb55a19323ac2d53d2fb173c21432eeece4cc59641c03923c25b905301ff2a8c764013f6e405a8cb8d7318960e31a03b SHA512 d6f97cfd21f98de5ac07f07da450f9dab62303d1d791758479303c1753bede6a74aa40e391d28d930138f9f25b6c718e5bdcdcbaf4affab31f032f62ddbf312b
MISC metadata.xml 249 BLAKE2B ad415db89e5dee1627aa77f44ded9d4e1e5b8217d06c7ca25bbaa3fe92ce67c2b1090957c45a821b407d7927e5af798498aa6a5b903895ee1af8ee20a446c7f7 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3
diff --git a/kde-frameworks/kdeclarative/files/kdeclarative-5.57.0-fix-plotter-crash.patch b/kde-frameworks/kdeclarative/files/kdeclarative-5.57.0-fix-plotter-crash.patch
deleted file mode 100644
index 141651095130..000000000000
--- a/kde-frameworks/kdeclarative/files/kdeclarative-5.57.0-fix-plotter-crash.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 0aab7d23a2ce155c4beb5cf77fcac02c93b183b7 Mon Sep 17 00:00:00 2001
-From: David Edmundson <kde@davidedmundson.co.uk>
-Date: Thu, 18 Apr 2019 11:15:06 +0100
-Subject: Plotter: Scope GL Program to lifespan of scenegraph node
-
-Summary:
-Currently the QOpenGLProgram was static. This works when you only have
-one OpenGL context that is never invalidated.
-
-Instead we shoul have a new program created for each context. There is
-no benefit of being static when we can use the cached shader loading.
-
-As we need a program per context, we would need to handle windowChanged
-and sceneGraphInvalidated manually. Instead we can scope the program to
-the QSGNode which will be deleted and recreated on the render thread
-automatically by the scene graph backend.
-
-We can also drop ManagedTextureNode and use
-QSGSimpleTextureNode::setOwnsTexture which does the same thing.
-
-BUG: 403453
-
-Test Plan:
-Created a CPU load viewer on my panel
-Dragged it to my desktop
-Previously that didn't render anything
-Now it does
-
-It should fix the crashes that we
-see on window moves and handling sceneGraphInvalidated
-
-Reviewers: #plasma
-
-Subscribers: kde-frameworks-devel
-
-Tags: #frameworks
-
-Differential Revision: https://phabricator.kde.org/D20656
----
- src/qmlcontrols/kquickcontrolsaddons/plotter.cpp | 106 ++++++++++++++---------
- src/qmlcontrols/kquickcontrolsaddons/plotter.h | 11 +--
- 2 files changed, 68 insertions(+), 49 deletions(-)
-
-diff --git a/src/qmlcontrols/kquickcontrolsaddons/plotter.cpp b/src/qmlcontrols/kquickcontrolsaddons/plotter.cpp
-index 650151d..8495bbd 100644
---- a/src/qmlcontrols/kquickcontrolsaddons/plotter.cpp
-+++ b/src/qmlcontrols/kquickcontrolsaddons/plotter.cpp
-@@ -44,8 +44,6 @@
-
- #include <QDebug>
-
--#include <QuickAddons/ManagedTextureNode>
--
- #include <math.h>
-
- //completely arbitrary
-@@ -262,16 +260,58 @@ void PlotTexture::recreate(const QSize &size)
- m_size = size;
- }
-
-+class PlotSGNode: public QSGSimpleTextureNode
-+{
-+public:
-+ PlotSGNode();
-+ void bind() {
-+ m_program->bind();
-+ }
-+ void setMatrix(const QMatrix4x4 &matrix) {
-+ m_program->setUniformValue(u_matrix, matrix);
-+ }
-+ void setColor1(const QColor &color) {
-+ m_program->setUniformValue(u_color1, color);
-+ }
-+ void setColor2(const QColor &color) {
-+ m_program->setUniformValue(u_color2, color);
-+ }
-+ void setYMin(float min) {
-+ m_program->setUniformValue(u_yMin, min);
-+ }
-+ void setYMax(float max) {
-+ m_program->setUniformValue(u_yMax, max);
-+ }
-+ ~PlotSGNode() = default;
-+private:
-+ QScopedPointer<QOpenGLShaderProgram> m_program;
-+ int u_matrix;
-+ int u_color1;
-+ int u_color2;
-+ int u_yMin;
-+ int u_yMax;
-
-+};
-+
-+PlotSGNode::PlotSGNode():
-+ m_program(new QOpenGLShaderProgram)
-+{
-+ setOwnsTexture(true);
-+ m_program->addCacheableShaderFromSourceCode(QOpenGLShader::Vertex, vs_source);
-+ m_program->addCacheableShaderFromSourceCode(QOpenGLShader::Fragment, fs_source);
-+ m_program->bindAttributeLocation("vertex", 0);
-+ m_program->link();
-+
-+ u_yMin = m_program->uniformLocation("yMin");
-+ u_yMax = m_program->uniformLocation("yMax");
-+ u_color1 = m_program->uniformLocation("color1");
-+ u_color2 = m_program->uniformLocation("color2");
-+ u_matrix = m_program->uniformLocation("matrix");
-+}
-
--// ----------------------
-
--QOpenGLShaderProgram *Plotter::s_program = nullptr;
--int Plotter::u_matrix;
--int Plotter::u_color1;
--int Plotter::u_color2;
--int Plotter::u_yMin;
--int Plotter::u_yMax;
-+
-+// ----------------------
-
- Plotter::Plotter(QQuickItem *parent)
- : QQuickItem(parent),
-@@ -652,18 +692,18 @@ void Plotter::render()
- glEnableVertexAttribArray(0);
-
- // Bind the shader program
-- s_program->bind();
-- s_program->setUniformValue(u_matrix, m_matrix);
-+ m_node->bind();
-+ m_node->setMatrix(m_matrix);
-
- // Draw the lines
- QColor color1 = m_gridColor;
- QColor color2 = m_gridColor;
- color1.setAlphaF(0.10);
- color2.setAlphaF(0.40);
-- s_program->setUniformValue(u_yMin, (float) 0.0);
-- s_program->setUniformValue(u_yMax, (float) height());
-- s_program->setUniformValue(u_color1, color1);
-- s_program->setUniformValue(u_color2, color2);
-+ m_node->setYMin((float) 0.0);
-+ m_node->setYMax((float) height());
-+ m_node->setColor1(color1);
-+ m_node->setColor2(color2);
-
- glDrawArrays(GL_LINES, 0, (m_horizontalLineCount+1) * 2 );
-
-@@ -677,18 +717,18 @@ void Plotter::render()
- color2 = data->color();
- color2.setAlphaF(0.60);
- // Draw the graph
-- s_program->setUniformValue(u_yMin, min);
-- s_program->setUniformValue(u_yMax, max);
-- s_program->setUniformValue(u_color1, data->color());
-- s_program->setUniformValue(u_color2, color2);
-+ m_node->setYMin(min);
-+ m_node->setYMax(max);
-+ m_node->setColor1(data->color());
-+ m_node->setColor2(color2);
-
- //+2 is for the bottom line
- glDrawArrays(GL_TRIANGLE_STRIP, m_horizontalLineCount*2 + 2 + oldCount.first + oldCount.second, verticesCounts[data].first);
-
- oldCount.first += verticesCounts[data].first;
-
-- s_program->setUniformValue(u_color1, data->color());
-- s_program->setUniformValue(u_color2, data->color());
-+ m_node->setColor1(data->color());
-+ m_node->setColor2(data->color());
- glDrawArrays(GL_LINE_STRIP, m_horizontalLineCount*2 + 2 + oldCount.first + oldCount.second, verticesCounts[data].second);
-
- oldCount.second += verticesCounts[data].second;
-@@ -697,8 +737,8 @@ void Plotter::render()
-
- glDisable(GL_BLEND);
-
-- s_program->setUniformValue(u_color1, m_gridColor);
-- s_program->setUniformValue(u_color2, m_gridColor);
-+ m_node->setColor1(m_gridColor);
-+ m_node->setColor2(m_gridColor);
- glDrawArrays(GL_LINES, vertices.count()-2, 2);
-
- if (m_haveMSAA && m_haveFramebufferBlit) {
-@@ -723,7 +763,7 @@ QSGNode *Plotter::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updateP
- return nullptr;
- }
-
-- ManagedTextureNode *n = static_cast<ManagedTextureNode *>(oldNode);
-+ PlotSGNode *n = static_cast<PlotSGNode *>(oldNode);
-
- if (width() == 0 && height() == 0) {
- delete oldNode;
-@@ -731,8 +771,8 @@ QSGNode *Plotter::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updateP
- }
-
- if (!n) {
-- n = new ManagedTextureNode();
-- n->setTexture(QSharedPointer<QSGTexture>(new PlotTexture(window()->openglContext())));
-+ n = new PlotSGNode();
-+ n->setTexture(new PlotTexture(window()->openglContext()));
- n->setFiltering(QSGTexture::Linear);
-
- m_node = n;
-@@ -786,20 +826,6 @@ QSGNode *Plotter::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updateP
- m_initialized = true;
- }
-
-- if (!s_program) {
-- s_program = new QOpenGLShaderProgram;
-- s_program->addShaderFromSourceCode(QOpenGLShader::Vertex, vs_source);
-- s_program->addShaderFromSourceCode(QOpenGLShader::Fragment, fs_source);
-- s_program->bindAttributeLocation("vertex", 0);
-- s_program->link();
--
-- u_yMin = s_program->uniformLocation("yMin");
-- u_yMax = s_program->uniformLocation("yMax");
-- u_color1 = s_program->uniformLocation("color1");
-- u_color2 = s_program->uniformLocation("color2");
-- u_matrix = s_program->uniformLocation("matrix");
-- }
--
- //we need a size always equal or smaller, size.toSize() won't do
- const QSize targetTextureSize(qRound(boundingRect().size().width()), qRound(boundingRect().size().height()));
- if (n->texture()->textureSize() != targetTextureSize) {
-diff --git a/src/qmlcontrols/kquickcontrolsaddons/plotter.h b/src/qmlcontrols/kquickcontrolsaddons/plotter.h
-index 01c0ef2..11ae233 100644
---- a/src/qmlcontrols/kquickcontrolsaddons/plotter.h
-+++ b/src/qmlcontrols/kquickcontrolsaddons/plotter.h
-@@ -47,7 +47,7 @@
- #include <QQuickWindow>
- #include <QMutex>
-
--class ManagedTextureNode;
-+class PlotSGNode;
-
- /**
- * a Plotter can draw a graph of values arriving from an arbitrary number of data sources
-@@ -242,7 +242,7 @@ private:
- QList<PlotData *> m_plotData;
-
- GLuint m_fbo = 0;
-- ManagedTextureNode *m_node = nullptr;
-+ PlotSGNode *m_node = nullptr;
- qreal m_min;
- qreal m_max;
- qreal m_rangeMax;
-@@ -262,13 +262,6 @@ private:
- int m_samples;
- QPointer <QQuickWindow> m_window;
- QMutex m_mutex;
--
-- static QOpenGLShaderProgram *s_program;
-- static int u_matrix;
-- static int u_color1;
-- static int u_color2;
-- static int u_yMin;
-- static int u_yMax;
- };
-
- #endif
---
-cgit v1.1
diff --git a/kde-frameworks/kdeclarative/kdeclarative-5.57.0-r1.ebuild b/kde-frameworks/kdeclarative/kdeclarative-5.57.0-r1.ebuild
deleted file mode 100644
index 9c670dff344d..000000000000
--- a/kde-frameworks/kdeclarative/kdeclarative-5.57.0-r1.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-KDE_TEST="false"
-inherit kde5
-
-DESCRIPTION="Framework providing integration of QML and KDE work spaces"
-LICENSE="LGPL-2+"
-KEYWORDS="amd64 ~arm arm64 x86"
-IUSE=""
-
-DEPEND="
- $(add_frameworks_dep kconfig)
- $(add_frameworks_dep kcoreaddons)
- $(add_frameworks_dep kglobalaccel)
- $(add_frameworks_dep ki18n)
- $(add_frameworks_dep kiconthemes)
- $(add_frameworks_dep kio)
- $(add_frameworks_dep kpackage)
- $(add_frameworks_dep kservice)
- $(add_frameworks_dep kwidgetsaddons)
- $(add_frameworks_dep kwindowsystem)
- $(add_qt_dep qtdeclarative)
- $(add_qt_dep qtgui)
- $(add_qt_dep qtnetwork)
- $(add_qt_dep qtwidgets)
- media-libs/libepoxy
-"
-RDEPEND="${DEPEND}"
-
-PATCHES=( "${FILESDIR}/${P}-fix-plotter-crash.patch" )
diff --git a/kde-frameworks/kdeclarative/kdeclarative-5.60.0.ebuild b/kde-frameworks/kdeclarative/kdeclarative-5.60.0.ebuild
index 5633863dfd62..26a0fcf5570e 100644
--- a/kde-frameworks/kdeclarative/kdeclarative-5.60.0.ebuild
+++ b/kde-frameworks/kdeclarative/kdeclarative-5.60.0.ebuild
@@ -8,7 +8,7 @@ inherit kde5
DESCRIPTION="Framework providing integration of QML and KDE work spaces"
LICENSE="LGPL-2+"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+KEYWORDS="amd64 ~arm arm64 x86"
IUSE=""
DEPEND="