diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-07-05 17:04:51 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-07-05 17:04:51 +0000 |
commit | b5c97895f31a280f4848fd138a692c26289021e8 (patch) | |
tree | b321402bafb8f8c6764bc3d94ad4b988482a4354 /src/gpu | |
parent | 95eed983be9a3fa787d38acc33790197bbdb5799 (diff) |
don't call setContext on shader (not necessary), since now gradients ensure that
their bitmap will be built with opaque colors. Also, this avoids calling
lockPixels on the shader's bitmap (if it has one), which is usually not needed
or desired, given that we're a gpu device.
git-svn-id: http://skia.googlecode.com/svn/trunk@1790 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 4f2d7c48c1..e182f10199 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -472,10 +472,6 @@ bool SkGpuDevice::skPaint2GrPaintShader(const SkPaint& skPaint, return false; } - SkPaint noAlphaPaint(skPaint); - noAlphaPaint.setAlpha(255); - shader->setContext(this->accessBitmap(false), noAlphaPaint, ctm); - SkBitmap bitmap; SkMatrix matrix; SkShader::TileMode tileModes[2]; |