Merge lp:~gerboland/qtmir/fix-qt5.4 into lp:qtmir

Proposed by Gerry Boland
Status: Merged
Approved by: Timo Jyrinki
Approved revision: 283
Merged at revision: 286
Proposed branch: lp:~gerboland/qtmir/fix-qt5.4
Merge into: lp:qtmir
Diff against target: 27 lines (+8/-0)
1 file modified
src/modules/Unity/Application/mirbuffersgtexture.cpp (+8/-0)
To merge this branch: bzr merge lp:~gerboland/qtmir/fix-qt5.4
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Timo Jyrinki (community) Approve
Review via email: mp+242485@code.launchpad.net

Commit message

Fix build with Qt5.4

Description of the change

Fix build with Qt5.4

 * Are there any related MPs required for this MP to build/function as expected? Please list.
N
 * Did you perform an exploratory manual test run of your code change and any related functionality?
No, it's just to fix a FTBFS with Qt5.4
 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N

To post a comment you must log in.
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/modules/Unity/Application/mirbuffersgtexture.cpp'
--- src/modules/Unity/Application/mirbuffersgtexture.cpp 2014-07-21 13:16:37 +0000
+++ src/modules/Unity/Application/mirbuffersgtexture.cpp 2014-11-21 12:41:20 +0000
@@ -88,7 +88,11 @@
8888
89void MirBufferSGTexture::bind()89void MirBufferSGTexture::bind()
90{90{
91#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0)
91 bool profileFrames = qsg_render_timing || QQuickProfiler::enabled;92 bool profileFrames = qsg_render_timing || QQuickProfiler::enabled;
93#else
94 bool profileFrames = qsg_render_timing || QQuickProfiler::profilingSceneGraph();
95#endif
92 if (profileFrames)96 if (profileFrames)
93 qsg_renderer_timer.start();97 qsg_renderer_timer.start();
9498
@@ -107,7 +111,11 @@
107 (int) qsg_renderer_timer.elapsed());111 (int) qsg_renderer_timer.elapsed());
108 }112 }
109113
114#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0)
110 Q_QUICK_SG_PROFILE1(QQuickProfiler::SceneGraphTexturePrepare, (115 Q_QUICK_SG_PROFILE1(QQuickProfiler::SceneGraphTexturePrepare, (
116#else
117 Q_QUICK_SG_PROFILE(QQuickProfiler::SceneGraphTexturePrepare, (
118#endif
111 bindTime, // bind (all this does)119 bindTime, // bind (all this does)
112 0, // convert (not relevant)120 0, // convert (not relevant)
113 0, // swizzle (not relevant)121 0, // swizzle (not relevant)

Subscribers

People subscribed via source and target branches