Mir

Merge lp:~florian-will/mir/mir into lp:mir

Proposed by Daniel van Vugt
Status: Merged
Approved by: Alan Griffiths
Approved revision: no longer in the source branch.
Merged at revision: 1131
Proposed branch: lp:~florian-will/mir/mir
Merge into: lp:mir
Diff against target: 38 lines (+6/-0)
3 files modified
src/client/android/client_surface_interpreter.cpp (+2/-0)
src/server/graphics/android/internal_client_window.cpp (+2/-0)
src/server/graphics/android/server_render_window.cpp (+2/-0)
To merge this branch: bzr merge lp:~florian-will/mir/mir
Reviewer Review Type Date Requested Status
Alan Griffiths Approve
Daniel van Vugt Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+190850@code.launchpad.net

Commit message

Provide info about NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS to driver.
(LP: #1239160)

Description of the change

Apparently adds support for HTC Desire Z (and HP TouchPad?)

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I'm not familiar with the Android code in question, but anything (even if the logic is wrong) is better than the existing fatal exception.

review: Approve
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

We should also addressed the unhandled exception. But I don't see this breaking anything that already works.

review: Approve
Revision history for this message
Kevin DuBois (kdub) wrote :

this is ok. (i had similar things in my mali-client-render-support branch). The only small problem is that drivers technically could use the stubbed-out cancel buffer hook silently now... should be fixed in short order though when I re-propose that branch

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/client/android/client_surface_interpreter.cpp'
2--- src/client/android/client_surface_interpreter.cpp 2013-05-16 20:19:12 +0000
3+++ src/client/android/client_surface_interpreter.cpp 2013-10-14 02:31:08 +0000
4@@ -65,6 +65,8 @@
5 return driver_pixel_format;
6 case NATIVE_WINDOW_TRANSFORM_HINT:
7 return 0;
8+ case NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS:
9+ return 1;
10 default:
11 throw std::runtime_error("driver requested unsupported query");
12 }
13
14=== modified file 'src/server/graphics/android/internal_client_window.cpp'
15--- src/server/graphics/android/internal_client_window.cpp 2013-09-24 18:25:28 +0000
16+++ src/server/graphics/android/internal_client_window.cpp 2013-10-14 02:31:08 +0000
17@@ -73,6 +73,8 @@
18 return format;
19 case NATIVE_WINDOW_TRANSFORM_HINT:
20 return 0;
21+ case NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS:
22+ return 1;
23 default:
24 BOOST_THROW_EXCEPTION(std::runtime_error("driver requests info we dont provide. key: " + key));
25 }
26
27=== modified file 'src/server/graphics/android/server_render_window.cpp'
28--- src/server/graphics/android/server_render_window.cpp 2013-09-24 18:25:28 +0000
29+++ src/server/graphics/android/server_render_window.cpp 2013-10-14 02:31:08 +0000
30@@ -83,6 +83,8 @@
31 return format;
32 case NATIVE_WINDOW_TRANSFORM_HINT:
33 return 0;
34+ case NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS:
35+ return 1;
36 default:
37 BOOST_THROW_EXCEPTION(std::runtime_error("driver requests info we dont provide. key: " + key));
38 }

Subscribers

People subscribed via source and target branches