Index: samplecode/Sample2PtRadial.cpp |
diff --git a/samplecode/Sample2PtRadial.cpp b/samplecode/Sample2PtRadial.cpp |
index 073fd8241b01855724ffdc7d73757c4aff9b4864..764c2b129c463b5b3ec7115ad63deef30e7ade6d 100644 |
--- a/samplecode/Sample2PtRadial.cpp |
+++ b/samplecode/Sample2PtRadial.cpp |
@@ -11,15 +11,15 @@ |
#include "SkGradientShader.h" |
-class TwoPtRadialView : public SampleView { |
+class TwoPtConicalView : public SampleView { |
public: |
- TwoPtRadialView() {} |
+ TwoPtConicalView() {} |
protected: |
// overrides from SkEventSink |
virtual bool onQuery(SkEvent* evt) { |
if (SampleCode::TitleQ(*evt)) { |
- SampleCode::TitleR(evt, "2PtRadial"); |
+ SampleCode::TitleR(evt, "2PtConical"); |
return true; |
} |
return this->INHERITED::onQuery(evt); |
@@ -33,7 +33,7 @@ protected: |
SkScalar r0 = 100; |
SkPoint c1 = { 100, 100 }; |
SkScalar r1 = 100; |
- SkShader* s = SkGradientShader::CreateTwoPointRadial(c0, r0, c1, r1, colors, |
+ SkShader* s = SkGradientShader::CreateTwoPointConical(c0, r0, c1, r1, colors, |
NULL, 2, |
SkShader::kClamp_TileMode); |
@@ -48,5 +48,5 @@ private: |
////////////////////////////////////////////////////////////////////////////// |
-static SkView* MyFactory() { return new TwoPtRadialView; } |
+static SkView* MyFactory() { return new TwoPtConicalView; } |
static SkViewRegister reg(MyFactory); |