From f6b070da5e337d13bd08ca488a0140d8facef8b8 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Fri, 27 Apr 2012 14:25:44 +0000 Subject: Clamp requested MSAA sample count to GL_MAX_SAMPLES Review URL: http://codereview.appspot.com/6135044/ git-svn-id: http://skia.googlecode.com/svn/trunk@3777 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/gl/GrGLCaps.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gpu/gl/GrGLCaps.h') diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h index 31c4392a10..eb095765c6 100644 --- a/src/gpu/gl/GrGLCaps.h +++ b/src/gpu/gl/GrGLCaps.h @@ -136,6 +136,11 @@ public: */ MSFBOType msFBOType() const { return fMSFBOType; } + /** + * Reports the maximum number of samples supported. + */ + int maxSampleCount() const { return fMaxSampleCount; } + /** * Reports the type of coverage sample AA support. */ @@ -257,6 +262,7 @@ private: int fMaxFragmentUniformVectors; MSFBOType fMSFBOType; + int fMaxSampleCount; CoverageAAType fCoverageAAType; SkTDArray fMSAACoverageModes; -- cgit v1.2.3