From 08b4d29a0a29badc15129c9bc7ee8352bc75278d Mon Sep 17 00:00:00 2001 From: vbuzinov Date: Wed, 1 Apr 2015 06:29:49 -0700 Subject: GrGLInterface: Add support for NV_framebuffer_mixed_samples Import glCoverageModulation if NV_framebuffer_mixed samples is available BUG=skia:3177 Review URL: https://codereview.chromium.org/993363002 --- src/gpu/gl/GrGLCaps.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gpu/gl/GrGLCaps.cpp') diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index c9009b9053..fe52a540c6 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -54,6 +54,7 @@ void GrGLCaps::reset() { fFBFetchNeedsCustomOutput = false; fFBFetchColorName = NULL; fFBFetchExtensionString = NULL; + fFBMixedSamplesSupport = false; fReadPixelsSupportedCache.reset(); } @@ -99,6 +100,7 @@ GrGLCaps& GrGLCaps::operator= (const GrGLCaps& caps) { fFBFetchNeedsCustomOutput = caps.fFBFetchNeedsCustomOutput; fFBFetchColorName = caps.fFBFetchColorName; fFBFetchExtensionString = caps.fFBFetchExtensionString; + fFBMixedSamplesSupport = caps.fFBMixedSamplesSupport; return *this; } @@ -371,6 +373,8 @@ bool GrGLCaps::init(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) { fNvprSupport = kNone_NvprSupport; } + fFBMixedSamplesSupport = ctxInfo.hasExtension("GL_NV_framebuffer_mixed_samples"); + fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker"); // For now these two are equivalent but we could have dst read in shader via some other method -- cgit v1.2.3