Mir

Merge lp:~vanvugt/mir/deduplicate-NullDisplayReport into lp:mir

Proposed by Daniel van Vugt
Status: Work in progress
Proposed branch: lp:~vanvugt/mir/deduplicate-NullDisplayReport
Merge into: lp:mir
Diff against target: 272 lines (+40/-63)
9 files modified
include/platform/mir/graphics/null_display_report.h (+9/-12)
src/platform/graphics/CMakeLists.txt (+1/-0)
src/platform/graphics/null_display_report.cpp (+19/-17)
src/platform/symbols.map (+3/-0)
src/platforms/android/server/device_quirks.cpp (+2/-14)
src/platforms/android/utils/render_overlays.cpp (+2/-15)
src/server/report/null/CMakeLists.txt (+0/-1)
src/server/report/null/null_report_factory.cpp (+2/-2)
tests/unit-tests/platforms/nested/test_nested_display.cpp (+2/-2)
To merge this branch: bzr merge lp:~vanvugt/mir/deduplicate-NullDisplayReport
Reviewer Review Type Date Requested Status
Mir CI Bot continuous-integration Approve
Alan Griffiths Disapprove
Review via email: mp+304905@code.launchpad.net

Commit message

Deduplicate three null DisplayReports into one.

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

FAILED: Continuous integration, rev:3685
https://mir-jenkins.ubuntu.com/job/mir-ci/1634/
Executed test runs:
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-mir/2044/console
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-0-fetch/2106
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/2097
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/2097
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/2097
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=yakkety/2070/console
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial+overlay/2070
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial+overlay/2070/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=yakkety/2070
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=yakkety/2070/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=android,release=vivid+overlay/2070
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=android,release=vivid+overlay/2070/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=android,release=vivid+overlay/2070
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=android,release=vivid+overlay/2070/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial+overlay/2070
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial+overlay/2070/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://mir-jenkins.ubuntu.com/job/mir-ci/1634/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Needing NullDisplayReport in mirplatform seems more like a problem than a solution.

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

Logically you make a good point. This isn't addressing the android code at the root of the issue.

However it's also worth remembering that DisplayReport is a report for Display. And Display is implemented in src/platforms/* so it makes sense that any commonality should exist in libmirplatform rather than libmirserver.

3686. By Daniel van Vugt

Ping Jenkins

Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :

FAILED: Continuous integration, rev:3686
https://mir-jenkins.ubuntu.com/job/mir-ci/1636/
Executed test runs:
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-mir/2049/console
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-0-fetch/2111/console
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/2102/console
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/2102/console
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/2102/console
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=yakkety/2075/console
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial+overlay/2075/console
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=yakkety/2075/console
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=android,release=vivid+overlay/2075/console
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=android,release=vivid+overlay/2075/console
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial+overlay/2075/console

Click here to trigger a rebuild:
https://mir-jenkins.ubuntu.com/job/mir-ci/1636/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Come to think of it, any report class that legitimately has a null use case and that might only need a partial implementation in many cases really should not be pure virtual at all. A possibly cleaner solution to all this is to merge DisplayReport with null::DisplayReport.

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

And it looks like I might be proposing four more places where NullDisplayReport gets used in future:
   http://bazaar.launchpad.net/~vanvugt/mir/physical-frame/revision/3605

3687. By Daniel van Vugt

Merge latest trunk

Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :

PASSED: Continuous integration, rev:3687
https://mir-jenkins.ubuntu.com/job/mir-ci/1657/
Executed test runs:
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-mir/2072
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-0-fetch/2134
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/2125
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/2125
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/2125
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=yakkety/2100
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=yakkety/2100/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial+overlay/2100
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial+overlay/2100/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=yakkety/2100
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=yakkety/2100/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=android,release=vivid+overlay/2100
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=android,release=vivid+overlay/2100/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial+overlay/2100
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial+overlay/2100/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://mir-jenkins.ubuntu.com/job/mir-ci/1657/rebuild

