summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2014-02-12 19:00:45 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-12 19:00:46 +0000
commitebcf70b128f209ed74f781f82fe3fa11c017246f (patch)
treed13aebfecb0e28371449bf24e3585b6e290735e3 /core/java/android
parent5f97e9e9ed2a6da22a6ed90b8db11052dd6a8cd7 (diff)
parent90d0c75e94a32fb7d993fae69762820aabc2fcbb (diff)
Merge "Revert "Refactor setting an SkPaint onto a hwui Layer.""
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/view/HardwareLayer.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/java/android/view/HardwareLayer.java b/core/java/android/view/HardwareLayer.java
index cb63c09dc5f7..9bbcf7ce5963 100644
--- a/core/java/android/view/HardwareLayer.java
+++ b/core/java/android/view/HardwareLayer.java
@@ -66,7 +66,8 @@ final class HardwareLayer {
* @see View#setLayerPaint(android.graphics.Paint)
*/
public void setLayerPaint(Paint paint) {
- nSetLayerPaint(mFinalizer.mDeferredUpdater, paint.mNativePaint);
+ nSetLayerPaint(mFinalizer.mDeferredUpdater, paint.mNativePaint,
+ paint.getColorFilter() != null ? paint.getColorFilter().native_instance : 0);
}
/**
@@ -249,7 +250,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);
+ private static native void nSetLayerPaint(long layerUpdater, long paint, long colorFilter);
private static native void nSetTransform(long layerUpdater, long matrix);
private static native void nSetSurfaceTexture(long layerUpdater,
SurfaceTexture surface, boolean isAlreadyAttached);