diff options
author | bsalomon <bsalomon@google.com> | 2016-03-23 10:40:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-23 10:40:53 -0700 |
commit | 7dbd45d2c7427d2c679d6507435d2f0220bf64ef (patch) | |
tree | ae53a6f2d968b65da8706e791617988e86af3118 /include | |
parent | 1443c6920c4b7aa80811c30ed9cdc81395d5df4f (diff) |
Make max number of vertex attributes be checked dynamically
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1822343002
Review URL: https://codereview.chromium.org/1822343002
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrCaps.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h index b806dcbabc..1f5b11955b 100644 --- a/include/gpu/GrCaps.h +++ b/include/gpu/GrCaps.h @@ -209,6 +209,9 @@ public: bool reuseScratchTextures() const { return fReuseScratchTextures; } bool reuseScratchBuffers() const { return fReuseScratchBuffers; } + /// maximum number of attribute values per vertex + int maxVertexAttributes() const { return fMaxVertexAttributes; } + int maxRenderTargetSize() const { return fMaxRenderTargetSize; } int maxTextureSize() const { return fMaxTextureSize; } /** This is the maximum tile size to use by GPU devices for rendering sw-backed images/bitmaps. @@ -301,6 +304,7 @@ protected: int fGeometryBufferMapThreshold; int fMaxRenderTargetSize; + int fMaxVertexAttributes; int fMaxTextureSize; int fMaxTileSize; int fMaxColorSampleCount; |