Loading libs/hwui/effects/StretchEffect.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -227,7 +227,7 @@ sk_sp<SkShader> StretchEffect::getShader(float width, float height, mBuilder->uniform("viewportWidth").set(&width, 1); mBuilder->uniform("viewportHeight").set(&height, 1); auto result = mBuilder->makeShader(nullptr, false); auto result = mBuilder->makeShader(); mBuilder->child(CONTENT_TEXTURE) = nullptr; return result; } Loading libs/hwui/jni/Shader.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -264,7 +264,7 @@ static jlong RuntimeShader_getNativeFinalizer(JNIEnv*, jobject) { static jlong RuntimeShader_create(JNIEnv* env, jobject, jlong shaderBuilder, jlong matrixPtr) { SkRuntimeShaderBuilder* builder = reinterpret_cast<SkRuntimeShaderBuilder*>(shaderBuilder); const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); sk_sp<SkShader> shader = builder->makeShader(matrix, false); sk_sp<SkShader> shader = builder->makeShader(matrix); ThrowIAE_IfNull(env, shader); return reinterpret_cast<jlong>(shader.release()); } Loading libs/hwui/pipeline/skia/AnimatedDrawables.h +1 −1 Original line number Diff line number Diff line Loading @@ -110,7 +110,7 @@ public: const float rotation3 = turbulencePhase * PI_ROTATE_RIGHT + 2.75 * PI; setUniform2f(effectBuilder, "in_tRotation3", cos(rotation3), sin(rotation3)); params.paint->value.setShader(effectBuilder.makeShader(nullptr, false)); params.paint->value.setShader(effectBuilder.makeShader()); canvas->drawCircle(params.x->value, params.y->value, params.radius->value, params.paint->value); } Loading libs/hwui/pipeline/skia/LayerDrawable.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ static sk_sp<SkShader> createLinearEffectShader(sk_sp<SkShader> shader, effectBuilder.uniform(uniform.name.c_str()).set(uniform.value.data(), uniform.value.size()); } return effectBuilder.makeShader(nullptr, false); return effectBuilder.makeShader(); } static bool isHdrDataspace(ui::Dataspace dataspace) { Loading Loading
libs/hwui/effects/StretchEffect.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -227,7 +227,7 @@ sk_sp<SkShader> StretchEffect::getShader(float width, float height, mBuilder->uniform("viewportWidth").set(&width, 1); mBuilder->uniform("viewportHeight").set(&height, 1); auto result = mBuilder->makeShader(nullptr, false); auto result = mBuilder->makeShader(); mBuilder->child(CONTENT_TEXTURE) = nullptr; return result; } Loading
libs/hwui/jni/Shader.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -264,7 +264,7 @@ static jlong RuntimeShader_getNativeFinalizer(JNIEnv*, jobject) { static jlong RuntimeShader_create(JNIEnv* env, jobject, jlong shaderBuilder, jlong matrixPtr) { SkRuntimeShaderBuilder* builder = reinterpret_cast<SkRuntimeShaderBuilder*>(shaderBuilder); const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); sk_sp<SkShader> shader = builder->makeShader(matrix, false); sk_sp<SkShader> shader = builder->makeShader(matrix); ThrowIAE_IfNull(env, shader); return reinterpret_cast<jlong>(shader.release()); } Loading
libs/hwui/pipeline/skia/AnimatedDrawables.h +1 −1 Original line number Diff line number Diff line Loading @@ -110,7 +110,7 @@ public: const float rotation3 = turbulencePhase * PI_ROTATE_RIGHT + 2.75 * PI; setUniform2f(effectBuilder, "in_tRotation3", cos(rotation3), sin(rotation3)); params.paint->value.setShader(effectBuilder.makeShader(nullptr, false)); params.paint->value.setShader(effectBuilder.makeShader()); canvas->drawCircle(params.x->value, params.y->value, params.radius->value, params.paint->value); } Loading
libs/hwui/pipeline/skia/LayerDrawable.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ static sk_sp<SkShader> createLinearEffectShader(sk_sp<SkShader> shader, effectBuilder.uniform(uniform.name.c_str()).set(uniform.value.data(), uniform.value.size()); } return effectBuilder.makeShader(nullptr, false); return effectBuilder.makeShader(); } static bool isHdrDataspace(ui::Dataspace dataspace) { Loading