Index: src/core/SkLightingShader.h |
diff --git a/src/core/SkLightingShader.h b/src/core/SkLightingShader.h |
index 499e358238090dbc4ce817b5154b21f0f7441076..d28648767db68ddc2369d81bfe7f9468fdde3b80 100644 |
--- a/src/core/SkLightingShader.h |
+++ b/src/core/SkLightingShader.h |
@@ -25,11 +25,10 @@ public: |
class Builder { |
public: |
Builder(const SkLight lights[], int numLights) |
- : fLights(SkNEW_ARGS(Lights, (lights, numLights))) { |
- } |
+ : fLights(new Lights(lights, numLights)) {} |
+ |
+ Builder() : fLights(new Lights) {} |
- Builder() : fLights(SkNEW(Lights)) { } |
- |
// TODO: limit the number of lights here or just ignore those |
// above some maximum? |
void add(const SkLight& light) { |