Mir

Merge lp://qastaging/~kdub/mir/fix-1485070 into lp://qastaging/mir

Proposed by Kevin DuBois
Status: Merged
Merged at revision: 2848
Proposed branch: lp://qastaging/~kdub/mir/fix-1485070
Merge into: lp://qastaging/mir
Diff against target: 37 lines (+18/-1)
2 files modified
src/platforms/android/server/display_buffer.cpp (+3/-1)
tests/unit-tests/graphics/android/test_display_buffer.cpp (+15/-0)
To merge this branch: bzr merge lp://qastaging/~kdub/mir/fix-1485070
Reviewer Review Type Date Requested Status
Daniel van Vugt Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+268124@code.qastaging.launchpad.net

Commit message

android: reject overlay optimization if DisplayBuffer is rotated.

fixes lp: #1485070

Description of the change

android: reject overlay optimization if DisplayBuffer is rotated.

fixes lp: #1485070

HWC is able to handle this, but a bit more work is needed (https://trello.com/c/G1dPmg12). For now just reject the optimization.

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

Seems to be consistent with the Mesa implementation now.

I always confuse myself with the function naming. Although the inline documentation explains it, the function name DisplayBuffer::orientation() does little to explain the intended semantics...

    /** Returns the orientation of the display buffer relative to how the
     * user should see it (the orientation of the output).
     * This tells us how much (if any) rotation the renderer needs to do.
     * If your DisplayBuffer can do the rotation itself then this will
     * always return mir_orientation_normal. If the DisplayBuffer does not
     * implement the rotation itself then this function will return the
     * amount of rotation the renderer must do to make things "look right".
     */
    virtual MirOrientation orientation() const = 0;

My fault.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches