Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: samplecode/SampleLighting.cpp

Issue 1253223003: Update SkLightingShader to take a localMatrix (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix serialization bug Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/lightingshader.cpp ('k') | src/effects/SkLightingShader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleLighting.cpp
diff --git a/samplecode/SampleLighting.cpp b/samplecode/SampleLighting.cpp
index 079cb68708a9d138608494e83a3ca4a76338d386..3cda0c6a5692b826341e58b6bff1302fcec47e24 100755
--- a/samplecode/SampleLighting.cpp
+++ b/samplecode/SampleLighting.cpp
@@ -41,7 +41,7 @@ public:
fAmbientColor = SkColorSetRGB(0x1f, 0x1f, 0x1f);
fShader.reset(SkLightingShader::Create(fDiffuseBitmap, fNormalBitmap,
- light, fAmbientColor));
+ light, fAmbientColor, nullptr));
}
virtual ~LightingView() {}
@@ -67,7 +67,7 @@ protected:
light.fDirection.fZ = SkScalarCos(SK_ScalarPI*0.25f);
fShader.reset(SkLightingShader::Create(fDiffuseBitmap, fNormalBitmap,
- light, fAmbientColor));
+ light, fAmbientColor, nullptr));
SkPaint paint;
paint.setShader(fShader);
« no previous file with comments | « gm/lightingshader.cpp ('k') | src/effects/SkLightingShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698