Merge lp:~alan-griffiths/mir/tidy-code into lp:mir
- tidy-code
- Merge into development-branch
Proposed by
Alan Griffiths
Status: | Merged |
---|---|
Merged at revision: | 4097 |
Proposed branch: | lp:~alan-griffiths/mir/tidy-code |
Merge into: | lp:mir |
Prerequisite: | lp:~alan-griffiths/mir/tidy_code |
Diff against target: |
466 lines (+3/-233) 19 files modified
src/client/CMakeLists.txt (+0/-1) src/client/buffer_stream.cpp (+0/-6) src/client/buffer_stream.h (+0/-3) src/client/error_chain.cpp (+0/-63) src/client/error_chain.h (+0/-51) src/client/input/input_event.cpp (+0/-7) src/client/mir_connection.cpp (+0/-1) src/client/presentation_chain.h (+1/-4) src/client/symbols.map (+2/-22) src/include/common/mir/input/android/event_conversion_helpers.h (+0/-60) src/platforms/android/client/buffer.h (+0/-3) src/platforms/android/server/platform.h (+0/-1) src/platforms/evdev/libinput_device.h (+0/-2) src/platforms/evdev/platform.h (+0/-3) src/server/input/config_changer.cpp (+0/-1) src/server/input/default_device.h (+0/-1) src/server/input/default_input_device_hub.h (+0/-1) src/server/scene/surface_stack.h (+0/-2) tests/unit-tests/frontend/stress_protobuf_communicator.cpp (+0/-1) |
To merge this branch: | bzr merge lp:~alan-griffiths/mir/tidy-code |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel van Vugt | Approve | ||
Chris Halse Rogers | Approve | ||
Kevin DuBois (community) | Approve | ||
Mir CI Bot | continuous-integration | Approve | |
Review via email: mp+320338@code.launchpad.net |
Commit message
Delete unused code
Description of the change
To post a comment you must log in.
Revision history for this message
Mir CI Bot (mir-ci-bot) wrote : | # |
review:
Approve
(continuous-integration)
Revision history for this message
Chris Halse Rogers (raof) wrote : | # |
Seems sensible.
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'src/client/CMakeLists.txt' | |||
2 | --- src/client/CMakeLists.txt 2017-03-17 16:43:10 +0000 | |||
3 | +++ src/client/CMakeLists.txt 2017-03-20 12:15:49 +0000 | |||
4 | @@ -82,7 +82,6 @@ | |||
5 | 82 | mir_buffer_stream_api.cpp | 82 | mir_buffer_stream_api.cpp |
6 | 83 | error_stream.cpp | 83 | error_stream.cpp |
7 | 84 | error_render_surface.cpp | 84 | error_render_surface.cpp |
8 | 85 | error_chain.cpp | ||
9 | 86 | buffer.cpp | 85 | buffer.cpp |
10 | 87 | error_buffer.cpp | 86 | error_buffer.cpp |
11 | 88 | mir_render_surface_api.cpp | 87 | mir_render_surface_api.cpp |
12 | 89 | 88 | ||
13 | === modified file 'src/client/buffer_stream.cpp' | |||
14 | --- src/client/buffer_stream.cpp 2017-03-10 19:47:57 +0000 | |||
15 | +++ src/client/buffer_stream.cpp 2017-03-20 12:15:49 +0000 | |||
16 | @@ -408,12 +408,6 @@ | |||
17 | 408 | return static_cast<EGLNativeWindowType>(egl_native_window_.get()); | 408 | return static_cast<EGLNativeWindowType>(egl_native_window_.get()); |
18 | 409 | } | 409 | } |
19 | 410 | 410 | ||
20 | 411 | void mcl::BufferStream::release_cpu_region() | ||
21 | 412 | { | ||
22 | 413 | std::unique_lock<decltype(mutex)> lock(mutex); | ||
23 | 414 | secured_region.reset(); | ||
24 | 415 | } | ||
25 | 416 | |||
26 | 417 | std::shared_ptr<mcl::MemoryRegion> mcl::BufferStream::secure_for_cpu_write() | 411 | std::shared_ptr<mcl::MemoryRegion> mcl::BufferStream::secure_for_cpu_write() |
27 | 418 | { | 412 | { |
28 | 419 | auto buffer = get_current_buffer(); | 413 | auto buffer = get_current_buffer(); |
29 | 420 | 414 | ||
30 | === modified file 'src/client/buffer_stream.h' | |||
31 | --- src/client/buffer_stream.h 2017-03-10 19:47:57 +0000 | |||
32 | +++ src/client/buffer_stream.h 2017-03-20 12:15:49 +0000 | |||
33 | @@ -141,10 +141,7 @@ | |||
34 | 141 | private: | 141 | private: |
35 | 142 | void process_buffer(protobuf::Buffer const& buffer); | 142 | void process_buffer(protobuf::Buffer const& buffer); |
36 | 143 | void process_buffer(protobuf::Buffer const& buffer, std::unique_lock<std::mutex>&); | 143 | void process_buffer(protobuf::Buffer const& buffer, std::unique_lock<std::mutex>&); |
37 | 144 | void on_scale_set(float scale); | ||
38 | 145 | void release_cpu_region(); | ||
39 | 146 | MirWaitHandle* set_server_swap_interval(int i); | 144 | MirWaitHandle* set_server_swap_interval(int i); |
40 | 147 | void init_swap_interval(); | ||
41 | 148 | void wait_for_vsync(); | 145 | void wait_for_vsync(); |
42 | 149 | 146 | ||
43 | 150 | mutable std::mutex mutex; // Protects all members of *this | 147 | mutable std::mutex mutex; // Protects all members of *this |
44 | 151 | 148 | ||
45 | === removed file 'src/client/error_chain.cpp' | |||
46 | --- src/client/error_chain.cpp 2017-01-18 02:29:37 +0000 | |||
47 | +++ src/client/error_chain.cpp 1970-01-01 00:00:00 +0000 | |||
48 | @@ -1,63 +0,0 @@ | |||
49 | 1 | /* | ||
50 | 2 | * Copyright © 2016 Canonical Ltd. | ||
51 | 3 | * | ||
52 | 4 | * This program is free software: you can redistribute it and/or modify it | ||
53 | 5 | * under the terms of the GNU Lesser General Public License version 3, | ||
54 | 6 | * as published by the Free Software Foundation. | ||
55 | 7 | * | ||
56 | 8 | * This program is distributed in the hope that it will be useful, | ||
57 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
58 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
59 | 11 | * GNU Lesser General Public License for more details. | ||
60 | 12 | * | ||
61 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
62 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
63 | 15 | * | ||
64 | 16 | * Authored by: Kevin DuBois <kevin.dubois@canonical.com> | ||
65 | 17 | */ | ||
66 | 18 | |||
67 | 19 | #include "error_chain.h" | ||
68 | 20 | #include <boost/throw_exception.hpp> | ||
69 | 21 | |||
70 | 22 | namespace mcl = mir::client; | ||
71 | 23 | namespace geom = mir::geometry; | ||
72 | 24 | |||
73 | 25 | mcl::ErrorChain::ErrorChain( | ||
74 | 26 | MirConnection* connection, | ||
75 | 27 | int id, | ||
76 | 28 | std::string const& error_msg) : | ||
77 | 29 | connection_(connection), | ||
78 | 30 | stream_id(id), | ||
79 | 31 | error(error_msg) | ||
80 | 32 | { | ||
81 | 33 | } | ||
82 | 34 | |||
83 | 35 | char const* mcl::ErrorChain::error_msg() const | ||
84 | 36 | { | ||
85 | 37 | return error.c_str(); | ||
86 | 38 | } | ||
87 | 39 | |||
88 | 40 | MirConnection* mcl::ErrorChain::connection() const | ||
89 | 41 | { | ||
90 | 42 | return connection_; | ||
91 | 43 | } | ||
92 | 44 | |||
93 | 45 | int mcl::ErrorChain::rpc_id() const | ||
94 | 46 | { | ||
95 | 47 | return stream_id; | ||
96 | 48 | } | ||
97 | 49 | |||
98 | 50 | void mcl::ErrorChain::submit_buffer(MirBuffer*) | ||
99 | 51 | { | ||
100 | 52 | BOOST_THROW_EXCEPTION(std::logic_error("Cannot submit: invalid MirPresentationChain")); | ||
101 | 53 | } | ||
102 | 54 | |||
103 | 55 | void mcl::ErrorChain::set_queueing_mode() | ||
104 | 56 | { | ||
105 | 57 | BOOST_THROW_EXCEPTION(std::logic_error("Cannot set mode: invalid MirPresentationChain")); | ||
106 | 58 | } | ||
107 | 59 | |||
108 | 60 | void mcl::ErrorChain::set_dropping_mode() | ||
109 | 61 | { | ||
110 | 62 | BOOST_THROW_EXCEPTION(std::logic_error("Cannot set mode: invalid MirPresentationChain")); | ||
111 | 63 | } | ||
112 | 64 | 0 | ||
113 | === removed file 'src/client/error_chain.h' | |||
114 | --- src/client/error_chain.h 2017-01-18 02:29:37 +0000 | |||
115 | +++ src/client/error_chain.h 1970-01-01 00:00:00 +0000 | |||
116 | @@ -1,51 +0,0 @@ | |||
117 | 1 | /* | ||
118 | 2 | * Copyright © 2016 Canonical Ltd. | ||
119 | 3 | * | ||
120 | 4 | * This program is free software: you can redistribute it and/or modify | ||
121 | 5 | * it under the terms of the GNU Lesser General Public License version 3 as | ||
122 | 6 | * published by the Free Software Foundation. | ||
123 | 7 | * | ||
124 | 8 | * This program is distributed in the hope that it will be useful, | ||
125 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
126 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
127 | 11 | * GNU Lesser General Public License for more details. | ||
128 | 12 | * | ||
129 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
130 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
131 | 15 | * | ||
132 | 16 | * Authored by: Kevin DuBois <kevin.dubois@canonical.com> | ||
133 | 17 | */ | ||
134 | 18 | |||
135 | 19 | #ifndef MIR_CLIENT_ERROR_CHAIN_H | ||
136 | 20 | #define MIR_CLIENT_ERROR_CHAIN_H | ||
137 | 21 | |||
138 | 22 | #include "mir_presentation_chain.h" | ||
139 | 23 | #include <memory> | ||
140 | 24 | |||
141 | 25 | namespace mir | ||
142 | 26 | { | ||
143 | 27 | namespace client | ||
144 | 28 | { | ||
145 | 29 | |||
146 | 30 | class ErrorChain : public MirPresentationChain | ||
147 | 31 | { | ||
148 | 32 | public: | ||
149 | 33 | ErrorChain( | ||
150 | 34 | MirConnection* connection, | ||
151 | 35 | int id, | ||
152 | 36 | std::string const& error_msg); | ||
153 | 37 | void submit_buffer(MirBuffer* buffer) override; | ||
154 | 38 | MirConnection* connection() const override; | ||
155 | 39 | int rpc_id() const override; | ||
156 | 40 | char const* error_msg() const override; | ||
157 | 41 | void set_dropping_mode() override; | ||
158 | 42 | void set_queueing_mode() override; | ||
159 | 43 | private: | ||
160 | 44 | MirConnection* const connection_; | ||
161 | 45 | int const stream_id; | ||
162 | 46 | std::string const error; | ||
163 | 47 | }; | ||
164 | 48 | |||
165 | 49 | } | ||
166 | 50 | } | ||
167 | 51 | #endif /* MIR_CLIENT_ERROR_CHAIN_H */ | ||
168 | 52 | 0 | ||
169 | === modified file 'src/client/input/input_event.cpp' | |||
170 | --- src/client/input/input_event.cpp 2017-02-17 08:46:05 +0000 | |||
171 | +++ src/client/input/input_event.cpp 2017-03-20 12:15:49 +0000 | |||
172 | @@ -73,13 +73,6 @@ | |||
173 | 73 | return ev->input_type(); | 73 | return ev->input_type(); |
174 | 74 | }) | 74 | }) |
175 | 75 | 75 | ||
176 | 76 | int mir_input_event_get_window_id(MirInputEvent const* ev) MIR_HANDLE_EVENT_EXCEPTION( | ||
177 | 77 | { | ||
178 | 78 | expect_event_type(ev, mir_event_type_input); | ||
179 | 79 | |||
180 | 80 | return ev->window_id(); | ||
181 | 81 | }) | ||
182 | 82 | |||
183 | 83 | MirInputDeviceId mir_input_event_get_device_id(MirInputEvent const* ev) MIR_HANDLE_EVENT_EXCEPTION( | 76 | MirInputDeviceId mir_input_event_get_device_id(MirInputEvent const* ev) MIR_HANDLE_EVENT_EXCEPTION( |
184 | 84 | { | 77 | { |
185 | 85 | expect_event_type(ev, mir_event_type_input); | 78 | expect_event_type(ev, mir_event_type_input); |
186 | 86 | 79 | ||
187 | === modified file 'src/client/mir_connection.cpp' | |||
188 | --- src/client/mir_connection.cpp 2017-03-14 04:41:33 +0000 | |||
189 | +++ src/client/mir_connection.cpp 2017-03-20 12:15:49 +0000 | |||
190 | @@ -40,7 +40,6 @@ | |||
191 | 40 | #include "render_surface.h" | 40 | #include "render_surface.h" |
192 | 41 | #include "error_render_surface.h" | 41 | #include "error_render_surface.h" |
193 | 42 | #include "presentation_chain.h" | 42 | #include "presentation_chain.h" |
194 | 43 | #include "error_chain.h" | ||
195 | 44 | #include "logging/perf_report.h" | 43 | #include "logging/perf_report.h" |
196 | 45 | #include "lttng/perf_report.h" | 44 | #include "lttng/perf_report.h" |
197 | 46 | #include "buffer_factory.h" | 45 | #include "buffer_factory.h" |
198 | 47 | 46 | ||
199 | === modified file 'src/client/presentation_chain.h' | |||
200 | --- src/client/presentation_chain.h 2017-01-18 02:29:37 +0000 | |||
201 | +++ src/client/presentation_chain.h 2017-03-20 12:15:49 +0000 | |||
202 | @@ -25,7 +25,7 @@ | |||
203 | 25 | #include "mir_toolkit/mir_presentation_chain.h" | 25 | #include "mir_toolkit/mir_presentation_chain.h" |
204 | 26 | #include "mir_protobuf.pb.h" | 26 | #include "mir_protobuf.pb.h" |
205 | 27 | #include "buffer.h" | 27 | #include "buffer.h" |
207 | 28 | #include <mutex> | 28 | |
208 | 29 | #include <memory> | 29 | #include <memory> |
209 | 30 | 30 | ||
210 | 31 | namespace mir | 31 | namespace mir |
211 | @@ -65,9 +65,6 @@ | |||
212 | 65 | std::shared_ptr<AsyncBufferFactory> const mir_buffer_factory; | 65 | std::shared_ptr<AsyncBufferFactory> const mir_buffer_factory; |
213 | 66 | 66 | ||
214 | 67 | BufferStreamConfiguration interval_config; | 67 | BufferStreamConfiguration interval_config; |
215 | 68 | |||
216 | 69 | std::mutex mutex; | ||
217 | 70 | std::vector<std::unique_ptr<Buffer>> buffers; | ||
218 | 71 | }; | 68 | }; |
219 | 72 | } | 69 | } |
220 | 73 | } | 70 | } |
221 | 74 | 71 | ||
222 | === modified file 'src/client/symbols.map' | |||
223 | --- src/client/symbols.map 2017-03-20 12:15:49 +0000 | |||
224 | +++ src/client/symbols.map 2017-03-20 12:15:49 +0000 | |||
225 | @@ -302,19 +302,6 @@ | |||
226 | 302 | extern "C++" { | 302 | extern "C++" { |
227 | 303 | mir::events::make_event*; | 303 | mir::events::make_event*; |
228 | 304 | mir::events::add_touch*; | 304 | mir::events::add_touch*; |
229 | 305 | mir::input::android::Lexicon::translate*; | ||
230 | 306 | mir::input::android::android_modifiers_from_mir*; | ||
231 | 307 | mir::input::android::mir_modifiers_from_android*; | ||
232 | 308 | mir::input::android::mir_keyboard_action_from_android*; | ||
233 | 309 | mir::input::android::android_keyboard_action_from_mir*; | ||
234 | 310 | mir::input::android::mir_pointer_buttons_from_android*; | ||
235 | 311 | mir::input::android::android_pointer_buttons_from_mir*; | ||
236 | 312 | mir::input::android::mir_tool_type_from_android*; | ||
237 | 313 | mir::input::android::android_tool_type_from_mir*; | ||
238 | 314 | mir::input::android::mir_pointer_action_from_masked_android*; | ||
239 | 315 | mir::input::android::mir_touch_action_from_masked_android*; | ||
240 | 316 | mir::input::android::android_source_id_is_pointer_device*; | ||
241 | 317 | mir::input::android::extract_android_action_from*; | ||
242 | 318 | mir::client::DefaultConnectionConfiguration::DefaultConnectionConfiguration*; | 305 | mir::client::DefaultConnectionConfiguration::DefaultConnectionConfiguration*; |
243 | 319 | mir::client::DefaultConnectionConfiguration::the_surface_map*; | 306 | mir::client::DefaultConnectionConfiguration::the_surface_map*; |
244 | 320 | mir::client::DefaultConnectionConfiguration::the_rpc_channel*; | 307 | mir::client::DefaultConnectionConfiguration::the_rpc_channel*; |
245 | @@ -344,19 +331,12 @@ | |||
246 | 344 | }; | 331 | }; |
247 | 345 | } MIR_CLIENT_DETAIL_9; | 332 | } MIR_CLIENT_DETAIL_9; |
248 | 346 | 333 | ||
249 | 347 | MIR_CLIENT_DETAIL_9v19 { | ||
250 | 348 | global: | ||
251 | 349 | extern "C++" { | ||
252 | 350 | mir::input::android::android_pointer_action_from_mir*; | ||
253 | 351 | }; | ||
254 | 352 | } MIR_CLIENT_DETAIL_9v18; | ||
255 | 353 | |||
256 | 354 | MIR_CLIENT_DETAIL_0.21 { | 334 | MIR_CLIENT_DETAIL_0.21 { |
257 | 355 | global: | 335 | global: |
258 | 356 | extern "C++" { | 336 | extern "C++" { |
259 | 357 | mir::client::DefaultConnectionConfiguration::the_buffer_factory*; | 337 | mir::client::DefaultConnectionConfiguration::the_buffer_factory*; |
260 | 358 | }; | 338 | }; |
262 | 359 | } MIR_CLIENT_DETAIL_9v19; | 339 | } MIR_CLIENT_DETAIL_9v18; |
263 | 360 | 340 | ||
264 | 361 | MIR_CLIENT_DETAIL_private_buffer_semantics { | 341 | MIR_CLIENT_DETAIL_private_buffer_semantics { |
265 | 362 | global: | 342 | global: |
266 | @@ -385,7 +365,7 @@ | |||
267 | 385 | mir_presentation_chain_set_dropping_mode; | 365 | mir_presentation_chain_set_dropping_mode; |
268 | 386 | local: | 366 | local: |
269 | 387 | *; | 367 | *; |
271 | 388 | } MIR_CLIENT_DETAIL_9v19; | 368 | } MIR_CLIENT_DETAIL_9v18; |
272 | 389 | 369 | ||
273 | 390 | MIR_CLIENT_DETAIL_0.24 { | 370 | MIR_CLIENT_DETAIL_0.24 { |
274 | 391 | global: | 371 | global: |
275 | 392 | 372 | ||
276 | === removed file 'src/include/common/mir/input/android/event_conversion_helpers.h' | |||
277 | --- src/include/common/mir/input/android/event_conversion_helpers.h 2015-06-18 02:46:16 +0000 | |||
278 | +++ src/include/common/mir/input/android/event_conversion_helpers.h 1970-01-01 00:00:00 +0000 | |||
279 | @@ -1,60 +0,0 @@ | |||
280 | 1 | /* | ||
281 | 2 | * Copyright © 2015 Canonical Ltd. | ||
282 | 3 | * | ||
283 | 4 | * This program is free software: you can redistribute it and/or modify it | ||
284 | 5 | * under the terms of the GNU Lesser General Public License version 3, | ||
285 | 6 | * as published by the Free Software Foundation. | ||
286 | 7 | * | ||
287 | 8 | * This program is distributed in the hope that it will be useful, | ||
288 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
289 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
290 | 11 | * GNU Lesser General Public License for more details. | ||
291 | 12 | * | ||
292 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
293 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
294 | 15 | * | ||
295 | 16 | * Authored by: Robert Carr <robert.carr@canonical.com> | ||
296 | 17 | */ | ||
297 | 18 | |||
298 | 19 | #ifndef MIR_INPUT_EVENT_CONVERSION_HELPERS_H_ | ||
299 | 20 | #define MIR_INPUT_EVENT_CONVERSION_HELPERS_H_ | ||
300 | 21 | |||
301 | 22 | #include "mir_toolkit/event.h" | ||
302 | 23 | |||
303 | 24 | namespace mir | ||
304 | 25 | { | ||
305 | 26 | namespace input | ||
306 | 27 | { | ||
307 | 28 | namespace android | ||
308 | 29 | { | ||
309 | 30 | MirInputEventModifiers mir_modifiers_from_android(int32_t android_modifiers); | ||
310 | 31 | int32_t android_modifiers_from_mir(MirInputEventModifiers modifiers); | ||
311 | 32 | |||
312 | 33 | MirKeyboardAction mir_keyboard_action_from_android(int32_t android_action, int32_t repeat_count); | ||
313 | 34 | // Mir differentiates between mir_keyboard_action_down | ||
314 | 35 | // and mir_keyboard_action_repeat whereas android encodes | ||
315 | 36 | // keyrepeats as AKEY_EVENT_ACTION_DOWN and a repeatCount of > 0 | ||
316 | 37 | // Thus when converting from MirKeyboardAction to an android | ||
317 | 38 | // action we must also fetch a repeat count for the android event. | ||
318 | 39 | int32_t android_keyboard_action_from_mir(int32_t& repeat_count_out, MirKeyboardAction action); | ||
319 | 40 | |||
320 | 41 | MirPointerButtons mir_pointer_buttons_from_android(int32_t android_state); | ||
321 | 42 | int32_t android_pointer_buttons_from_mir(MirPointerButtons buttons); | ||
322 | 43 | |||
323 | 44 | MirTouchTooltype mir_tool_type_from_android(int32_t android_tooltype); | ||
324 | 45 | int32_t android_tool_type_from_mir(MirTouchTooltype mir_tooltype); | ||
325 | 46 | |||
326 | 47 | MirPointerAction mir_pointer_action_from_masked_android(int32_t android_action); | ||
327 | 48 | MirTouchAction mir_touch_action_from_masked_android(int32_t android_action); | ||
328 | 49 | |||
329 | 50 | bool android_source_id_is_pointer_device(int32_t source_id); | ||
330 | 51 | |||
331 | 52 | int32_t android_pointer_action_from_mir(MirPointerAction action, MirPointerButtons buttons_pressed); | ||
332 | 53 | int32_t extract_masked_android_action_from(MirEvent const& ev); | ||
333 | 54 | int32_t extract_android_action_from(MirEvent const& ev); | ||
334 | 55 | |||
335 | 56 | } | ||
336 | 57 | } | ||
337 | 58 | } | ||
338 | 59 | |||
339 | 60 | #endif // MIR_INPUT_EVENT_CONVERSION_HELPERS_H_ | ||
340 | 61 | 0 | ||
341 | === modified file 'src/platforms/android/client/buffer.h' | |||
342 | --- src/platforms/android/client/buffer.h 2017-01-18 02:29:37 +0000 | |||
343 | +++ src/platforms/android/client/buffer.h 2017-03-20 12:15:49 +0000 | |||
344 | @@ -56,10 +56,7 @@ | |||
345 | 56 | Buffer(const Buffer&) = delete; | 56 | Buffer(const Buffer&) = delete; |
346 | 57 | Buffer& operator=(const Buffer&) = delete; | 57 | Buffer& operator=(const Buffer&) = delete; |
347 | 58 | private: | 58 | private: |
348 | 59 | void pack_native_window_buffer(); | ||
349 | 60 | 59 | ||
350 | 61 | mir::Fd mutable api_user_fence; | ||
351 | 62 | |||
352 | 63 | std::shared_ptr<BufferRegistrar> const buffer_registrar; | 60 | std::shared_ptr<BufferRegistrar> const buffer_registrar; |
353 | 64 | std::shared_ptr<graphics::android::NativeBuffer> const native_buffer; | 61 | std::shared_ptr<graphics::android::NativeBuffer> const native_buffer; |
354 | 65 | MirPixelFormat const buffer_pf; | 62 | MirPixelFormat const buffer_pf; |
355 | 66 | 63 | ||
356 | === modified file 'src/platforms/android/server/platform.h' | |||
357 | --- src/platforms/android/server/platform.h 2017-03-15 11:22:17 +0000 | |||
358 | +++ src/platforms/android/server/platform.h 2017-03-20 12:15:49 +0000 | |||
359 | @@ -64,7 +64,6 @@ | |||
360 | 64 | std::shared_ptr<graphics::GraphicBufferAllocator> const buffer_allocator; | 64 | std::shared_ptr<graphics::GraphicBufferAllocator> const buffer_allocator; |
361 | 65 | std::shared_ptr<DisplayComponentFactory> const display_buffer_builder; | 65 | std::shared_ptr<DisplayComponentFactory> const display_buffer_builder; |
362 | 66 | std::shared_ptr<DisplayReport> const display_report; | 66 | std::shared_ptr<DisplayReport> const display_report; |
363 | 67 | std::shared_ptr<PlatformIpcOperations> const ipc_operations; | ||
364 | 68 | std::shared_ptr<DeviceQuirks> const quirks; | 67 | std::shared_ptr<DeviceQuirks> const quirks; |
365 | 69 | std::shared_ptr<NativeWindowReport> const native_window_report; | 68 | std::shared_ptr<NativeWindowReport> const native_window_report; |
366 | 70 | OverlayOptimization const overlay_option; | 69 | OverlayOptimization const overlay_option; |
367 | 71 | 70 | ||
368 | === modified file 'src/platforms/evdev/libinput_device.h' | |||
369 | --- src/platforms/evdev/libinput_device.h 2017-03-14 02:26:28 +0000 | |||
370 | +++ src/platforms/evdev/libinput_device.h 2017-03-20 12:15:49 +0000 | |||
371 | @@ -82,9 +82,7 @@ | |||
372 | 82 | OutputInfo get_output_info() const; | 82 | OutputInfo get_output_info() const; |
373 | 83 | 83 | ||
374 | 84 | std::shared_ptr<InputReport> report; | 84 | std::shared_ptr<InputReport> report; |
375 | 85 | std::shared_ptr<::libinput> lib; | ||
376 | 86 | std::vector<LibInputDevicePtr> devices; | 85 | std::vector<LibInputDevicePtr> devices; |
377 | 87 | std::shared_ptr<dispatch::Dispatchable> dispatchable_fd; | ||
378 | 88 | 86 | ||
379 | 89 | InputSink* sink{nullptr}; | 87 | InputSink* sink{nullptr}; |
380 | 90 | EventBuilder* builder{nullptr}; | 88 | EventBuilder* builder{nullptr}; |
381 | 91 | 89 | ||
382 | === modified file 'src/platforms/evdev/platform.h' | |||
383 | --- src/platforms/evdev/platform.h 2017-02-15 07:38:33 +0000 | |||
384 | +++ src/platforms/evdev/platform.h 2017-03-20 12:15:49 +0000 | |||
385 | @@ -64,13 +64,10 @@ | |||
386 | 64 | void continue_after_config() override; | 64 | void continue_after_config() override; |
387 | 65 | 65 | ||
388 | 66 | private: | 66 | private: |
389 | 67 | void scan_for_devices(); | ||
390 | 68 | void device_added(libinput_device* dev); | 67 | void device_added(libinput_device* dev); |
391 | 69 | void device_removed(libinput_device* dev); | 68 | void device_removed(libinput_device* dev); |
392 | 70 | void process_input_events(); | 69 | void process_input_events(); |
393 | 71 | 70 | ||
394 | 72 | std::shared_ptr<LibInputDevice> create_device(udev::Device const& dev) const; | ||
395 | 73 | |||
396 | 74 | std::shared_ptr<InputReport> const report; | 71 | std::shared_ptr<InputReport> const report; |
397 | 75 | std::shared_ptr<udev::Context> const udev_context; | 72 | std::shared_ptr<udev::Context> const udev_context; |
398 | 76 | std::shared_ptr<InputDeviceRegistry> const input_device_registry; | 73 | std::shared_ptr<InputDeviceRegistry> const input_device_registry; |
399 | 77 | 74 | ||
400 | === modified file 'src/server/input/config_changer.cpp' | |||
401 | --- src/server/input/config_changer.cpp 2017-02-28 08:53:57 +0000 | |||
402 | +++ src/server/input/config_changer.cpp 2017-03-20 12:15:49 +0000 | |||
403 | @@ -136,7 +136,6 @@ | |||
404 | 136 | mi::ConfigChanger& config_changer; | 136 | mi::ConfigChanger& config_changer; |
405 | 137 | std::vector<std::shared_ptr<mi::Device>> added; | 137 | std::vector<std::shared_ptr<mi::Device>> added; |
406 | 138 | std::vector<MirInputDeviceId> removed; | 138 | std::vector<MirInputDeviceId> removed; |
407 | 139 | bool devices_changed; | ||
408 | 140 | }; | 139 | }; |
409 | 141 | 140 | ||
410 | 142 | } | 141 | } |
411 | 143 | 142 | ||
412 | === modified file 'src/server/input/default_device.h' | |||
413 | --- src/server/input/default_device.h 2017-02-28 08:53:57 +0000 | |||
414 | +++ src/server/input/default_device.h 2017-03-20 12:15:49 +0000 | |||
415 | @@ -72,7 +72,6 @@ | |||
416 | 72 | optional_value<MirTouchscreenConfig> touchscreen_configuration() const override; | 72 | optional_value<MirTouchscreenConfig> touchscreen_configuration() const override; |
417 | 73 | void apply_touchscreen_configuration(MirTouchscreenConfig const&) override; | 73 | void apply_touchscreen_configuration(MirTouchscreenConfig const&) override; |
418 | 74 | private: | 74 | private: |
419 | 75 | void wake_hub_for_device_change(); | ||
420 | 76 | MirInputDeviceId const device_id; | 75 | MirInputDeviceId const device_id; |
421 | 77 | InputDevice& device; | 76 | InputDevice& device; |
422 | 78 | InputDeviceInfo const info; | 77 | InputDeviceInfo const info; |
423 | 79 | 78 | ||
424 | === modified file 'src/server/input/default_input_device_hub.h' | |||
425 | --- src/server/input/default_input_device_hub.h 2017-03-14 02:26:28 +0000 | |||
426 | +++ src/server/input/default_input_device_hub.h 2017-03-20 12:15:49 +0000 | |||
427 | @@ -80,7 +80,6 @@ | |||
428 | 80 | 80 | ||
429 | 81 | 81 | ||
430 | 82 | private: | 82 | private: |
431 | 83 | void update_spots(); | ||
432 | 84 | void add_device_handle(std::shared_ptr<DefaultDevice> const& handle); | 83 | void add_device_handle(std::shared_ptr<DefaultDevice> const& handle); |
433 | 85 | void remove_device_handle(MirInputDeviceId id); | 84 | void remove_device_handle(MirInputDeviceId id); |
434 | 86 | void device_changed(Device* dev); | 85 | void device_changed(Device* dev); |
435 | 87 | 86 | ||
436 | === modified file 'src/server/scene/surface_stack.h' | |||
437 | --- src/server/scene/surface_stack.h 2016-01-29 08:18:22 +0000 | |||
438 | +++ src/server/scene/surface_stack.h 2017-03-20 12:15:49 +0000 | |||
439 | @@ -45,7 +45,6 @@ | |||
440 | 45 | /// classes) and controller (SurfaceController) elements of an MVC design. | 45 | /// classes) and controller (SurfaceController) elements of an MVC design. |
441 | 46 | namespace scene | 46 | namespace scene |
442 | 47 | { | 47 | { |
443 | 48 | class InputRegistrar; | ||
444 | 49 | class BasicSurface; | 48 | class BasicSurface; |
445 | 50 | class SceneReport; | 49 | class SceneReport; |
446 | 51 | class RenderingTracker; | 50 | class RenderingTracker; |
447 | @@ -110,7 +109,6 @@ | |||
448 | 110 | 109 | ||
449 | 111 | RecursiveReadWriteMutex mutable guard; | 110 | RecursiveReadWriteMutex mutable guard; |
450 | 112 | 111 | ||
451 | 113 | std::shared_ptr<InputRegistrar> const input_registrar; | ||
452 | 114 | std::shared_ptr<SceneReport> const report; | 112 | std::shared_ptr<SceneReport> const report; |
453 | 115 | 113 | ||
454 | 116 | std::vector<std::shared_ptr<Surface>> surfaces; | 114 | std::vector<std::shared_ptr<Surface>> surfaces; |
455 | 117 | 115 | ||
456 | === modified file 'tests/unit-tests/frontend/stress_protobuf_communicator.cpp' | |||
457 | --- tests/unit-tests/frontend/stress_protobuf_communicator.cpp 2017-01-18 02:29:37 +0000 | |||
458 | +++ tests/unit-tests/frontend/stress_protobuf_communicator.cpp 2017-03-20 12:15:49 +0000 | |||
459 | @@ -65,7 +65,6 @@ | |||
460 | 65 | mir::protobuf::SurfaceParameters surface_parameters; | 65 | mir::protobuf::SurfaceParameters surface_parameters; |
461 | 66 | mir::protobuf::Surface surface; | 66 | mir::protobuf::Surface surface; |
462 | 67 | mir::protobuf::Void ignored; | 67 | mir::protobuf::Void ignored; |
463 | 68 | mir::protobuf::Connection connection; | ||
464 | 69 | 68 | ||
465 | 70 | void create_surface_done(); | 69 | void create_surface_done(); |
466 | 71 | void submit_buffer_done(); | 70 | void submit_buffer_done(); |
PASSED: Continuous integration, rev:4109 /mir-jenkins. ubuntu. com/job/ mir-ci/ 3196/ /mir-jenkins. ubuntu. com/job/ build-mir/ 4297 /mir-jenkins. ubuntu. com/job/ build-0- fetch/4384 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= vivid+overlay/ 4374 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= xenial+ overlay/ 4374 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= zesty/4374 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= clang,platform= mesa,release= zesty/4324 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= clang,platform= mesa,release= zesty/4324/ artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= xenial+ overlay/ 4324 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= xenial+ overlay/ 4324/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= zesty/4324 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= zesty/4324/ artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= cross-armhf, compiler= gcc,platform= android, release= vivid+overlay/ 4324 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= cross-armhf, compiler= gcc,platform= android, release= vivid+overlay/ 4324/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= android, release= vivid+overlay/ 4324 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= android, release= vivid+overlay/ 4324/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= mesa,release= xenial+ overlay/ 4324 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= mesa,release= xenial+ overlay/ 4324/artifact/ output/ *zip*/output. zip
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild: /mir-jenkins. ubuntu. com/job/ mir-ci/ 3196/rebuild
https:/