diff options
author | 2012-07-25 17:18:31 +0000 | |
---|---|---|
committer | 2012-07-25 17:18:31 +0000 | |
commit | 91f319c5dc4493384f0a52aaeef3dcc311ef6ed0 (patch) | |
tree | cfef701c30dbdbf1981a66a631654d0fe1baa704 /src/pdf/SkPDFShader.cpp | |
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 'src/pdf/SkPDFShader.cpp')
-rw-r--r-- | src/pdf/SkPDFShader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf/SkPDFShader.cpp b/src/pdf/SkPDFShader.cpp index cbbf5c6b0b..09a4352110 100644 --- a/src/pdf/SkPDFShader.cpp +++ b/src/pdf/SkPDFShader.cpp @@ -944,7 +944,7 @@ SkPDFShader::State::State(const SkShader& shader, if (fType == SkShader::kNone_GradientType) { SkShader::BitmapType bitmapType; SkMatrix matrix; - bitmapType = shader.asABitmap(&fImage, &matrix, fImageTileModes, NULL); + bitmapType = shader.asABitmap(&fImage, &matrix, fImageTileModes); if (bitmapType != SkShader::kDefault_BitmapType) { fImage.reset(); return; |