Mir

Merge lp:~vanvugt/mir/one-for-robert-ancell into lp:mir

Proposed by Daniel van Vugt on 2015-07-29
Status: Merged
Approved by: Alan Griffiths on 2015-07-29
Approved revision: 2794
Merged at revision: 2794
Proposed branch: lp:~vanvugt/mir/one-for-robert-ancell
Merge into: lp:mir
Diff against target: 18 lines (+8/-0)
1 file modified
include/client/mir_toolkit/mir_connection.h (+8/-0)
To merge this branch: bzr merge lp:~vanvugt/mir/one-for-robert-ancell
Reviewer Review Type Date Requested Status
Alan Griffiths Approve on 2015-07-29
PS Jenkins bot continuous-integration Approve on 2015-07-29
Robert Ancell 2015-07-29 Approve on 2015-07-29
Review via email: mp+266194@code.launchpad.net

Commit Message

Document the awkward (but improving) situation of "supported"
pixel formats. For Robert Ancell.

To post a comment you must log in.
Robert Ancell (robert-ancell) wrote :

Quite a bit wordier than is ideal but a definite improvement on the current situation.

review: Approve
2794. By Daniel van Vugt on 2015-07-29

Less wordy

Alan Griffiths (alan-griffiths) wrote :

OK

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'include/client/mir_toolkit/mir_connection.h'
2--- include/client/mir_toolkit/mir_connection.h 2015-07-25 08:10:48 +0000
3+++ include/client/mir_toolkit/mir_connection.h 2015-07-29 09:35:42 +0000
4@@ -200,6 +200,14 @@
5 * \param [out] formats List of valid formats to create surfaces with
6 * \param [in] formats_size size of formats list
7 * \param [out] num_valid_formats number of valid formats returned in formats
8+ *
9+ * \note Users of EGL should call mir_connection_get_egl_pixel_format instead,
10+ * as it will take the guesswork out of choosing between similar pixel
11+ * formats. At the moment, this function returns a compatible list of
12+ * formats likely to work for either software or hardware rendering.
13+ * However it is not the full or accurate list and will be replaced in
14+ * future by a function that takes the intended MirBufferUsage into
15+ * account.
16 */
17 void mir_connection_get_available_surface_formats(
18 MirConnection* connection, MirPixelFormat* formats,

Subscribers

People subscribed via source and target branches