diff options
author | 2013-03-19 13:58:55 +0000 | |
---|---|---|
committer | 2013-03-19 13:58:55 +0000 | |
commit | 8a70eef71cf369803e97ffea786f43f944de758e (patch) | |
tree | bf5e1a117147a5ad926a69aa757ae5660211be72 /include/gpu/GrContext.h | |
parent | 8c3f84d13ff9eb61d9deb93197da4596b79841b0 (diff) |
Add MSAA configs to bench.
Review URL: https://codereview.chromium.org/12607013
git-svn-id: http://skia.googlecode.com/svn/trunk@8217 2bbb7eff-a529-9590-31e7-b0007b416f81
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 |