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

Unified Diff: samplecode/Sample2PtRadial.cpp

Issue 1114243005: remove (redundant) twopointradial shader (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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 | « include/effects/SkGradientShader.h ('k') | samplecode/SampleGradients.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « include/effects/SkGradientShader.h ('k') | samplecode/SampleGradients.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698