From a9ebfa6bcce62d7fee69693fe3dee6027afd3f0e Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Tue, 4 Jan 2011 15:02:59 -0800 Subject: Keep a reference to the local matrix. Bug #3299324 This is needed for ADT, which does not rely on Skia's reference counting to correctly keep track of the native objects. Change-Id: Ia2fc5c1ec2b80bad226bc549fefc6bb064784609 --- core/jni/android/graphics/Shader.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'core/jni') diff --git a/core/jni/android/graphics/Shader.cpp b/core/jni/android/graphics/Shader.cpp index 4be1321..3efc41d 100644 --- a/core/jni/android/graphics/Shader.cpp +++ b/core/jni/android/graphics/Shader.cpp @@ -64,11 +64,6 @@ static void Shader_destructor(JNIEnv* env, jobject o, SkShader* shader, SkiaShad #endif } -static bool Shader_getLocalMatrix(JNIEnv* env, jobject, const SkShader* shader, SkMatrix* matrix) -{ - return shader ? shader->getLocalMatrix(matrix) : false; -} - static void Shader_setLocalMatrix(JNIEnv* env, jobject o, SkShader* shader, SkiaShader* skiaShader, const SkMatrix* matrix) { @@ -471,7 +466,6 @@ static JNINativeMethod gColorMethods[] = { static JNINativeMethod gShaderMethods[] = { { "nativeDestructor", "(II)V", (void*)Shader_destructor }, - { "nativeGetLocalMatrix", "(II)Z", (void*)Shader_getLocalMatrix }, { "nativeSetLocalMatrix", "(III)V", (void*)Shader_setLocalMatrix } }; -- cgit v1.1