| Index: include/gpu/GrContext.h
|
| diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
|
| index 8c5f09f7365eb6fe8aaabc5469814d46f9302977..acd7b1ad911ee3e1ce92d5f40a8e846fdc66f243 100644
|
| --- a/include/gpu/GrContext.h
|
| +++ b/include/gpu/GrContext.h
|
| @@ -20,6 +20,7 @@
|
|
|
| class GrAARectRenderer;
|
| class GrBatchFontCache;
|
| +class GrCaps;
|
| struct GrContextOptions;
|
| class GrDrawContext;
|
| class GrDrawTarget;
|
| @@ -155,45 +156,8 @@ public:
|
| */
|
| void purgeAllUnlockedResources();
|
|
|
| - //////////////////////////////////////////////////////////////////////////
|
| - /// Texture and Render Target Queries
|
| -
|
| - /**
|
| - * Are shader derivatives supported?
|
| - */
|
| - bool shaderDerivativeSupport() const;
|
| -
|
| - /**
|
| - * Can the provided configuration act as a texture?
|
| - */
|
| - bool isConfigTexturable(GrPixelConfig) const;
|
| -
|
| - /**
|
| - * Can non-power-of-two textures be used with tile modes other than clamp?
|
| - */
|
| - bool npotTextureTileSupport() const;
|
| -
|
| - /**
|
| - * Return the max width or height of a texture supported by the current GPU.
|
| - */
|
| - int getMaxTextureSize() const;
|
| -
|
| - /**
|
| - * Can the provided configuration act as a color render target?
|
| - */
|
| - bool isConfigRenderable(GrPixelConfig config, bool withMSAA) 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;
|
| + /** Access the context capabilities */
|
| + const GrCaps* caps() const { return fCaps; }
|
|
|
| /**
|
| * Returns the recommended sample count for a render target when using this
|
| @@ -392,6 +356,7 @@ public:
|
|
|
| private:
|
| GrGpu* fGpu;
|
| + const GrCaps* fCaps;
|
| GrResourceCache* fResourceCache;
|
| // this union exists because the inheritance of GrTextureProvider->GrResourceProvider
|
| // is in a private header.
|
|
|