Mir

Merge lp:~albaguirre/mir/move-gl-program into lp:mir

Proposed by Alberto Aguirre
Status: Merged
Approved by: Alan Griffiths
Approved revision: no longer in the source branch.
Merged at revision: 1609
Proposed branch: lp:~albaguirre/mir/move-gl-program
Merge into: lp:mir
Diff against target: 46 lines (+4/-4)
3 files modified
src/platform/graphics/CMakeLists.txt (+1/-0)
src/platform/graphics/gl_program.cpp (+3/-3)
src/server/graphics/CMakeLists.txt (+0/-1)
To merge this branch: bzr merge lp:~albaguirre/mir/move-gl-program
Reviewer Review Type Date Requested Status
Alan Griffiths Approve
Daniel van Vugt Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+218674@code.launchpad.net

Commit message

GLProgram should be part of platform/graphics (LP: #1317200)

Description of the change

GLProgram should be part of platform/graphics (LP: #1317200)

OverlayGLProgram uses a unique_ptr<mir::graphics::GLProgram> which needs the definition of ~GLProgram()
GLProgram currently compiles into mirgraphics which is GPL - libmirplatformgraphics should not link against mirgraphics so this MP moves GLProgram to src/platform/graphics

Alternatively it could live in a LGPL sharedgraphics library perhaps under src/shared/graphics

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I'm a bit confused by our overuse of generic (meaningless) words like "platform" and "graphics". It's not yet clear to me what the right place for GLProgram is until I dig into it.

review: Abstain
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Alright, after a bit more analysis I agree this is the right answer.

Argue about our library design another day...

review: Approve
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Yes. This matches the "licensing" plans. (Which we ought to write up in a public document instead of hearsay and notes from internal discussions/.)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/platform/graphics/CMakeLists.txt'
2--- src/platform/graphics/CMakeLists.txt 2014-05-01 07:13:02 +0000
3+++ src/platform/graphics/CMakeLists.txt 2014-05-07 17:57:08 +0000
4@@ -11,6 +11,7 @@
5 buffer_basic.cpp
6 pixel_format_utils.cpp
7 overlapping_output_grouping.cpp
8+ gl_program.cpp
9 )
10
11 add_library(
12
13=== renamed file 'src/server/graphics/gl_program.cpp' => 'src/platform/graphics/gl_program.cpp'
14--- src/server/graphics/gl_program.cpp 2014-05-01 07:13:02 +0000
15+++ src/platform/graphics/gl_program.cpp 2014-05-07 17:57:08 +0000
16@@ -2,15 +2,15 @@
17 * Copyright © 2013-2014 Canonical Ltd.
18 *
19 * This program is free software: you can redistribute it and/or modify it
20- * under the terms of the GNU General Public License version 3,
21+ * under the terms of the GNU Lesser General Public License version 3,
22 * as published by the Free Software Foundation.
23 *
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27- * GNU General Public License for more details.
28+ * GNU Lesser General Public License for more details.
29 *
30- * You should have received a copy of the GNU General Public License
31+ * You should have received a copy of the GNU Lesser General Public License
32 * along with this program. If not, see <http://www.gnu.org/licenses/>.
33 *
34 * Authored by: Kevin DuBois <kevin.dubois@canonical.com>
35
36=== modified file 'src/server/graphics/CMakeLists.txt'
37--- src/server/graphics/CMakeLists.txt 2014-05-05 03:36:45 +0000
38+++ src/server/graphics/CMakeLists.txt 2014-05-07 17:57:08 +0000
39@@ -6,7 +6,6 @@
40 default_configuration.cpp
41 default_display_configuration_policy.cpp
42 gl_extensions_base.cpp
43- gl_program.cpp
44 program_factory.cpp
45 surfaceless_egl_context.cpp
46 builtin_cursor_images.cpp

Subscribers

People subscribed via source and target branches