diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-17 16:29:41 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-17 16:29:41 +0000 |
commit | 4256d2494e80cb6c9a2db4157adc9b9daff028a6 (patch) | |
tree | e46cbf5e207787730c1ae8d7f42059a9b0c55b35 /src | |
parent | cd7992ba55e8b87580f54e7c19fc033bed01640d (diff) |
Add support for GL_CHROMIUM_renderbuffer_format_BGRA8888
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/27525006
git-svn-id: http://skia.googlecode.com/svn/trunk@11844 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index a96526a6b7..dce9851ff3 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -406,8 +406,13 @@ void GrGLCaps::initConfigRenderableTable(const GrGLContextInfo& ctxInfo) { fConfigRenderSupport[kBGRA_8888_GrPixelConfig][kNo_MSAA] = true; // The GL_EXT_texture_format_BGRA8888 extension does not add BGRA to the list of // configs that are color-renderable and can be passed to glRenderBufferStorageMultisample. - fConfigRenderSupport[kBGRA_8888_GrPixelConfig][kYes_MSAA] = - !fBGRAIsInternalFormat || !this->usesMSAARenderBuffers(); + // Chromium may have an extension to allow BGRA renderbuffers to work on desktop platforms. + if (ctxInfo.extensions().has("GL_CHROMIUM_renderbuffer_format_BGRA8888")) { + fConfigRenderSupport[kBGRA_8888_GrPixelConfig][kYes_MSAA] = true; + } else { + fConfigRenderSupport[kBGRA_8888_GrPixelConfig][kYes_MSAA] = + !fBGRAIsInternalFormat || !this->usesMSAARenderBuffers(); + } } // If we don't support MSAA then undo any places above where we set a config as renderable with |