commit | 276a04dbeb9202239a6a6fec4109ad3c38ba4d5d | [log] [tgz] |
---|---|---|
author | nicolasroard <nicolasroard@google.com> | Fri Mar 01 14:54:16 2013 -0800 |
committer | nicolasroard <nicolasroard@google.com> | Fri Mar 01 14:54:16 2013 -0800 |
tree | fcc41d4879726808c7fad5c2f5e3a380da291c88 | |
parent | 36633e241115ff047fff3da5450bbd75adb343f1 [diff] |
Fix preview rendering speed... Change-Id: I6a6ba3c14a91d60446f28f5dce52fd3c4bc49f79
diff --git a/src/com/android/gallery3d/filtershow/imageshow/GeometryMetadata.java b/src/com/android/gallery3d/filtershow/imageshow/GeometryMetadata.java index 647b101..c7d08d8 100644 --- a/src/com/android/gallery3d/filtershow/imageshow/GeometryMetadata.java +++ b/src/com/android/gallery3d/filtershow/imageshow/GeometryMetadata.java
@@ -181,7 +181,7 @@ } @Override - public boolean equals(Object o) { + public boolean equals(FilterRepresentation o) { if (this == o) return true; if (o == null || getClass() != o.getClass())
diff --git a/src/com/android/gallery3d/filtershow/imageshow/MasterImage.java b/src/com/android/gallery3d/filtershow/imageshow/MasterImage.java index 2dd05ae..f96d94a 100644 --- a/src/com/android/gallery3d/filtershow/imageshow/MasterImage.java +++ b/src/com/android/gallery3d/filtershow/imageshow/MasterImage.java
@@ -360,6 +360,9 @@ } public void notifyGeometryChange() { + if (mHandler.hasMessages(NEW_GEOMETRY)) { + return; + } mHandler.sendEmptyMessage(NEW_GEOMETRY); }