diff options
author | 2012-07-25 17:18:31 +0000 | |
---|---|---|
committer | 2012-07-25 17:18:31 +0000 | |
commit | 91f319c5dc4493384f0a52aaeef3dcc311ef6ed0 (patch) | |
tree | cfef701c30dbdbf1981a66a631654d0fe1baa704 /include | |
parent | 0567f222b92d17923c687bed5f54b31652150891 (diff) |
Use asNewCustomStage instead of asABitmap in SkGpuDevice, also removed now-unecessary twoPointRadialParams parameter from asABitmap.
In SkGpuDevice we still fall back on using asABitmap for effects that don't have asNewCustomStage implemented, but it still simplifies things a fair amount.
Review URL: https://codereview.appspot.com/6430060
git-svn-id: http://skia.googlecode.com/svn/trunk@4755 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkColorShader.h | 3 | ||||
-rw-r--r-- | include/core/SkShader.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/core/SkColorShader.h b/include/core/SkColorShader.h index e64a183295..0823b70b69 100644 --- a/include/core/SkColorShader.h +++ b/include/core/SkColorShader.h @@ -44,8 +44,7 @@ public: // we return false for this, use asAGradient virtual BitmapType asABitmap(SkBitmap* outTexture, SkMatrix* outMatrix, - TileMode xy[2], - SkScalar* twoPointRadialParams) const SK_OVERRIDE; + TileMode xy[2]) const SK_OVERRIDE; virtual GradientType asAGradient(GradientInfo* info) const SK_OVERRIDE; diff --git a/include/core/SkShader.h b/include/core/SkShader.h index 1ba1d671f3..57d920c55e 100644 --- a/include/core/SkShader.h +++ b/include/core/SkShader.h @@ -246,7 +246,7 @@ public: about the first point. */ virtual BitmapType asABitmap(SkBitmap* outTexture, SkMatrix* outMatrix, - TileMode xy[2], SkScalar* twoPointRadialParams) const; + TileMode xy[2]) const; /** * If the shader subclass can be represented as a gradient, asAGradient |