diff options
author | 2016-10-14 11:30:51 -0400 | |
---|---|---|
committer | 2016-10-14 20:40:37 +0000 | |
commit | 00731b42bcd89b98ef01b5aad3bbe51cb7018c9c (patch) | |
tree | 52e1d3b2433363658976784bfafd5d6f25e6bc0e /src/gpu/gl/GrGLCaps.h | |
parent | f61abec29934484f59b0348d92b15c89e202202f (diff) |
Capture ES3 MSAA blit restrictions using BlitFramebufferSupport not MSFBOType.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3416
Change-Id: I2baeb954bceb9d92e43e585320ae5fda1b996641
Reviewed-on: https://skia-review.googlesource.com/3416
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLCaps.h')
-rw-r--r-- | src/gpu/gl/GrGLCaps.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h index f0b09407aa..e162b38b9c 100644 --- a/src/gpu/gl/GrGLCaps.h +++ b/src/gpu/gl/GrGLCaps.h @@ -42,17 +42,13 @@ public: */ kNone_MSFBOType = 0, /** - * GL3.0-style MSAA FBO (GL_ARB_framebuffer_object). + * OpenGL < 3.0 with GL_EXT_framebuffer_object. Doesn't allow rendering to ALPHA. */ - kDesktop_ARB_MSFBOType, + kEXT_MSFBOType, /** - * earlier GL_EXT_framebuffer* extensions + * OpenGL 3.0+, OpenGL ES 3.0+, and GL_ARB_framebuffer_object. */ - kDesktop_EXT_MSFBOType, - /** - * Similar to kDesktop_ARB but with additional restrictions on glBlitFramebuffer. - */ - kES_3_0_MSFBOType, + kStandard_MSFBOType, /** * GL_APPLE_framebuffer_multisample ES extension */ @@ -84,6 +80,11 @@ public: * or mirroring. */ kNoScalingNoMirroring_BlitFramebufferSupport, + /** + * ES3 has restricted support when the src is MSAA: src rect == dst rect, dst format == src + * format. + */ + kRectsAndFormatsMatchForMSAASrc_BlitFramebufferSupport, kFull_BlitFramebufferSupport }; |