summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-11-20 11:48:08 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-11-20 11:48:08 -0800
commit1fc3c5f22fd0997e061b0c9cf27de03e9b267797 (patch)
treed2e49d2ecff56d88f90a2c6437f31dcd7b6513bc /graphics
parentcb047efda4dd04de8e263a85df55670620b1a1bb (diff)
parent29fd706aa1a59d542b30672a3a5d6d9cf6c34980 (diff)
downloadframeworks_base-1fc3c5f22fd0997e061b0c9cf27de03e9b267797.zip
frameworks_base-1fc3c5f22fd0997e061b0c9cf27de03e9b267797.tar.gz
frameworks_base-1fc3c5f22fd0997e061b0c9cf27de03e9b267797.tar.bz2
am 29fd706a: am d5f2a8d9: am 89ac38bf: Merge "Add missing variable copies in Path copy constructor" into jb-mr1.1-dev
* commit '29fd706aa1a59d542b30672a3a5d6d9cf6c34980': Add missing variable copies in Path copy constructor
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/Path.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Path.java b/graphics/java/android/graphics/Path.java
index b4f1e84..f6b5ffc 100644
--- a/graphics/java/android/graphics/Path.java
+++ b/graphics/java/android/graphics/Path.java
@@ -59,6 +59,10 @@ public class Path {
int valNative = 0;
if (src != null) {
valNative = src.mNativePath;
+ isSimplePath = src.isSimplePath;
+ if (src.rects != null) {
+ rects = new Region(src.rects);
+ }
}
mNativePath = init2(valNative);
mDetectSimplePaths = HardwareRenderer.isAvailable();
@@ -544,6 +548,7 @@ public class Path {
int dstNative = 0;
if (dst != null) {
dstNative = dst.mNativePath;
+ dst.isSimplePath = false;
}
native_offset(mNativePath, dx, dy, dstNative);
}
@@ -555,6 +560,7 @@ public class Path {
* @param dy The amount in the Y direction to offset the entire path
*/
public void offset(float dx, float dy) {
+ isSimplePath = false;
native_offset(mNativePath, dx, dy);
}
@@ -580,6 +586,7 @@ public class Path {
public void transform(Matrix matrix, Path dst) {
int dstNative = 0;
if (dst != null) {
+ dst.isSimplePath = false;
dstNative = dst.mNativePath;
}
native_transform(mNativePath, matrix.native_instance, dstNative);
@@ -591,6 +598,7 @@ public class Path {
* @param matrix The matrix to apply to the path
*/
public void transform(Matrix matrix) {
+ isSimplePath = false;
native_transform(mNativePath, matrix.native_instance);
}