diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2015-04-20 14:18:50 -0700 |
---|---|---|
committer | Deepanshu Gupta <deepanshu@google.com> | 2015-04-27 17:19:35 +0000 |
commit | dbc7ca0bac64e6f0e6f8463ac8e3d43dfac27eae (patch) | |
tree | 493611d118ba6e799a2809dfaa32bc996b680220 /tools/layoutlib/bridge/src/android/graphics | |
parent | 0c2d0deb3666c7bb9c315212f5caec1bc1945611 (diff) | |
download | frameworks_base-dbc7ca0bac64e6f0e6f8463ac8e3d43dfac27eae.zip frameworks_base-dbc7ca0bac64e6f0e6f8463ac8e3d43dfac27eae.tar.gz frameworks_base-dbc7ca0bac64e6f0e6f8463ac8e3d43dfac27eae.tar.bz2 |
Fix view outline for shadows in LayoutLib.
Set the bounds on the drawable before getting the view outline for
shadow. Also, reuse the temp outline object in AttachInfo rather than
allocating a new one each time.
Change-Id: I69793d38d60c5b9f9050569f2b22fbc7b90620bf
Diffstat (limited to 'tools/layoutlib/bridge/src/android/graphics')
-rw-r--r-- | tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java b/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java index 4d2d100..3ce2a23 100644 --- a/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java +++ b/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java @@ -220,7 +220,8 @@ public final class Canvas_Delegate { } @LayoutlibDelegate - /*package*/ static void native_restore(long nativeCanvas) { + /*package*/ static void native_restore(long nativeCanvas, boolean throwOnUnderflow) { + // FIXME: implement throwOnUnderflow. // get the delegate from the native int. Canvas_Delegate canvasDelegate = sManager.getDelegate(nativeCanvas); if (canvasDelegate == null) { @@ -231,7 +232,9 @@ public final class Canvas_Delegate { } @LayoutlibDelegate - /*package*/ static void native_restoreToCount(long nativeCanvas, int saveCount) { + /*package*/ static void native_restoreToCount(long nativeCanvas, int saveCount, + boolean throwOnUnderflow) { + // FIXME: implement throwOnUnderflow. // get the delegate from the native int. Canvas_Delegate canvasDelegate = sManager.getDelegate(nativeCanvas); if (canvasDelegate == null) { |