aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-12-22 08:40:49 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-22 08:40:49 -0800
commit51d1f7e3a4305e517586dc158a0329bbaa8896aa (patch)
tree8fa5211721f24acd6c1ad571cbeb9164a755b668 /src/gpu
parentfa1e8a7cefd71f7b75f0b85f8eefe111814dd86f (diff)
reenable complexclip3 for gpu
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/GrClipMaskManager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp
index 797a21a1a6..5e2c0aa795 100644
--- a/src/gpu/GrClipMaskManager.cpp
+++ b/src/gpu/GrClipMaskManager.cpp
@@ -450,7 +450,11 @@ GrTexture* GrClipMaskManager::createTempMask(int width, int height) {
desc.fFlags = kRenderTarget_GrSurfaceFlag;
desc.fWidth = width;
desc.fHeight = height;
- desc.fConfig = kAlpha_8_GrPixelConfig;
+ if (this->getContext()->isConfigRenderable(kAlpha_8_GrPixelConfig, false)) {
+ desc.fConfig = kAlpha_8_GrPixelConfig;
+ } else {
+ desc.fConfig = kRGBA_8888_GrPixelConfig;
+ }
return this->getContext()->refScratchTexture(desc, GrContext::kApprox_ScratchTexMatch);
}