diff options
| author | Derek Sollenberger <djsollen@google.com> | 2014-02-11 11:46:49 -0500 |
|---|---|---|
| committer | Derek Sollenberger <djsollen@google.com> | 2014-02-12 11:26:06 -0500 |
| commit | e889298cd6ae1fc0d76bc00d7d12586db03eb261 (patch) | |
| tree | a2f5114d1ea5ff1265e28e2b01b4750d5d2741f3 /core/java | |
| parent | 826e51c4da2beac50c0ed1e1359787a0b69c878c (diff) | |
Refactor setting an SkPaint onto a hwui Layer.
This CL removes the unecessary JNI call to set the colorFilter on
a layer.
Change-Id: I9e088f888938d4315745aa618334bfdb9e61343a
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/view/HardwareLayer.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/java/android/view/HardwareLayer.java b/core/java/android/view/HardwareLayer.java index 9bbcf7ce5963..cb63c09dc5f7 100644 --- a/core/java/android/view/HardwareLayer.java +++ b/core/java/android/view/HardwareLayer.java @@ -66,8 +66,7 @@ final class HardwareLayer { * @see View#setLayerPaint(android.graphics.Paint) */ public void setLayerPaint(Paint paint) { - nSetLayerPaint(mFinalizer.mDeferredUpdater, paint.mNativePaint, - paint.getColorFilter() != null ? paint.getColorFilter().native_instance : 0); + nSetLayerPaint(mFinalizer.mDeferredUpdater, paint.mNativePaint); } /** @@ -250,7 +249,7 @@ final class HardwareLayer { private static native void nDestroyLayerUpdater(long layerUpdater); private static native boolean nPrepare(long layerUpdater, int width, int height, boolean isOpaque); - private static native void nSetLayerPaint(long layerUpdater, long paint, long colorFilter); + private static native void nSetLayerPaint(long layerUpdater, long paint); private static native void nSetTransform(long layerUpdater, long matrix); private static native void nSetSurfaceTexture(long layerUpdater, SurfaceTexture surface, boolean isAlreadyAttached); |
