OSDN Git Service

Fix b/5401109.
authorYuli Huang <yuli@google.com>
Thu, 20 Oct 2011 10:29:05 +0000 (18:29 +0800)
committerYuli Huang <yuli@google.com>
Thu, 20 Oct 2011 14:13:07 +0000 (22:13 +0800)
commit7b62f4889a95406a00a4a5f25ef15f01322607eb
treec46ea6b9d1352374dae4e5856fc09ed54a83fdee
parenta77f6c46815195c8a2a39c9539163ea3e8683b5d
Fix b/5401109.

1. Add FlipView similar to existing RotateView.
2. Add flipPhoto() similar to existing rotatePhoto() in PhotoView, and
add setRenderToFlip() in RendererUtils.
3. Make FlipAction use FlipView/PhotoView similar to how RotateAction
uses RotateView/PhotoView.

Change-Id: I5642266adbc248c0b8eda48ddc29558ae9cbd21e
res/layout/photoeditor_flip_view.xml [new file with mode: 0644]
src/com/android/gallery3d/photoeditor/PhotoView.java
src/com/android/gallery3d/photoeditor/RendererUtils.java
src/com/android/gallery3d/photoeditor/actions/EffectToolFactory.java
src/com/android/gallery3d/photoeditor/actions/FlipAction.java
src/com/android/gallery3d/photoeditor/actions/FlipView.java [new file with mode: 0644]
src/com/android/gallery3d/photoeditor/actions/RotateAction.java
src/com/android/gallery3d/photoeditor/actions/RotateView.java
src/com/android/gallery3d/photoeditor/actions/StraightenAction.java