diff options
Diffstat (limited to 'include/gpu/GrContext.h')
-rw-r--r-- | include/gpu/GrContext.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index ac61ea8968..c5572ac3a7 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -251,12 +251,6 @@ public: */ int getMaxTextureSize() const; - /** - * Return the max width or height of a render target supported by the - * current GPU. - */ - int getMaxRenderTargetSize() const; - /////////////////////////////////////////////////////////////////////////// // Render targets @@ -280,6 +274,18 @@ public: */ bool isConfigRenderable(GrPixelConfig config) const; + /** + * Return the max width or height of a render target supported by the + * current GPU. + */ + int getMaxRenderTargetSize() const; + + /** + * Returns the max sample count for a render target. It will be 0 if MSAA + * is not supported. + */ + int getMaxSampleCount() const; + /////////////////////////////////////////////////////////////////////////// // Backend Surfaces |