diff options
author | 2015-11-06 07:09:43 -0800 | |
---|---|---|
committer | 2015-11-06 07:09:43 -0800 | |
commit | 63f6c1fc5b04fb154151f521c97a549060141374 (patch) | |
tree | d540c5e173bd4dc2e2ca653029f80f6b9d4bceec /src/gpu/gl/GrGLGpu.cpp | |
parent | f3bace939287ca7bb02eaeb38ab51939d7e1ae98 (diff) |
Loosen requirements for mixed samples support
Quits requiring EXT_raster_multisample and
NV_sample_mask_override_coverage for mixed samples support. This will
allow platforms without those latter extensions (i.e. Chrome) to still
use mixed samples for path rendering. Also moves the mixed samples cap
out of shader caps, since it no longer denotes shader functionality.
BUG=skia:
Review URL: https://codereview.chromium.org/1410383011
Diffstat (limited to 'src/gpu/gl/GrGLGpu.cpp')
-rw-r--r-- | src/gpu/gl/GrGLGpu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp index 4dde4afd63..8bd0663852 100644 --- a/src/gpu/gl/GrGLGpu.cpp +++ b/src/gpu/gl/GrGLGpu.cpp @@ -333,7 +333,7 @@ void GrGLGpu::onResetContext(uint32_t resetBits) { // "opacity", which can then be blended into the color buffer to accomplish antialiasing. // Enable coverage modulation suitable for premultiplied alpha colors. // This state has no effect when not rendering to a mixed sampled target. - if (this->glCaps().shaderCaps()->mixedSamplesSupport()) { + if (this->caps()->mixedSamplesSupport()) { GL_CALL(CoverageModulation(GR_GL_RGBA)); } } |