Index: gm/discard.cpp |
diff --git a/gm/discard.cpp b/gm/discard.cpp |
index d75f0ab1418a99389d9ff3cae27a6021ed511dcc..136458170ea75f01f7a933bdde466bf56dcee6d9 100644 |
--- a/gm/discard.cpp |
+++ b/gm/discard.cpp |
@@ -7,7 +7,6 @@ |
#include "gm.h" |
#include "SkCanvas.h" |
-#include "SkColorShader.h" |
#include "SkPaint.h" |
#include "SkRandom.h" |
#include "SkSurface.h" |
@@ -66,9 +65,8 @@ protected: |
surface->getCanvas()->clear(color); |
break; |
case 2: |
- SkColorShader shader(color); |
SkPaint paint; |
- paint.setShader(&shader); |
+ paint.setShader(SkShader::MakeColorShader(color)); |
surface->getCanvas()->drawPaint(paint); |
break; |
} |