summaryrefslogtreecommitdiffstats
path: root/core/jni/android/graphics/Xfermode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/jni/android/graphics/Xfermode.cpp')
-rw-r--r--core/jni/android/graphics/Xfermode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/jni/android/graphics/Xfermode.cpp b/core/jni/android/graphics/Xfermode.cpp
index eedceb7..6bf6f8a 100644
--- a/core/jni/android/graphics/Xfermode.cpp
+++ b/core/jni/android/graphics/Xfermode.cpp
@@ -36,12 +36,12 @@ public:
jint tolerance, jint modeHandle)
{
SkAvoidXfermode::Mode mode = static_cast<SkAvoidXfermode::Mode>(modeHandle);
- return reinterpret_cast<jlong>(new SkAvoidXfermode(opColor, tolerance, mode));
+ return reinterpret_cast<jlong>(SkAvoidXfermode::Create(opColor, tolerance, mode));
}
static jlong pixelxor_create(JNIEnv* env, jobject, jint opColor)
{
- return reinterpret_cast<jlong>(new SkPixelXorXfermode(opColor));
+ return reinterpret_cast<jlong>(SkPixelXorXfermode::Create(opColor));
}
};