Merge lp:~gerboland/qtubuntu/rasterGLSurface-fixes into lp:qtubuntu

Proposed by Gerry Boland
Status: Merged
Approved by: Nick Dedekind
Approved revision: 298
Merged at revision: 354
Proposed branch: lp:~gerboland/qtubuntu/rasterGLSurface-fixes
Merge into: lp:qtubuntu
Prerequisite: lp:~gerboland/qtubuntu/rasterGLSurface
Diff against target: 34 lines (+7/-3)
1 file modified
src/ubuntumirclient/backingstore.cpp (+7/-3)
To merge this branch: bzr merge lp:~gerboland/qtubuntu/rasterGLSurface-fixes
Reviewer Review Type Date Requested Status
Nick Dedekind (community) Approve
Unity8 CI Bot continuous-integration Approve
Review via email: mp+308365@code.launchpad.net

This proposal supersedes a proposal from 2016-10-13.

Commit message

Small BackingStore fixes: call makeCurrent on texture changes, and choose correct QImage format to avoid bit swizzling

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:298
https://unity8-jenkins.ubuntu.com/job/lp-qtubuntu-ci/146/
Executed test runs:

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtubuntu-ci/146/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:
https://unity8-jenkins.ubuntu.com/job/lp-qtubuntu-ci/153/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/3194
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/3222
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/3078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/3078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/3078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/3078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/3078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/3078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3078/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtubuntu-ci/153/rebuild

review: Approve (continuous-integration)
Revision history for this message
Nick Dedekind (nick-dedekind) wrote :

Looks fine.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/ubuntumirclient/backingstore.cpp'
2--- src/ubuntumirclient/backingstore.cpp 2016-10-13 11:26:47 +0000
3+++ src/ubuntumirclient/backingstore.cpp 2016-10-13 11:26:47 +0000
4@@ -35,7 +35,10 @@
5 window->setSurfaceType(QSurface::OpenGLSurface);
6 }
7
8-UbuntuBackingStore::~UbuntuBackingStore() = default;
9+UbuntuBackingStore::~UbuntuBackingStore()
10+{
11+ mContext->makeCurrent(window()); // needed as QOpenGLTexture destructor assumes current context
12+}
13
14 void UbuntuBackingStore::flush(QWindow* window, const QRegion& region, const QPoint& offset)
15 {
16@@ -50,7 +53,6 @@
17 mBlitter->create();
18
19 mBlitter->bind();
20- mBlitter->setSwizzleRB(true);
21 mBlitter->blit(mTexture->textureId(), QMatrix4x4(), QOpenGLTextureBlitter::OriginTopLeft);
22 mBlitter->release();
23
24@@ -113,7 +115,9 @@
25
26 void UbuntuBackingStore::resize(const QSize& size, const QRegion& /*staticContents*/)
27 {
28- mImage = QImage(size, QImage::Format_RGB32);
29+ mImage = QImage(size, QImage::Format_RGBA8888);
30+
31+ mContext->makeCurrent(window());
32
33 if (mTexture->isCreated())
34 mTexture->destroy();

Subscribers

People subscribed via source and target branches