review: Approve (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

On second thoughts, mirserver is the only place in production where the report should be selected and constructed.

So ideally we should only see a null DisplayReport in mirserver and tests. I guess the current placement is correct if we can clean up and remove the two occurrences from src/platforms/android/. But that's an "if".

Unmerged revisions

3687. By Daniel van Vugt

Merge latest trunk

3686. By Daniel van Vugt

Ping Jenkins

3685. By Daniel van Vugt

It's LGPL, not GPL

3684. By Daniel van Vugt

First attempt

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== renamed file 'src/server/report/null/display_report.h' => 'include/platform/mir/graphics/null_display_report.h'
--- src/server/report/null/display_report.h 2015-04-28 07:54:10 +0000
+++ include/platform/mir/graphics/null_display_report.h 2016-09-07 03:00:58 +0000
@@ -2,23 +2,23 @@
2 * Copyright © 2012 Canonical Ltd.2 * Copyright © 2012 Canonical Ltd.
3 *3 *
4 * This program is free software: you can redistribute it and/or modify it4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 3,5 * under the terms of the GNU Lesser General Public License version 3,
6 * as published by the Free Software Foundation.6 * as published by the Free Software Foundation.
7 *7 *
8 * This program is distributed in the hope that it will be useful,8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.11 * GNU Lesser General Public License for more details.
12 *12 *
13 * You should have received a copy of the GNU General Public License13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *15 *
16 * Authored by: Alan Griffiths <alan@octopull.co.uk>16 * Authored by: Alan Griffiths <alan@octopull.co.uk>
17 */17 */
1818
1919
20#ifndef MIR_REPORT_NULL_DISPLAY_REPORT_H_20#ifndef MIR_GRAPHICS_NULL_DISPLAY_REPORT_H_
21#define MIR_REPORT_NULL_DISPLAY_REPORT_H_21#define MIR_GRAPHICS_NULL_DISPLAY_REPORT_H_
2222
2323
24#include "mir/graphics/display_report.h"24#include "mir/graphics/display_report.h"
@@ -26,11 +26,9 @@
2626
27namespace mir27namespace mir
28{28{
29namespace report29namespace graphics
30{30{
31namespace null31class NullDisplayReport : public graphics::DisplayReport
32{
33class DisplayReport : public graphics::DisplayReport
34{32{
35public:33public:
3634
@@ -47,6 +45,5 @@
47};45};
48}46}
49}47}
50}
5148
52#endif /* MIR_REPORT_NULL_DISPLAY_REPORT_H_ */49#endif /* MIR_GRAPHICS_NULL_DISPLAY_REPORT_H_ */
5350
=== modified file 'src/platform/graphics/CMakeLists.txt'
--- src/platform/graphics/CMakeLists.txt 2016-06-02 05:33:50 +0000
+++ src/platform/graphics/CMakeLists.txt 2016-09-07 03:00:58 +0000
@@ -11,6 +11,7 @@
11 pixel_format_utils.cpp11 pixel_format_utils.cpp
12 overlapping_output_grouping.cpp12 overlapping_output_grouping.cpp
13 platform_probe.cpp13 platform_probe.cpp
14 null_display_report.cpp
14)15)
1516
16add_library(mirplatformgraphicscommon OBJECT17add_library(mirplatformgraphicscommon OBJECT
1718
=== renamed file 'src/server/report/null/display_report.cpp' => 'src/platform/graphics/null_display_report.cpp'
--- src/server/report/null/display_report.cpp 2015-04-28 07:54:10 +0000
+++ src/platform/graphics/null_display_report.cpp 2016-09-07 03:00:58 +0000
@@ -2,31 +2,33 @@
2 * Copyright © 2013 Canonical Ltd.2 * Copyright © 2013 Canonical Ltd.
3 *3 *
4 * This program is free software: you can redistribute it and/or modify it4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 3,5 * under the terms of the GNU Lesser General Public License version 3,
6 * as published by the Free Software Foundation.6 * as published by the Free Software Foundation.
7 *7 *
8 * This program is distributed in the hope that it will be useful,8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.11 * GNU Lesser General Public License for more details.
12 *12 *
13 * You should have received a copy of the GNU General Public License13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *15 *
16 * Authored by: Alan Griffiths <alan@octopull.co.uk>16 * Authored by: Alan Griffiths <alan@octopull.co.uk>
17 */17 */
1818
19#include "display_report.h"19#include "mir/graphics/null_display_report.h"
2020
21namespace mrn = mir::report::null;21namespace mir { namespace graphics {
2222
23void mrn::DisplayReport::report_successful_setup_of_native_resources() {}23void NullDisplayReport::report_successful_setup_of_native_resources() {}
24void mrn::DisplayReport::report_successful_egl_make_current_on_construction() {}24void NullDisplayReport::report_successful_egl_make_current_on_construction() {}
25void mrn::DisplayReport::report_successful_egl_buffer_swap_on_construction() {}25void NullDisplayReport::report_successful_egl_buffer_swap_on_construction() {}
26void mrn::DisplayReport::report_successful_drm_mode_set_crtc_on_construction() {}26void NullDisplayReport::report_successful_drm_mode_set_crtc_on_construction() {}
27void mrn::DisplayReport::report_successful_display_construction() {}27void NullDisplayReport::report_successful_display_construction() {}
28void mrn::DisplayReport::report_drm_master_failure(int) {}28void NullDisplayReport::report_drm_master_failure(int) {}
29void mrn::DisplayReport::report_vt_switch_away_failure() {}29void NullDisplayReport::report_vt_switch_away_failure() {}
30void mrn::DisplayReport::report_vt_switch_back_failure() {}30void NullDisplayReport::report_vt_switch_back_failure() {}
31void mrn::DisplayReport::report_egl_configuration(EGLDisplay, EGLConfig) {}31void NullDisplayReport::report_egl_configuration(EGLDisplay, EGLConfig) {}
32void mrn::DisplayReport::report_vsync(unsigned int) {}32void NullDisplayReport::report_vsync(unsigned int) {}
33
34}} // namespace mir::graphics
3335
=== modified file 'src/platform/symbols.map'
--- src/platform/symbols.map 2016-08-22 14:36:40 +0000
+++ src/platform/symbols.map 2016-09-07 03:00:58 +0000
@@ -270,6 +270,9 @@
270 android::isEligibleBuiltInKeyboard*;270 android::isEligibleBuiltInKeyboard*;
271 __android_log_assert;271 __android_log_assert;
272 __android_log_print;272 __android_log_print;
273
274 vtable?for?mir::graphics::NullDisplayReport*;
275 mir::graphics::NullDisplayReport*;
273 };276 };
274 local: *;277 local: *;
275};278};
276279
=== modified file 'src/platforms/android/server/device_quirks.cpp'
--- src/platforms/android/server/device_quirks.cpp 2016-08-07 20:38:35 +0000
+++ src/platforms/android/server/device_quirks.cpp 2016-09-07 03:00:58 +0000
@@ -18,7 +18,7 @@
1818
19#include <GLES2/gl2.h>19#include <GLES2/gl2.h>
20#include <EGL/egl.h>20#include <EGL/egl.h>
21#include "mir/graphics/display_report.h"21#include "mir/graphics/null_display_report.h"
22#include "mir/graphics/gl_config.h"22#include "mir/graphics/gl_config.h"
23#include "gl_context.h"23#include "gl_context.h"
24#include "device_quirks.h"24#include "device_quirks.h"
@@ -100,19 +100,7 @@
100 return false;100 return false;
101}101}
102102
103struct NullReport : mg::DisplayReport103mg::NullDisplayReport report;
104{
105 void report_successful_setup_of_native_resources() override {};
106 void report_successful_egl_make_current_on_construction() override {};
107 void report_successful_egl_buffer_swap_on_construction() override {};
108 void report_successful_display_construction() override {};
109 void report_egl_configuration(EGLDisplay, EGLConfig) override {};
110 void report_vsync(unsigned int) override {};
111 void report_successful_drm_mode_set_crtc_on_construction() override {};
112 void report_drm_master_failure(int) override {};
113 void report_vt_switch_away_failure() override {};
114 void report_vt_switch_back_failure() override {};
115} report;
116104
117struct Config : mg::GLConfig105struct Config : mg::GLConfig
118{106{
119107
=== modified file 'src/platforms/android/utils/render_overlays.cpp'
--- src/platforms/android/utils/render_overlays.cpp 2016-08-16 19:34:28 +0000
+++ src/platforms/android/utils/render_overlays.cpp 2016-09-07 03:00:58 +0000
@@ -26,7 +26,7 @@
26#include "mir/graphics/graphic_buffer_allocator.h"26#include "mir/graphics/graphic_buffer_allocator.h"
27#include "mir/graphics/buffer_properties.h"27#include "mir/graphics/buffer_properties.h"
28#include "mir/graphics/gl_config.h"28#include "mir/graphics/gl_config.h"
29#include "mir/graphics/display_report.h"29#include "mir/graphics/null_display_report.h"
30#include "mir/renderer/gl/render_target.h"30#include "mir/renderer/gl/render_target.h"
31#include "mir/renderer/sw/pixel_source.h"31#include "mir/renderer/sw/pixel_source.h"
32#include "mir_image.h"32#include "mir_image.h"
@@ -226,19 +226,6 @@
226 int stencil_buffer_bits() const override { return 0; }226 int stencil_buffer_bits() const override { return 0; }
227};227};
228228
229struct DisplayReport : mg::DisplayReport
230{
231 void report_successful_setup_of_native_resources() override {}
232 void report_successful_egl_make_current_on_construction() override {}
233 void report_successful_egl_buffer_swap_on_construction() override {}
234 void report_successful_display_construction() override {}
235 void report_egl_configuration(EGLDisplay, EGLConfig) override {}
236 void report_vsync(unsigned int) override {}
237 void report_successful_drm_mode_set_crtc_on_construction() override {}
238 void report_drm_master_failure(int) override {}
239 void report_vt_switch_away_failure() override {}
240 void report_vt_switch_back_failure() override {}
241};
242}229}
243230
244int main(int argc, char const** argv)231int main(int argc, char const** argv)
@@ -265,7 +252,7 @@
265252
266 auto platform_fn = platform_library->load_function<mg::CreateHostPlatform>(253 auto platform_fn = platform_library->load_function<mg::CreateHostPlatform>(
267 "create_host_platform", MIR_SERVER_GRAPHICS_PLATFORM_VERSION);254 "create_host_platform", MIR_SERVER_GRAPHICS_PLATFORM_VERSION);
268 auto platform = platform_fn(options, nullptr, std::make_shared<DisplayReport>());255 auto platform = platform_fn(options, nullptr, std::make_shared<mg::NullDisplayReport>());
269256
270 //Strange issues going on here with dlopen() + hybris (which uses gnu_indirect_functions)257 //Strange issues going on here with dlopen() + hybris (which uses gnu_indirect_functions)
271 //https://github.com/libhybris/libhybris/issues/315258 //https://github.com/libhybris/libhybris/issues/315
272259
=== modified file 'src/server/report/null/CMakeLists.txt'
--- src/server/report/null/CMakeLists.txt 2016-07-28 23:00:22 +0000
+++ src/server/report/null/CMakeLists.txt 2016-09-07 03:00:58 +0000
@@ -3,7 +3,6 @@
33
4 compositor_report.cpp4 compositor_report.cpp
5 connector_report.cpp5 connector_report.cpp
6 display_report.cpp
7 input_report.cpp6 input_report.cpp
8 message_processor_report.cpp7 message_processor_report.cpp
9 null_report_factory.cpp8 null_report_factory.cpp
109
=== modified file 'src/server/report/null/null_report_factory.cpp'
--- src/server/report/null/null_report_factory.cpp 2016-07-28 23:00:22 +0000
+++ src/server/report/null/null_report_factory.cpp 2016-09-07 03:00:58 +0000
@@ -22,11 +22,11 @@
22#include "connector_report.h"22#include "connector_report.h"
23#include "message_processor_report.h"23#include "message_processor_report.h"
24#include "session_mediator_report.h"24#include "session_mediator_report.h"
25#include "display_report.h"
26#include "input_report.h"25#include "input_report.h"
27#include "seat_report.h"26#include "seat_report.h"
28#include "shell_report.h"27#include "shell_report.h"
29#include "scene_report.h"28#include "scene_report.h"
29#include "mir/graphics/null_display_report.h"
30#include "mir/logging/null_shared_library_prober_report.h"30#include "mir/logging/null_shared_library_prober_report.h"
3131
32std::shared_ptr<mir::compositor::CompositorReport> mir::report::NullReportFactory::create_compositor_report()32std::shared_ptr<mir::compositor::CompositorReport> mir::report::NullReportFactory::create_compositor_report()
@@ -36,7 +36,7 @@
3636
37std::shared_ptr<mir::graphics::DisplayReport> mir::report::NullReportFactory::create_display_report()37std::shared_ptr<mir::graphics::DisplayReport> mir::report::NullReportFactory::create_display_report()
38{38{
39 return std::make_shared<null::DisplayReport>();39 return std::make_shared<mir::graphics::NullDisplayReport>();
40}40}
4141
42std::shared_ptr<mir::scene::SceneReport> mir::report::NullReportFactory::create_scene_report()42std::shared_ptr<mir::scene::SceneReport> mir::report::NullReportFactory::create_scene_report()
4343
=== modified file 'tests/unit-tests/platforms/nested/test_nested_display.cpp'
--- tests/unit-tests/platforms/nested/test_nested_display.cpp 2016-05-04 20:53:03 +0000
+++ tests/unit-tests/platforms/nested/test_nested_display.cpp 2016-09-07 03:00:58 +0000
@@ -19,7 +19,7 @@
19#include "src/server/graphics/nested/display.h"19#include "src/server/graphics/nested/display.h"
20#include "src/server/graphics/nested/host_connection.h"20#include "src/server/graphics/nested/host_connection.h"
21#include "src/server/graphics/nested/host_surface.h"21#include "src/server/graphics/nested/host_surface.h"
22#include "src/server/report/null/display_report.h"22#include "mir/graphics/null_display_report.h"
23#include "mir/graphics/default_display_configuration_policy.h"23#include "mir/graphics/default_display_configuration_policy.h"
24#include "src/server/input/null_input_dispatcher.h"24#include "src/server/input/null_input_dispatcher.h"
25#include "mir_display_configuration_builder.h"25#include "mir_display_configuration_builder.h"
@@ -77,7 +77,7 @@
7777
78 testing::NiceMock<mtd::MockEGL> mock_egl;78 testing::NiceMock<mtd::MockEGL> mock_egl;
79 mi::NullInputDispatcher null_input_dispatcher;79 mi::NullInputDispatcher null_input_dispatcher;
80 mir::report::null::DisplayReport null_display_report;80 mg::NullDisplayReport null_display_report;
81 mg::CloneDisplayConfigurationPolicy default_conf_policy;81 mg::CloneDisplayConfigurationPolicy default_conf_policy;
82 mtd::StubGLConfig stub_gl_config;82 mtd::StubGLConfig stub_gl_config;
83 std::shared_ptr<mtd::NullPlatform> null_platform{83 std::shared_ptr<mtd::NullPlatform> null_platform{

Subscribers

People subscribed via source and target branches