~kgunn72/mir/dont-crash-when-shooting-invalid-surface

« back to all changes in this revision

Viewing changes to examples/demo-inprocess-surface-client/inprocess_egl_client.cpp

  • Committer: Tarmac
  • Author(s): Alan Griffiths, Alexandros Frantzis, Daniel van Vugt, Kevin DuBois, Christopher James Halse Rogers, chris.gagnon, Mathieu Trudel-Lapierre, Robert Carr, Automatic PS uploader, Kevin Gunn, Daniel d'Andrada, Christopher James Halse Rogers, Michael Terry, Brandon Schaefer, Timo Jyrinki, Mir Team, Andreas Pokorny
  • Date: 2013-12-20 11:11:22 UTC
  • mfrom: (1169.1.1 version-0.1.3)
  • Revision ID: tarmac-20131220111122-h503fd1fnq7pn9za
Latest upstream release: Mir 0.1.3 (r1298).

Approved by Alan Griffiths, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
    auto params = msh::a_surface().of_name("Inprocess EGL Demo")
93
93
        .of_size(surface_size)
94
94
        .of_buffer_usage(mg::BufferUsage::hardware)
95
 
        .of_pixel_format(geom::PixelFormat::argb_8888);
 
95
        .of_pixel_format(mir_pixel_format_argb_8888);
96
96
    auto session = shell->open_session("Inprocess client", std::make_shared<NullEventSink>());
97
97
    // TODO: Why do we get an ID? ~racarr
98
98
    auto surface = session->get_surface(shell->create_surface_for(session, params));