Update use of deprecated SkRuntimeEffect BuilderChild API
Change-Id: Ia9c4fe84b3bfdb09972958376f92289a458a4f32
This commit is contained in:
@@ -295,7 +295,7 @@ static void RuntimeShader_updateShader(JNIEnv* env, jobject, jlong shaderBuilder
|
||||
SkShader* shader = reinterpret_cast<SkShader*>(shaderHandle);
|
||||
|
||||
SkRuntimeShaderBuilder::BuilderChild child = builder->child(name.c_str());
|
||||
if (child.fIndex == -1) {
|
||||
if (child.fChild == nullptr) {
|
||||
ThrowIAEFmt(env, "unable to find shader named %s", name.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user