Index: src/effects/SkLightingImageFilter.cpp |
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp |
index dd567513825324459ff2d2f65d62c2ed7a307c52..240a6939ae8f5c92817ef679cb3ffff4e70d7ec6 100644 |
--- a/src/effects/SkLightingImageFilter.cpp |
+++ b/src/effects/SkLightingImageFilter.cpp |
@@ -1633,7 +1633,7 @@ GrGLFragmentProcessor* GrDiffuseLightingEffect::onCreateGLInstance() const { |
GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrDiffuseLightingEffect); |
-GrFragmentProcessor* GrDiffuseLightingEffect::TestCreate(GrProcessorTestData* d) { |
+const GrFragmentProcessor* GrDiffuseLightingEffect::TestCreate(GrProcessorTestData* d) { |
SkScalar surfaceScale = d->fRandom->nextSScalar1(); |
SkScalar kd = d->fRandom->nextUScalar1(); |
SkAutoTUnref<SkImageFilterLight> light(create_random_light(d->fRandom)); |
@@ -1836,7 +1836,7 @@ GrGLFragmentProcessor* GrSpecularLightingEffect::onCreateGLInstance() const { |
GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrSpecularLightingEffect); |
-GrFragmentProcessor* GrSpecularLightingEffect::TestCreate(GrProcessorTestData* d) { |
+const GrFragmentProcessor* GrSpecularLightingEffect::TestCreate(GrProcessorTestData* d) { |
SkScalar surfaceScale = d->fRandom->nextSScalar1(); |
SkScalar ks = d->fRandom->nextUScalar1(); |
SkScalar shininess = d->fRandom->nextUScalar1(); |