I met this issue too, I suggest google should add a new attribute NO_ROTATION in frameworks/base/core/java/android/view/Surface.java, then check it in LayerBase.cpp::validateVisibility(...) function to decide if re-calculate the orientation and position for this layer (surface). So it will provide a capability for user to control each surface's rotation.
For example: Camera application's controller surface need rotate according to the phone status(landscape or portrait), but its viewfinder surface needn't rotate. In current android platform, we can correct it in LayerBuffer::OverlaySource::onVisibilityResolved(), but it will prevent all surfaces that use overlay to rotate, it isn't good method. On Apr 30, 1:30 am, Dave Sparks <[email protected]> wrote: > The application chooses the orientation. You can't force this from the > hardware layer. > > On Apr 29, 1:26 am, tony <[email protected]> wrote: > > > > > In current android implementation,all the Surface will rotate 90degree > > when switch to landscape. > > > We have requirement to keep the video unchanged (no rotation) and it > > seems the only way is to ignore the orientation in > > LayerBuffer::OverlaySource::onVisibilityResolved(). > > > Please let me know if you have comments.- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---
