Mir

Merge lp:mir/0.16 into lp:mir/ubuntu

Proposed by Cemil Azizoglu
Status: Merged
Approved by: Alexandros Frantzis
Approved revision: 2952
Merged at revision: 1245
Proposed branch: lp:mir/0.16
Merge into: lp:mir/ubuntu
Diff against target: 242 lines (+183/-1)
7 files modified
3rd_party/android-deps/android/native_window.h (+126/-0)
3rd_party/android-deps/android/rect.h (+41/-0)
CMakeLists.txt (+1/-1)
debian/changelog (+11/-0)
src/common/graphics/android/CMakeLists.txt (+1/-0)
src/platforms/android/client/CMakeLists.txt (+2/-0)
src/platforms/android/server/CMakeLists.txt (+1/-0)
To merge this branch: bzr merge lp:mir/0.16
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Mir development team Pending
Review via email: mp+272776@code.launchpad.net

Commit message

Mir 0.16.1 :

Fix for LP: #1499134

Description of the change

Fix for LP: #1499134

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file '3rd_party/android-deps/android/native_window.h'
2--- 3rd_party/android-deps/android/native_window.h 1970-01-01 00:00:00 +0000
3+++ 3rd_party/android-deps/android/native_window.h 2015-09-29 14:58:53 +0000
4@@ -0,0 +1,126 @@
5+/*
6+ * Copyright (C) 2010 The Android Open Source Project
7+ *
8+ * Licensed under the Apache License, Version 2.0 (the "License");
9+ * you may not use this file except in compliance with the License.
10+ * You may obtain a copy of the License at
11+ *
12+ * http://www.apache.org/licenses/LICENSE-2.0
13+ *
14+ * Unless required by applicable law or agreed to in writing, software
15+ * distributed under the License is distributed on an "AS IS" BASIS,
16+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+ * See the License for the specific language governing permissions and
18+ * limitations under the License.
19+ */
20+
21+#ifndef ANDROID_NATIVE_WINDOW_H
22+#define ANDROID_NATIVE_WINDOW_H
23+
24+#include <android/rect.h>
25+
26+#ifdef __cplusplus
27+extern "C" {
28+#endif
29+
30+/*
31+ * Pixel formats that a window can use.
32+ */
33+enum {
34+ WINDOW_FORMAT_RGBA_8888 = 1,
35+ WINDOW_FORMAT_RGBX_8888 = 2,
36+ WINDOW_FORMAT_RGB_565 = 4,
37+};
38+
39+struct ANativeWindow;
40+typedef struct ANativeWindow ANativeWindow;
41+
42+typedef struct ANativeWindow_Buffer {
43+ // The number of pixels that are show horizontally.
44+ int32_t width;
45+
46+ // The number of pixels that are shown vertically.
47+ int32_t height;
48+
49+ // The number of *pixels* that a line in the buffer takes in
50+ // memory. This may be >= width.
51+ int32_t stride;
52+
53+ // The format of the buffer. One of WINDOW_FORMAT_*
54+ int32_t format;
55+
56+ // The actual bits.
57+ void* bits;
58+
59+ // Do not touch.
60+ uint32_t reserved[6];
61+} ANativeWindow_Buffer;
62+
63+/**
64+ * Acquire a reference on the given ANativeWindow object. This prevents the object
65+ * from being deleted until the reference is removed.
66+ */
67+void ANativeWindow_acquire(ANativeWindow* window);
68+
69+/**
70+ * Remove a reference that was previously acquired with ANativeWindow_acquire().
71+ */
72+void ANativeWindow_release(ANativeWindow* window);
73+
74+/*
75+ * Return the current width in pixels of the window surface. Returns a
76+ * negative value on error.
77+ */
78+int32_t ANativeWindow_getWidth(ANativeWindow* window);
79+
80+/*
81+ * Return the current height in pixels of the window surface. Returns a
82+ * negative value on error.
83+ */
84+int32_t ANativeWindow_getHeight(ANativeWindow* window);
85+
86+/*
87+ * Return the current pixel format of the window surface. Returns a
88+ * negative value on error.
89+ */
90+int32_t ANativeWindow_getFormat(ANativeWindow* window);
91+
92+/*
93+ * Change the format and size of the window buffers.
94+ *
95+ * The width and height control the number of pixels in the buffers, not the
96+ * dimensions of the window on screen. If these are different than the
97+ * window's physical size, then it buffer will be scaled to match that size
98+ * when compositing it to the screen.
99+ *
100+ * For all of these parameters, if 0 is supplied then the window's base
101+ * value will come back in force.
102+ *
103+ * width and height must be either both zero or both non-zero.
104+ *
105+ */
106+int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window,
107+ int32_t width, int32_t height, int32_t format);
108+
109+/**
110+ * Lock the window's next drawing surface for writing.
111+ * inOutDirtyBounds is used as an in/out parameter, upon entering the
112+ * function, it contains the dirty region, that is, the region the caller
113+ * intends to redraw. When the function returns, inOutDirtyBounds is updated
114+ * with the actual area the caller needs to redraw -- this region is often
115+ * extended by ANativeWindow_lock.
116+ */
117+int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer,
118+ ARect* inOutDirtyBounds);
119+
120+/**
121+ * Unlock the window's drawing surface after previously locking it,
122+ * posting the new buffer to the display.
123+ */
124+int32_t ANativeWindow_unlockAndPost(ANativeWindow* window);
125+
126+#ifdef __cplusplus
127+};
128+#endif
129+
130+#endif // ANDROID_NATIVE_WINDOW_H
131
132=== added file '3rd_party/android-deps/android/rect.h'
133--- 3rd_party/android-deps/android/rect.h 1970-01-01 00:00:00 +0000
134+++ 3rd_party/android-deps/android/rect.h 2015-09-29 14:58:53 +0000
135@@ -0,0 +1,41 @@
136+/*
137+ * Copyright (C) 2010 The Android Open Source Project
138+ *
139+ * Licensed under the Apache License, Version 2.0 (the "License");
140+ * you may not use this file except in compliance with the License.
141+ * You may obtain a copy of the License at
142+ *
143+ * http://www.apache.org/licenses/LICENSE-2.0
144+ *
145+ * Unless required by applicable law or agreed to in writing, software
146+ * distributed under the License is distributed on an "AS IS" BASIS,
147+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
148+ * See the License for the specific language governing permissions and
149+ * limitations under the License.
150+ */
151+
152+
153+#ifndef ANDROID_RECT_H
154+#define ANDROID_RECT_H
155+
156+#include <stdint.h>
157+
158+#ifdef __cplusplus
159+extern "C" {
160+#endif
161+
162+typedef struct ARect {
163+#ifdef __cplusplus
164+ typedef int32_t value_type;
165+#endif
166+ int32_t left;
167+ int32_t top;
168+ int32_t right;
169+ int32_t bottom;
170+} ARect;
171+
172+#ifdef __cplusplus
173+};
174+#endif
175+
176+#endif // ANDROID_RECT_H
177
178=== modified file 'CMakeLists.txt'
179--- CMakeLists.txt 2015-09-17 20:32:32 +0000
180+++ CMakeLists.txt 2015-09-29 14:58:53 +0000
181@@ -28,7 +28,7 @@
182
183 set(MIR_VERSION_MAJOR 0)
184 set(MIR_VERSION_MINOR 16) # This should change at least with every MIRSERVER_ABI
185-set(MIR_VERSION_PATCH 0)
186+set(MIR_VERSION_PATCH 1)
187
188 add_definitions(-DMIR_VERSION_MAJOR=${MIR_VERSION_MAJOR})
189 add_definitions(-DMIR_VERSION_MINOR=${MIR_VERSION_MINOR})
190
191=== modified file 'debian/changelog'
192--- debian/changelog 2015-09-21 16:03:27 +0000
193+++ debian/changelog 2015-09-29 14:58:53 +0000
194@@ -1,3 +1,14 @@
195+mir (0.16.1-0ubuntu1) UNRELEASED; urgency=medium
196+
197+ * New upstream release 0.16.1 (https://launchpad.net/mir/+milestone/0.16.1)
198+ - No ABI changes. Bug fix release only.
199+ - Bugs fixed:
200+ . Mir suddenly no longer builds since 'mesa (11.0.0-1ubuntu1) wily':
201+ /usr/include/EGL/eglplatform.h:100:35: fatal error:
202+ android/native_window.h: No such file or directory (LP: #1499134)
203+
204+ -- Daniel van Vugt <daniel.van.vugt@canonical.com> Tue, 29 Sep 2015 13:55:06 +0800
205+
206 mir (0.16.0+15.10.20150921.1-0ubuntu1) wily; urgency=medium
207
208 [ Daniel van Vugt ]
209
210=== modified file 'src/common/graphics/android/CMakeLists.txt'
211--- src/common/graphics/android/CMakeLists.txt 2015-06-17 05:20:42 +0000
212+++ src/common/graphics/android/CMakeLists.txt 2015-09-29 14:58:53 +0000
213@@ -1,4 +1,5 @@
214 include_directories(SYSTEM ${LIBHARDWARE_INCLUDE_DIRS})
215+include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/3rd_party/android-deps)
216
217 add_definitions( -DANDROID )
218
219
220=== modified file 'src/platforms/android/client/CMakeLists.txt'
221--- src/platforms/android/client/CMakeLists.txt 2015-07-21 04:30:03 +0000
222+++ src/platforms/android/client/CMakeLists.txt 2015-09-29 14:58:53 +0000
223@@ -1,5 +1,7 @@
224 include_directories(${client_common_include_dirs})
225 include_directories(SYSTEM ${LIBHARDWARE_INCLUDE_DIRS})
226+include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/3rd_party/android-deps)
227+
228 add_definitions(-DANDROID)
229
230 set(symbol_map ${CMAKE_CURRENT_SOURCE_DIR}/symbols.map)
231
232=== modified file 'src/platforms/android/server/CMakeLists.txt'
233--- src/platforms/android/server/CMakeLists.txt 2015-07-21 04:30:03 +0000
234+++ src/platforms/android/server/CMakeLists.txt 2015-09-29 14:58:53 +0000
235@@ -8,6 +8,7 @@
236 ${GLESv2_INCLUDE_DIRS}
237 ${ANDROID_PROPERTIES_INCLUDE_DIRS}
238 )
239+include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/3rd_party/android-deps)
240
241 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
242 add_definitions( -DANDROID )

Subscribers

People subscribed via source and target branches

to all changes: