Index: samplecode/SampleLighting.cpp |
diff --git a/samplecode/SampleLighting.cpp b/samplecode/SampleLighting.cpp |
index c191a6c7492b541780ec3acd00032923d4fbb941..dbab0928cb12fcc75dcb4eab92c0a4890cc8bed2 100755 |
--- a/samplecode/SampleLighting.cpp |
+++ b/samplecode/SampleLighting.cpp |
@@ -70,7 +70,7 @@ protected: |
SkShader::kClamp_TileMode, SkShader::kClamp_TileMode, nullptr, nullptr); |
sk_sp<SkNormalSource> normalSource = SkNormalSource::MakeFromNormalMap( |
std::move(normalMap), SkMatrix::I()); |
- sk_sp<SkShader> diffuseShader = SkBitmapProcShader::MakeBitmapShader(fDiffuseBitmap, |
+ sk_sp<SkShader> diffuseShader = SkShader::MakeBitmapShader(fDiffuseBitmap, |
SkShader::kClamp_TileMode, SkShader::kClamp_TileMode, nullptr); |
paint.setShader(SkLightingShader::Make(std::move(diffuseShader), std::move(normalSource), |
std::move(lights))); |