diff options
author | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-08 16:08:01 +0000 |
---|---|---|
committer | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-08 16:08:01 +0000 |
commit | 9aaf36de60c2a2e7a6b441bb7db9521a4fd59e08 (patch) | |
tree | 3f9b525b3ff2e7ee1b2e93e014f88e12dd78cdeb /src | |
parent | 7492f4ea13ff731f30ffe6fe33516e21255e4d98 (diff) |
fix GPU drawing for 8 bit alpha bitmaps
BUG=
Review URL: https://codereview.appspot.com/7070052
git-svn-id: http://skia.googlecode.com/svn/trunk@7081 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 6a312f3f3b..54ec275572 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -1200,7 +1200,9 @@ void SkGpuDevice::drawBitmapCommon(const SkDraw& draw, GrPaint grPaint; SkAutoCachedTexture colorLutTexture; - if (!skPaint2GrPaintNoShader(this, paint, true, false, &colorLutTexture, &grPaint)) { + + bool alphaOnly = !(SkBitmap::kA8_Config == bitmap.config()); + if (!skPaint2GrPaintNoShader(this, paint, alphaOnly, false, &colorLutTexture, &grPaint)) { return; } GrTextureParams params; |