diff options
author | 2013-03-02 12:02:08 +0000 | |
---|---|---|
committer | 2013-03-02 12:02:08 +0000 | |
commit | 13f181f28f4336adcc93b7297b6d16503f4c323c (patch) | |
tree | 28f3a96df116f1fcf37ce913dbd68b119953d599 /src/gpu/GrClipMaskManager.cpp | |
parent | f140f18878215d6b4f21a94485cd1d2dbce8e976 (diff) |
Relanding 7914
git-svn-id: http://skia.googlecode.com/svn/trunk@7940 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrClipMaskManager.cpp')
-rw-r--r-- | src/gpu/GrClipMaskManager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp index 3bdb332a69..99068c75ed 100644 --- a/src/gpu/GrClipMaskManager.cpp +++ b/src/gpu/GrClipMaskManager.cpp @@ -397,7 +397,11 @@ bool GrClipMaskManager::getMaskTexture(int32_t clipStackGenID, desc.fFlags = kRenderTarget_GrTextureFlagBit; desc.fWidth = clipSpaceIBounds.width(); desc.fHeight = clipSpaceIBounds.height(); - desc.fConfig = kAlpha_8_GrPixelConfig; + desc.fConfig = kRGBA_8888_GrPixelConfig; + if (this->getContext()->isConfigRenderable(kAlpha_8_GrPixelConfig)) { + // We would always like A8 but it isn't supported on all platforms + desc.fConfig = kAlpha_8_GrPixelConfig; + } fAACache.acquireMask(clipStackGenID, desc, clipSpaceIBounds); } |